A* Search, Admissibility, and Consistency

Explain the lower-bound priority in A* and why consistent heuristics permit a graph-search implementation without reopening settled states.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. A heuristic changes the pending order
  2. Consistency becomes nonnegative reweighting

A heuristic changes the pending order

With nonnegative edge costs, assign each state priority \(g(v)+h(v)\). Here \(g\) is a known source-to-state cost and \(h\) estimates remaining cost to the goal. An admissible heuristic never exceeds the true remaining cost and is zero at the goal. Along some optimal path, a frontier state with optimal \(g\) then has priority at most the optimal total. An implementation must preserve such frontier states or allow better paths to reopen them.

Consistency becomes nonnegative reweighting

If \(h(u)\le w(u,v)+h(v)\) for every edge, the adjusted edge cost \(w(u,v)+h(v)-h(u)\) is nonnegative. The corresponding source-to-state distance differs from \(g+h\) by a fixed source term. Thus A* with a consistent heuristic behaves like Dijkstra’s algorithm on adjusted edges. Unit-cost grid movement along four directions admits Manhattan distance even with walls, since each move changes it by at most one. Graph reweighting uses the same telescoping identity in a different sign convention.[1]

References

  1. Peter Hart, Nils Nilsson and Bertram Raphael, A Formal Basis for the Heuristic Determination of Minimum Cost Paths ↩