Concept Flow - Dijkstra's Algorithm Single Source Shortest Path
Start: Initialize distances
Set source distance = 0
While unvisited nodes remain
Pick unvisited node with smallest distance
For each neighbor
Calculate new distance
If new distance < known distance
Update distance and predecessor
Mark current node visited
Repeat until all nodes visited
Shortest paths found
Dijkstra's algorithm finds shortest paths from one node to all others by repeatedly picking the closest unvisited node and updating distances.
