Concept Flow - Dijkstra's Algorithm Single Source Shortest Path
Start with source node
Initialize distances: source=0, others=∞
Create priority queue with source
While queue not empty
Extract node with smallest distance
For each neighbor
Calculate new distance
If new distance < known distance
Yes
Update distance and add neighbor to queue
No
Repeat until queue empty
Distances finalized
Dijkstra's algorithm finds shortest paths from one node to all others by repeatedly choosing the closest unvisited node and updating neighbors.
