Recall that A Search defines an algorithm framework that combines the accumulated path cost with the heuristic cost to the goal in the evaluation function , such that
A* search is A search with the restriction that the heuristic must be admissible. The result is completeness (if branching factor is finite) and optimality (guarantees lowest-cost solution).
Properties with Heuristics
Note that with a perfect heuristic ( for all ), only the nodes on the optimal solution path are expanded; no extra work is performed.
On the other hand, with a null heuristic ( for all ), which is technically an admissible heuristic, A* reduces to Uniform Cost Search.
If we have for all goal nodes, is a better heuristic than . Every node expanded by A* using is also expanded by A* using . A* with expands no more nodes than A* with .
Examples
