All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · December 2022 Shift 2

Match List I with List II.
Choose the correct answer from the options given below:
List IList II
a. Dijkstra's algorithmI. Calculates path matrix
b. Prim's algorithmII. Stores minimum cost edge
c. Warshall's algorithmIII. Stores the total cost from a source node to the current node
d. Kruskal's algorithmIV. Finds minimum spanning tree

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. a-III, b-II, c-I, d-IV

Explanation

Dijkstra keeps the total cost from the source; Prim stores the minimum-cost edge to the tree; Warshall computes the path matrix; Kruskal finds an MST.

More Data Structures and Algorithms questions