Why does Dijkstra's algorithm need a priority queue rather than a… | Queues and Deques question · AnyPrep