1
4

1 回答 1

4

For a heuristic to be admissible, it must be bounded from above by the actual cost to the goal. Your heuristic is not admissible and that's why you're getting the wrong answer. See, for instance, the Wikipedia article on A*.

于 2011-08-18T19:12:35.300 回答