Math · Intermediate · Lesson 3 of 8
Shortest Paths
How maps find routes
An interactive lesson with 7 steps, about 6 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- Weighted graphs model roads, networks and costs.
- Dijkstra’s algorithm finds shortest paths by settling the closest point first.
- Greedy choices can fail. Keep track of total distances.
Steps
- Find the route
- Dijkstra’s algorithm
- Fewest roads
- A wave through the maze
- Traffic jam
- Counting shortest routes
- Greedy fails