1. Home
  2. Computer Science MCQs
  3. Algorithms and Data Structures
  4. Which algorithm efficiently finds the shortest paths…

Added 12 Sep 2025

Which algorithm efficiently finds the shortest paths between all pairs of vertices in a weighted graph?

  1. Dijkstra's Algorithm
  2. Bellman-Ford Algorithm
  3. Floyd-Warshall Algorithm Correct answer
  4. A* Search Algorithm

Correct answer

C. Floyd-Warshall Algorithm

17 views

MCQSEXAM

Explanation

The Floyd-Warshall algorithm finds shortest paths between all pairs of vertices in a weighted graph.

Reference

Asked in: GATE CS, UGC NET CS

https://www.geeksforgeeks.org/floyd-warshall-algorithm-dp-16/

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Algorithms and Data Structures MCQs

Practise all Algorithms and Data Structures MCQs

Similar MCQs