The van waits at the depot.
Chapter 2 of 7
Fewest roads or fewest minutes
The app can count roads or add up minutes. Your driver wants the quickest way, not the shortest list.
This chapter: Is the route with the fewest roads also the quickest?
About this chapter
You will learn
- Breadth-first search finds the fewest roads
- It ignores how long each road takes
- Minutes need a search that adds them up
Words you’ll meet
- Breadth-first search
- A search that spreads out one road at a time, so it finds the route with fewest roads.
- Hop
- One road taken: a hop count is how many roads a route uses.
Step 1 of 4
spreads out one road at a time, so it finds the lowest count: the fewest roads.
Pick Fewest roads.