Show the worked solution(a) Prim's algorithm with a binary heap: \(O(E\lg V)\), so (a)-(iii).(b) Dijkstra's algorithm with an array (no heap): \(V\) extract-mins of \(O(V)\) each, \(O(V^2)\), so (b)-(iv).(c) Faster all-pairs shortest paths by repeated squaring of the weight matrix: \(\lg V\) products of \(O(V^3)\), \(O(V^3\lg V)\), so (c)-(i).(d) Edmonds-Karp (BFS augmenting paths): \(O(VE)\) augmentations of \(O(E)\) each, \(O(VE^2)\), so (d)-(ii).The code (a)-(iii), (b)-(iv), (c)-(i), (d)-(ii) is option B.Answer: B
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com