Which data structure is used in Dijkstra’s algorithm for efficient extraction of minimum distance?

17 views
  • Stack
  • Queue
  • Priority Queue (Correct Answer)
  • Linked List

Explanation

Dijkstra’s algorithm uses a priority queue (often implemented as a min-heap) to efficiently select the vertex with the smallest tentative distance, improving performance to O((V+E) log V).

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