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

CS614 Quiz No.4 Shared by Princess (solved), Spring 2014

  “What means What”. The phrase refers to: Select correct option:  Meta data  External data Transformed data Internal representations Question # 2 of 10 Which of the following is NOT one of the activities of “Maintenance and Growth” phase in Kimball’s DWH development approach? Select correct option: Education Technical Education Program Support  Interface Deployment                 Question # 3 of 10 Horizontally wide data means: Select correct option: Dataset has large no. of attributes Dataset has large no. of records Dataset has attribute skews Dataset has partitioning skews                 Question # 4 of 10 Which of the following is NOT one of the top-10 mistakes that should be avoided during DWH development? Select correct option: Not interacting directly with end ...

CS614 Quiz No.4 Shared by MT Khan (Solved)

Question # 1 of 10 ( Start time: 09:04:39 PM ) Total Marks: 1 A typical cycle of implementing the change in DWH comprises of the sequence: Select correct option: Production -> QA -> Development Development-> QA -> Production(CORRECT) Development -> Production -> QA Production -> Development -> QA Question # 2 of 10 ( Start time: 09:05:16 PM ) Total Marks: 1 Vertically wide data means: Select correct option: Dataset has large no. of attributes Dataset has large no. of records(CORRECT) Dataset has attribute skews Dataset has partitioning skews Question # 3 of 10 ( Start time: 09:05:43 PM ) Total Marks: 1 In ___________ phase of kimballs approach, we identify the components needed now and in future. Select correct option: Requirement definition Architectural design Product development Analytical application development Question # 4 of 10 ( Start time: 09:06:56 PM ) Total Marks: 1 Technical architecture design supports the communicat...

CS301 Current Finalterm Paper Spring 2014 Shared By M. Waleed

My Tday's Cs301 Paper: Mcq's Are From Moaz And Some Are From Handouts. Subjective Is From Moaz Majority One. 1- The Image Segmentation Define? 2- The Maximum Number Level Of Nodes In Binary Tree 3-The Iteration Array Have To Sort. 4- The Hapified Array Have To Solved 5- The Algorithm Of Binary Seaoh Tree 6-Sara Arrays Wala He Tha Ya Heap Wala. 7-....Wala Wala Wala...