Navigation · Global Planning: Graph Search · M3-L2 · Intermediate
Implement A* with Search Replay
11:30. The hospital has grown a wing and Scout's planner now takes a noticeable pause before every trip. The pharmacy is at the far end of a hall with one long wall; Dijkstra fans out over the whole hall, including the half that is nowhere near the pharmacy.
You will make the search face the goal with A*, write the heuristic that keeps it honest on a grid with diagonal moves, and then bend it with a weight to see how much speed a little suboptimality buys. A replay slider shows what each version expanded.
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.