Skip to main content

CS502 Current Final Term Fall 2013 Shared by Amna File 1



My Almost complete Paper
I know no will remember me.....but Please remember me in your prayers....
3-color problem is known as 
Non-optimal or greedy algorithm for money change takes____________
Using ASCII standard the string “abacdaacac” will be encoded with __________ bits.
In order to say anything meaningful about our algorithms, it will be important for us to settle on a  ___________
A RAM is an idealized machine with ______________ random-access memory.
Recurrences are useful for analyzing
Where is the smallest element for max-heap, if largest element is at root?
Matrix multiplication is
The Huffman algorithm find
The Huffman algorithm belongs to 
The Huffman codes provide a method of encoding data which
Using ASCII standard the string “abacdaaca” will be encoded with
In fractional knapsack we sort the 
In directed graphs the cardinality of edges |E| =
In generic graph traversal algorithm we
In undirected graphs there 
In time stamp traversal we can calculate
Bellman Ford algorithm is for the
Which of the following is not true about Dijkstra’s algorithm?
Floyd-Warshall algorithm is
If a problem “S” is NP- complete it must be
Clique cover problem arises in applications of 
In the clique cover problem, for two vertices to be in the same group, they must be _______________each other.
Due to left-complete nature of binary tree, heaps can be stored in
In Random access machine, instructions are executed ________________.
Using ASCII standard each character is represented by a fixed length codeword of  ________________
The Huffman encoding algorithm is a ____________

What is the running time of the above sorting algorithm in worst case?
An optimization problem is one in which you want to find
Suppose that a graph G = (V,E) is implemented using adjacency lists. What is the complexity of a breadth-first traversal of G?
Total running time of Breadth First Search algorithm is ________
Using ASCII standard the string “abacdaacac” will be encoded with __________ bytes
Answer yes or no and give a brief explanation for your choice.
Kruskals algorithm for minimum weight spanning trees is an example of dynamic programming algorithm
How greedy algorithm works in phases?
If we implement the bag data structure by using a stack, then which type of traversal it will be?
When a decision problem L1 is polynomial-time reducible to decision problem L2?
What is all-pairs shortest paths problem, also describe Floyd-Warshall algorithm?
Explain the following two basic cases according to Floyd-Warshall Algorithm,
1. Don’t go through vertex k at all.
2. Do go through vertex k
What is prefix property of Huffman algorithm
Let the adjacency list representation of an undirected graph is given below:
Is there any loop existed in this list?
What general property of the list indicates that the graph has a loop?
Analyze the following pseudo code for Huffman tree building algorithm. And write the body of second for loop with the proper logic:
HUFMAN (N, symbol[1…N], freq[1…N]
For i = 1 to N
Do t ß TreeNode(symbol[i], freq[i])
pq.insert(t, freq[i])
for i = 1 to N - 1
?
?
?
?
?
return pq.remove
Prove that the generic TRAVERSE (S) marks every vertex in any connected graph exactly once and the set of edges (v, parent (v)) with parent (v) ¹ F form a spanning tree of the graph?
Consider following matrix, which corresponds to the initialized distance matrix of the all-pairs-shortest-path algorithm.
Execute three iterations of Floyd-Warshal algorithm?


Comments

Popular posts from this blog

CS504 Quiz No.3 Shared by Angel

Question # 1 of 10 ( Start time: 09:08:01 PM ) Total Marks: 1 Defining the services of an object means: Select correct option: What it does?        ok What it knows? Who knows it? Whome it knows? Question # 2 of 10 ( Start time: 09:08:27 PM ) Total Marks: 1 Which one of these represents the Krutchen’s 4+1 architectural view model? Select correct option: Logical view, Process view, Physical view, Development view, Use case view Logical view, Dynamic view, Physical view, Development view, Use case view Logical view, Process view, Physical view, Development view, Sequence view Dynamic view, Process view, Physical view, Development view, Use case view Question # 3 of 10 ( Start time: 09:09:50 PM ) Total Marks: 1 Return values in Synchronous messages are represented by: Select correct option: A solid line A dotted line with label        ok A solid line with label Double line Question # 4 of 10 ( Start tim...

CS302 Quiz No.4 Shared by Jawwad

Question # 1 of 10 ( Start time: 01:15:08 PM ) Total Marks: 1  Asynchronous mean that_____________  Select correct option:  Each flip-flop after the first one is enabled by the output of the preceding flip-flop  Each flip-flop is enabled by the output of the preceding flip-flop  Each flip-flop except the last one is enabled by the output of the preceding flip-flop  Each alternative flip-flop after the first one is enabled by Question # 2 of 10 ( Start time: 01:16:36 PM ) Total Marks: 1 A divide-by-10 ring counter requires a minimum of Select correct option: ten flip-flops five flip-flops four flip-flops twelve flip-flops Question # 3 of 10 ( Start time: 01:17:00 PM ) Total Marks: 1 When the number of states are reduced during the design any counter Select correct option: output changes and Input remain unchanged Input changes and output remain unchanged Input and output bith change Input and output remain unchanged Question # 4 of...

CS614 Quiz No.1 Shared by Manzar (UnSolved)

Question # 1 of 10 ( Start time: 03:35:24 PM )   Total Marks: 1 MDX by Microsoft is an example of _______ Select correct option: HOLAP DOLAP ROLAP None of the given options Question # 2 of 10 ( Start time: 03:36:40 PM )   Total Marks: 1 In decision support system ease of use is achieved by: Select correct option: Normalization Denormalization Drill up Drill down Question # 3 of 10 ( Start time: 03:38:07 PM )   Total Marks: 1 Which of the denormalization technique squeezes master table into detail? Select correct option: Pre-joining Horizontal splitting Vertical splitting Adding redundant column Question # 4 of 10 ( Start time: 03:38:28 PM )   Total Marks: 1 The trade-offs of denormalization is/are: Select correct option: Storage Performance Ease-of-use All of the given options Question # 5 of 10 ( Start time: 03:38:46 PM )   Total Marks: 1 ________is usually deployed when expressions can be used to group data together in...