Lesson 8 · Building Experience — Knowledge ChecksAnswer key
Why does the robot navigate better on Run 2?
Same Dijkstra, better data. Pre-loading Run 1's discoveries means Run 2 plans around those obstacles immediately instead of rediscovering them.
Run 1 took 12 steps with 3 reroutes; Run 2 took 8 steps with 0 reroutes. Why the change?
With obstacles pre-loaded, Run 2's initial paths already avoid them — no mid-run surprises, so zero reroutes and fewer steps.
Can Run 2 discover an obstacle Run 1 never found?
The robot only discovers obstacles it drives toward. A new route can reach nodes Run 1 skipped, so Run 2 can still find something new — feeding Run 3 even better data.
Why is a file needed to remember obstacles between separate program runs?
A list variable lives only while the program runs. Writing the blocked list to a file (and reading it back) is what makes the knowledge persist across restarts.
What is 'convergence' in this context?
Each run can add knowledge until there's nothing new to learn. At that point paths are optimal immediately — the robot's map has converged.