Match the following:
View worked solution
Answer: C
To find the correct match, let us analyze the design paradigm used by each algorithm:
- P. Prim's algorithm for minimum spanning tree: It grows the minimum spanning tree by greedily choosing the cheapest edge that connects a vertex in the tree to a vertex outside the tree.
ii. Greedy method - Q. Floyd-Warshall algorithm for all-pairs shortest path: It computes shortest paths between all pairs of vertices by utilizing solutions to smaller subproblems (using intermediate vertices to ).
iii. Dynamic programming - R. Merge sort: It recursively splits the array into two halves, sorts each half, and then merges the sorted halves.
iv. Divide and conquer - S. Hamiltonian circuit: Finding a Hamiltonian circuit is an NP-complete problem. The standard systematic search space exploration involves trying paths and backtracking when a dead end is reached.
i. Backtracking
Combining these matches, we get:
Hence, the correct option is C.
Free practice · Your answers on this page are not saved.
