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 Abdul_Mateen (Solved)

Question # 1 of 10 ( Start time: 01:03:34 PM ) Total Marks: 1 The first step of the “12-steps data warehouse implementation approach” of Shaku Atre is: Select correct option: Finding user needs (Page No. 336) Planning system resources Finding system scope Data acquisition and cleansing Question # 2 of 10 ( Start time: 01:04:15 PM ) Total Marks: 1 Users do not care, how advance the front end of your DWH is, what they care is that: Select correct option: Tables should be properly denormalized Proper partitioning technique should be used At least star or snow flake schema should be implemented They should get information in timely manner and the way they want   Question # 3 of 10 ( Start time: 01:04:49 PM ) Total Marks: 1 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 user Not being an accommodating person (Page No. 316) Isolating IT support p...

CS614 Quiz No.3 Shared by Sweety (Solved)

Question # 1 of 10 ( Start time: 09:48:28 PM ) Total Marks: 1 Mining multi dimensional databases allow users to: Select correct option: Categorize the data Analyze the data Summarize the data All of the given options   (Correct) Question # 2 of 10 ( Start time: 09:49:23 PM ) Total Marks: 1 As per Bill Inmon, a data warehouse, in contrast with classical applications is: Select correct option: Data driven   (Correct) Resource driven Requirement driven Time sensitive Question # 3 of 10 ( Start time: 09:50:11 PM ) Total Marks: 1 In ________learning you don’t know the number of clusters and no idea about their attributes. Select correct option: Supervised learning Unsupervised learning   (Correct) Multi Dimension modeling None of the given options Question # 4 of 10 ( Start time: 09:51:04 PM ) Total Marks: 1 Identify the TRUE statement: Select correct option: The data value increases as volume decreases   (Correct) The data value decreases ...

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...