GATE CS 2016 · Set-2 · Graph Traversals (BFS & DFS)
MCQ · 1 mark · Problem PROG-GRPH-0065
The Floyd-Warshall algorithm for all-pair shortest paths computation is based on
- A
Greedy paradigm
- B
Divide-and-Conquerparadigm.
- C
Dynamic Programing paradigm.
- D
neither Greedy nor Divide-and-Conquer nor Dynamic Programming paradigm.
Solve it on GATE DA practice →More Graph Theory & Algorithms problems
Show the worked solution
Official GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow:
https://gateoverflow.in/39570/gate2016-2-14
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com