07-17-2011, 05:30 AM
Dear Fellows this is my paper of cs502 16july,2011. prepare it and pray for my further success.
|
Today's Final paper of cs502
|
|
07-17-2011, 05:30 AM
Dear Fellows this is my paper of cs502 16july,2011. prepare it and pray for my further success.
07-17-2011, 05:35 AM
Thank you so much for sharing this paper..... please other students also share your paper
[FONT="]Question No: 1 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]] [/FONT][FONT="]If a problem is in NP-complete, it must also be in NP.[/FONT] [FONT="]►[/FONT] [FONT="]True[/FONT] [FONT="] ► False[/FONT] [FONT="]Question No: 2 ( Marks: 1 ) - Please choose one[/FONT] [FONT="] The Huffman algorithm finds a optimal solution.[/FONT] [FONT="]►[/FONT] [FONT="]True[/FONT] [FONT="] ► False[/FONT] [FONT="]Question No: 3 ( Marks: 1 ) - Please choose one[/FONT] [FONT="] The Huffman algorithm finds an exponential solution[/FONT] [FONT="] ► True[/FONT] [FONT="]►[/FONT] [FONT="]False[/FONT] [FONT="]Question No: 4 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]The Huffman algorithm finds a polynomial solution[/FONT] [FONT="] ► True[/FONT] [FONT="]►[/FONT][FONT="]False[/FONT] [FONT="] Question No: 5 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]The greedy part of the Huffman encoding algorithm is to first find two nodes with smallest frequency.[/FONT] [FONT="] ► True[/FONT] [FONT="]►[/FONT][FONT="]False[/FONT] [FONT="]Question No: 6 ( Marks: 1 ) - Please choose one[/FONT] [FONT="] The codeword assigned to characters by the Huffman algorithm have the property that no codeword is the prefix of any other.[/FONT] [FONT="] ► True[/FONT] [FONT="] ► False[/FONT] [FONT="]Question No: 7 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Huffman algorithm uses a greedy approach to generate a postfix code T that minimizes the expected length B (T) of the encoded string.[/FONT] [FONT="] ► True[/FONT] [FONT="] ► False[/FONT] [FONT="]Question No: 8 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Dijkestra’s single source shortest path algorithm works if all edges weights are non-negative and there are negative cost cycles.[/FONT] [FONT="] ► True[/FONT] [FONT="] ► False[/FONT] [FONT="]Question No: 9 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]The term “coloring” came form the original application which was in architectural design.[/FONT] [FONT="] ► True[/FONT] [FONT="] ► False[/FONT] [FONT="]Question No: 10 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]In the clique cover problem, for two vertices to be in the same group, they must be adjacent to each other.[/FONT] [FONT="]► True[/FONT] [FONT="]►[/FONT][FONT="]False[/FONT] [FONT="]Question No: 11 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Dijkstra’s algorithm is operates by maintaining a subset of vertices[/FONT] [FONT="]► True[/FONT] [FONT="]►[/FONT][FONT="]False[/FONT] [FONT="]Question No: 12 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]We do sorting to,[/FONT] [FONT="] ► keep elements in random positions[/FONT] [FONT="] ► keep the algorithm run in linear order[/FONT] [FONT="] ► keep the algorithm run in (log n) order[/FONT] [FONT="] ► keep elements in increasing or decreasing order[/FONT] [FONT="]Question No: 13 ( Marks: 1 ) - Please choose one[/FONT] [FONT="][/FONT][FONT="]After partitioning array in Quick sort, pivot is placed in a position such that[/FONT] [FONT="] ► Values smaller than pivot are on left and larger than pivot are on right[/FONT] [FONT="] ► Values larger than pivot are on left and smaller than pivot are on right[/FONT] ► Pivot is the first element of array [FONT="] ► Pivot is the last element of array[/FONT] [FONT="]Question No: 14 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Merge sort is stable sort, but not an in-place algorithm[/FONT] [FONT="]► True[/FONT] [FONT="]►[/FONT][FONT="]False[/FONT] [FONT="]Question No: 15 ( Marks: 1 ) - Please choose one[/FONT] [FONT="][/FONT][FONT="]A p × q matrix A can be multiplied with a q × r matrix B. The result will be a p × r matrix C. There are (p . r) total entries in C and each takes _________ to compute.[/FONT] [FONT="] ►[/FONT] [FONT="]O (q)[/FONT] [FONT="] ► O (1)[/FONT] [FONT="] ► O (n2)[/FONT] [FONT="] ► O (n3)[/FONT] [FONT="]Question No: 16 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]One of the clever aspects of heaps is that they can be stored in arrays without using any[/FONT] [FONT="]_______________.[/FONT]
[FONT="]Question No: 17 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Merge sort requires extra array storage,[/FONT]
[FONT="]Question No: 18 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]The Huffman codes provide a method of encoding data inefficiently when coded using[/FONT] [FONT="]ASCII standard.[/FONT]
[FONT="]Using ASCII standard the string abacdaacac will be encoded with __________ bits.[/FONT]
[FONT="]Question No: 20 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Using ASCII standard the string abacdaacac will be encoded with 160 bits.[/FONT]
[FONT="]Using ASCII standard the string abacdaacac will be encoded with 10 bytes.[/FONT]
[FONT="]The greedy part of the Huffman encoding algorithm is to first find two nodes with[/FONT] [FONT="]character [/FONT][FONT="]frequency[/FONT]
[FONT="]Huffman algorithm uses a greedy approach to generate an prefix code T that minimizes[/FONT] [FONT="]the expected length B (T) of the encoded string.[/FONT]
[FONT="]Question No: 24 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Dijkestra s single source shortest path algorithm works if all edges weights are nonnegative and there are negative cost cycles.[/FONT]
[FONT="]Question No: 25 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Question No: 26 ( Marks: 1 ) - Please choose one[/FONT] [FONT="]Question No: 27 ( Marks: 2 )[/FONT] [FONT="][/FONT][FONT="]explain 2-d maxima problem mathematically or algrithmically.[/FONT] [FONT="]Question No: 28 ( Marks: 2 )[/FONT] [FONT="][/FONT][FONT="]Differentiate between back edge and forward edge.[/FONT] [FONT="]Question No: 29 ( Marks: 2 )[/FONT] [FONT="]Question No: 30 ( Marks: 2 )[/FONT] [FONT="]Question No: 31 ( Marks: 3 )[/FONT] [FONT="]Question No: 32 ( Marks: 3 )[/FONT] [FONT="]Question No: 33 ( Marks: 3 )[/FONT] [FONT="]Question No: 34 ( Marks: 5 )[/FONT] [FONT="][/FONT][FONT="]Suppose you could prove that an NP-complete problem can not be solved in polynomial time. What would be the consequence?[/FONT] [FONT="]Question No: 48 ( Marks: 3 )[/FONT] [FONT="]Recursive explanation of dynamic programming.[/FONT] [FONT="]Question No: 49 ( Marks: 5 )[/FONT] [FONT="][/FONT][FONT="]What is the cost of the following graph?[/FONT] [FONT="]
[/FONT] [FONT="]Cost =33[/FONT]
[FONT="]. Let the adjacency list representation of an undirected graph is given below. Explain what general property of the list indicates that the graph has an isolated vertex[/FONT][FONT="].[/FONT] [FONT="] a [/FONT]à[FONT="] b [/FONT]à[FONT="] c [/FONT]à[FONT="] e[/FONT] [FONT="] b [/FONT]à[FONT="] a [/FONT]à[FONT="] d [/FONT] [FONT="] c [/FONT]à[FONT="] a [/FONT]à[FONT="] d [/FONT]à[FONT="] e [/FONT]à[FONT="] f[/FONT] [FONT="] d [/FONT]à[FONT="] b [/FONT]à[FONT="] c [/FONT]à[FONT="] f[/FONT] [FONT="] e [/FONT]à[FONT="] a [/FONT]à[FONT="] c [/FONT]à[FONT="] f[/FONT] [FONT="] f [/FONT]à[FONT="] c [/FONT]à[FONT="] d [/FONT]à[FONT="] e[/FONT] [FONT="] g[/FONT] [FONT="]Question No: 51 ( Marks: 5 )[/FONT] [FONT="]Floyd Warshal algorithm with three recursive steps[/FONT] [FONT="]Question No: 52 ( Marks: 5 )[/FONT] |
|
« Next Oldest | Next Newest »
|