Which algorithm is used to find the shortest path between two vertices in a graph?

18 views
  • Depth First Traversal
  • Breadth First Traversal
  • Prim`s Algorithm
  • Dijkstra`s Algorithm (Correct Answer)

Explanation

Answer: d) Dijkstra`s Algorithm

Explanation: Dijkstra`s Algorithm is used to find the shortest path between two vertices in a weighted graph. It works by starting with a single vertex

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs