Skip to main content
Module 5 · Pathfinding Around Obstacles

Module Overview · When the Road Is Blocked — Knowledge ChecksAnswer key

Correct answers are marked and the explanation follows each question.

  1. The Manhattan planner and the new planner both take a position and a destination and return a list of intersections. Why does that matter?

    1. A.It means they always return the same route
    2. B.The code that drives the route works with either one, so swapping planners changes one name, not the whole program✓
    3. C.It means the new planner is just as fast as Manhattan
    4. D.It means you can delete the Manhattan planner

    Because both planners answer the same request in the same form, everything that uses the list, the navigator, the tests and the main program, works with either one. Only the planner's name changes.