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