Show the worked solution(P) Prim's algorithm adds the cheapest edge leaving the tree at each step: Greedy method (ii).(Q) Floyd-Warshall combines shortest paths through vertices 1..k-1 into those through 1..k: Dynamic programming (iii).(R) Mergesort splits the array in halves, sorts them and merges: Divide and conquer (iv).(S) A Hamiltonian circuit is searched for by extending a partial path and backing up on a dead end: Backtracking (i).Answer: C
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com