GATE CS 2016, set 2 · Question 24 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

The Floyd-Warshall algorithm for all-pair shortest paths computation is based on

  1. (A) Greedy paradigm.
  2. (B) Divide-and-Conquer paradigm.
  3. (C) Dynamic Programming paradigm.
  4. (D) neither Greedy nor Divide-and-Conquer nor Dynamic Programming paradigm.
Answer

Answer (C)

Answer from the official GATE CS 2016 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes