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).