Consistent heuristic
Appearance
This article provides insufficient context for those unfamiliar with the subject. |
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.