Navigation · Missions, Coverage and Fleets · M8-L4 · Advanced
Break the Deadlock
07:40. Three robots arrive at the elevator lobby within a few seconds of each other: one with medication for the ICU, one with a sample for pathology, one returning to the charger. They all stop, and none of them moves again.
The lobby is a plus-shaped junction with one-cell corridors. You will plan the robots in space and time, make the plan respect swaps and parked robots, and then find the order of priorities that lets all of them through.
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.