Which of the following algorithms solves the single-source shortest paths ?

Which of the following algorithms solves the single-source shortest paths ?

  1. A.

    Prim’s algorithm

  2. B.

    Floyd - Warshall algorithm

  3. C.

    Johnson’s algorithm

  4. D.

    Dijkstra’s algorithm

Attempted by 218 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…