A-star search is best-first search with priorityHere is a search node, is its state, is its accumulated path cost, and is the minimum remaining cost to any goal state, interpreted as if no goal is reachable. The inequality defines an admissible heuristic. Thus is a lower bound on the cost of any solution extending that particular action history.
Initialize the search frontier with the root. Repeatedly remove a search node of least , apply the goal test, and, if it is not a goal, insert its applicable-action children with their updated and . In tree search, different action histories remain distinct search nodes even when they reach the same state; there is no global visited-state set.
For the finite branching factor and unit costs here, an admissible heuristic ensures that any first goal removed is optimal. If a cheaper solution existed, the search frontier would contain an unexpanded prefix of it with at most that cheaper cost, contradicting selection of the more expensive goal. Nonnegative also means only finitely many search nodes can have below any fixed finite cost, so a finite solution will eventually be reached. This does not guarantee termination when no proof exists.
Articles by others on the same topic
There are currently no matching articles.