Navigation · Global Planning: Graph Search · M3-L4 · Advanced
Replan When the Corridor Closes
14:20. A fire door shuts on the second floor, right on Scout's route. The robot stops, replans, and the whole floor freezes for two seconds while the planner searches the entire building again. On a busy afternoon the doors close every few minutes, and a fleet of robots does it at once.
You will build the field that makes replanning cheap, work out which cells a closed door actually affects, and recompute only those. The rest of the building keeps the answers it already had.
Your task
Lab complete: post-mortem
You have passed every stage. Now connect it back to the theory and move on:
Output
What Python can I use?
Plain Python with math and heapq. Your code runs in a background worker: an endless loop is stopped after a few seconds and the page stays usable. It runs in your browser and is never sent anywhere.