Jump to content

Consistent heuristic

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Lazycs (talk | contribs) at 00:24, 6 October 2008. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, a heuristic is consistent (or monotone) if, for every node n and every successor p of n generated by any action a, the estimated cost of reaching the goal from n is no greater than the step cost of getting to p plus the estimated cost of reaching the goal from p. In other words:

and

where

  • h is the consistent heuristic function
  • N is any node in the graph
  • P is any child of N
  • G is any goal node.

A consistent heuristic is also admissible. This is proved by induction. By assumption, . Therefore,

,

making it admissible.

Note: not all admissible heuristics are consistent.