Visualizing A* Search: Pathfinding Through Heuristic Guidance

About this lecture

A single grid instance, carried from the statement of the pathfinding problem to a complete run of A* search. The lecture separates the two costs that meet at a cell: the measured cost of the route traced so far, and an estimate of the cost still remaining. It then runs Dijkstra's algorithm on that grid, watching its frontier grow as a diamond that spends as much effort behind the start as ahead of it; builds the Manhattan estimate and shows why it never overshoots the true remaining cost; and finally expands by least f, following one comparison in the priority queue before the search runs to the goal. The two searches finish side by side on identical mazes, returning routes of identical cost after very different amounts of work.

Transcript

Loading discussion…