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
Update distance and enqueue neighbor
Repeat until all nodes processed
Result: shortest distances from source
Dijkstra's algorithm finds shortest paths from one node to all others by repeatedly picking the closest unvisited node and updating neighbors.
