1 Crore+ students have signed up on EduRev. Have you? Download the App 
Which of the following standard algorithms is not a Greedy algorithm?
Suppose we run Dijkstra’s single source shortestpath algorithm on the following edge weighted directed graph with vertex P as the source. In what order do the nodes get included into the set of vertices for which the shortest path distances are finalized?
A networking company uses a compression technique to encode the message before transmitting over the network. Suppose the message contains the following characters with their frequency:
Note : Each character in input message takes 1 byte. If the compression technique used is Huffman Coding, how many bits will be saved in the message?
Which of the following is true about Kruskal and Prim MST algorithms? Assume that Prim is implemented for adjacency list representation using Binary Heap and Kruskal is implemented using union by rank.
Suppose the letters a, b, c, d, e, f have probabilities 1/2, 1/4, 1/8, 1/16, 1/32, 1/32 respectively. Which of the following is the Huffman code for the letter a, b, c, d, e, f?
Suppose the letters a, b, c, d, e, f have probabilities 1/2, 1/4, 1/8, 1/16, 1/32, 1/32 respectively. What is the average length of Huffman codes?
Consider the undirected graph below:
Q.
Using Prim's algorithm to construct a minimum spanning tree starting with node A, which one of the following sequences of edges represents a possible order in which the edges would be added to construct the minimum spanning tree?
152 docs216 tests

Test: Shortest Paths Test  20 ques 
Test: Dynamic Programming & DivideAndConquer Test  20 ques 
Searching Algorithms Test  10 ques 
Linear Search & Binary Search Test  10 ques 
Test: Divide & Conquer 1 Test  10 ques 
152 docs216 tests

Test: Shortest Paths Test  20 ques 
Test: Dynamic Programming & DivideAndConquer Test  20 ques 
Searching Algorithms Test  10 ques 
Linear Search & Binary Search Test  10 ques 
Test: Divide & Conquer 1 Test  10 ques 