DSAverse
Graph Algorithms
Loading Graph Algorithms...
BFS Traversal
visited: 0 / 7Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Graph Algorithms
Loading Graph Algorithms...
BFS Traversal
visited: 0 / 7Watch Dijkstra's greedily relax edges to find the shortest path from the source to every reachable node.
| Node | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
| dist | ∞ | ∞ | ∞ | ∞ | ∞ | ∞ | ∞ |
| prev | — | — | — | — | — | — | — |
O((V+E) log V)O(V)Question 1 of 3
What data structure makes Dijkstra's efficient?