Laboratory 02 · Verified
Observe how the heuristic guides frontier expansion toward a minimum-cost path.
Interactive workbench
Edit the board, tune the heuristic, and watch frontier priorities turn local choices into a complete route.
Select Walls, Start, or Goal, then activate a grid cell to edit the board. Row and column numbers are included in every cell label.
f(n) = g(n) + 1 × h(n)Standard A*. With w = 1, path cost and Manhattan distance have their standard A* balance. On this four-way grid, the result is optimal.
Ready. 0 nodes expanded. Frontier size 1.
Read the search
Take the frontier node with the lowest f score, using a fixed tie-break order.
Close that node and update every reachable four-directional neighbor.
When the goal is reached, follow predecessors back to the start.