Informed search & A*

Step 4 of 13 in Classical AI · Theorem · Medium

A* orders nodes by cost-so-far + heuristic estimate. If the heuristic never overestimates (admissible), A* is guaranteed to find the optimal path.

Build it

  1. A* vs BFS

    Implement A* with Manhattan distance on the same mazes; compare nodes expanded.

    Done when: Same path length as BFS, far fewer nodes on a large open maze.

  2. Break admissibility

    Multiply the heuristic by 3 and find a maze where A* returns a non-optimal path.

    Done when: You show the longer path and explain why.

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map