This is how Google Maps finds the fastest way to your destination. Build a map of locations and roads, then watch the computer find the cheapest route step by step.
| Location | Cost | Came from | Status |
|---|
Dijkstra's algorithm is how computers find the shortest route β like a sat-nav working out directions.