What is a Heuristic Function

[亡魂溺海] 提交于 2019-11-30 14:14:38

A heuristic function, is a function that calculates an approximate cost to a problem (or ranks alternatives).

For example the problem might be finding the shortest driving distance to a point. A heuristic cost would be the straight line distance to the point. It is simple and quick to calculate, an important property of most heuristics. The true distance would likely be higher as we have to stick to roads and is much harder to calculate.

Heuristic functions are often used in combination with search algorithms. You may also see the term admissible, which means the heuristic never overestimates the true cost. Admissibility can be an important quality and is required for some search algorithms like A*.

Sani Singh Huttunen

From wiki

A heuristic function, or simply a heuristic, is a function that ranks alternatives in search algorithms at each branching step based on available information to decide which branch to follow.

I.e. in chess, a Heuristic Function can rule out possible moves that will lead to a worse position (or even loss) for a player and not further analyze the following moves since the result will not get any better.

Doing so the function can search more moves in a shorter time period since it doesn't waste time looking at bad moves.

Heuristic function use to calculate the estimated cost of problem. Heuristic function for sliding - tiles puzzles called Manhattan distance. Heuristic function denoted by h(n). A number of algorithms make use of heuristic function including heuristic search, A* algorithm, IDA(iterative deepening-A*).

Heuristics Function h(n) tells an estimate of the minimum cost from any vertex n to the goal.Based on the problem we choice the heuristic function, remember that selection of the heuristics funtion is gives true result on all nodes. For more details visit this website: http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html

To determine the heuristic function, go through the traditional chess problem. generally, chess uses the combination of an algorithm to decide next move. head over to this link. i think it's the example you're looking for. Understand Heuristic Search with Chess

Human evolutionary behavior is linked to cognitive and hearing intelligence, therefore, the heuristic paths are the easiest approximations. The instant responses are further processed with our inherent logic or elementary learning through our experiential knowledge. So Heuristic Approximation algorithms support our instant conclusions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!