Which algorithm efficiently finds the shortest paths between all pairs of vertices in a weighted graph?
-
A
Dijkstra's Algorithm
-
B
Bellman-Ford Algorithm
-
C
Floyd-Warshall Algorithm
Correct answer
-
D
A* Search Algorithm
Correct answer
C. Floyd-Warshall Algorithm
17 views
Explanation
The Floyd-Warshall algorithm finds shortest paths between all pairs of vertices in a weighted graph.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ