Skip to content

ISRO Scientist/Engineer CSE 2017Algorithms › Design Techniques and Graph Algorithms

ISRO Scientist/Engineer CSE 2017 PYQ: Which of the following algorithms solves the all pair shortest path problem?

Which of the following algorithms solves the all pair shortest path problem?

  1. A
    Prim's algorithm
  2. B
    Dijkstra's algorithm
  3. C
    Bellman ford algorithm
  4. D
    Floyd warshalls algorithm
    Correct answer

Answer

(D) Floyd warshalls algorithm

Approach

Recall the standard problem each classic graph algorithm is designed to solve, and match the one whose purpose is computing shortest paths between every ordered pair of vertices.

Reviewed by ISRO IQ Editorial Team.