Head (vessel): Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Glane23
Copyedit (minor)
Line 1: Line 1:
In the study of [[shortest path problem|path-finding problems]] in [[artificial intelligence]], a '''consistent''' (or '''monotone''') [[heuristic function]] is a function that estimates the distance of a given state to a goal state, and that is always at most equal to the estimated distance from any neighboring vertex plus the step cost of reaching that neighbor.
Jayson Berryhill is how I'm called and my wife doesn't like it at all. Alaska is where he's always been living. Invoicing is what I do for a residing but I've always needed my own business. What me and my family love is bungee jumping but I've been using on new issues recently.<br><br>Feel [http://myoceancounty.net/groups/apply-these-guidelines-when-gardening-and-grow/ free psychic reading] to surf to my web blog - online [http://www.prayerarmor.com/uncategorized/dont-know-which-kind-of-hobby-to-take-up-read-the-following-tips/ cheap psychic readings] reading ([http://clothingcarearchworth.com/index.php?document_srl=441551&mid=customer_review http://clothingcarearchworth.com/index.php?document_srl=441551&mid=customer_review])
 
Formally, for every node ''N'' and every [[Successor_(graph_theory)#Direction|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:
: <math>h(N) \leq c(N,P) + h(P)</math> and  
: <math>h(G) = 0.\,</math>
where
:* ''h'' is the consistent heuristic function
:* ''N'' is any node in the graph
:* ''P'' is any descendant of ''N''
:* ''G'' is any goal node
:* c(N,P) is the cost of reaching node P from N
 
A consistent heuristic is also [[admissible heuristic|admissible]], i.e. it never overestimates the cost of reaching the goal (the opposite however is not always true!). This is proved by induction on <math>m</math>, the length of the best path from node to goal. By assumption, <math>h(N_m) \leq h^*(N_m)</math>, where <math>h^*(n)</math> denotes the cost of the shortest path from ''n'' to the goal. Therefore,
:<math>h(N_{m+1}) \leq c(N_{m+1}, N_m) + h(N_m) \leq c(N_{m+1}, N_m) + h^*(N_m) = h^*(N_{m+1})</math>,
making it admissible. (<math>N_{m+1}</math> is any node whose best path to the goal, of length m+1, goes through some immediate child <math>N_{m}</math> whose best path to the goal is of length m.)
 
However, an admissible heuristic <math>h</math>, can be made into a consistent heuristic, <math>h'</math>, through the following adjustment:
: <math> h'(P) \gets \max(h(P), h(N) - c(N,P)) </math>
(Known as the pathmax<ref name="Russell 1995">{{cite book
| first = Stuart
| last = Russell
| coauthors = Peter Norvig
| title = Artificial intelligence: a modern approach
| publisher = Prentice-Hall
| year = 1995
| isbn = 0-13-103805-2
}}</ref> equation.)
 
==Consequences of monotonicity==
[[File:Heuristics Comparison.png|thumb|250px|Comparison of an admissible but inconsistent and a consistent heuristic evaluation function.]]
Consistent heuristics are called monotone because the estimated final cost of a partial solution, <math>f(N_j)=g(N_j)+h(N_j)</math> is monotonically non-decreasing along the best path to the goal, where <math>g(N_j)=\sum_{i=2}^j c(N_{i-1},N_i)</math> is the cost of the best path from start node <math>N_1</math> to <math>N_j</math>.  It's necessary and sufficient for a heuristic to obey the [[triangle inequality]] in order to be consistent.<ref>{{cite book
| first = Judea
| last = Pearl
| title = Heuristics: Intelligent Search Strategies for Computer Problem Solving
| publisher = Addison-Wesley
| year = 1984
| isbn = 0-201-05594-5
}}</ref>
 
In the [[A* search algorithm]], using a consistent heuristic means that once a node is expanded, the cost by which it was reached is the lowest possible, under the same conditions that Dijkstra's algorithm requires in solving the [[shortest path problem]] (no negative cost cycles). In fact, if the search graph is given cost <math>c'(N,P)=c(N,P)+h(P)-h(N)</math> for a consistent <math>h</math>, then A* is equivalent to best-first search on that graph using Dijkstra's algorithm.<ref name="Russell 1995"/>  In the unusual event that an admissible heuristic is not consistent, a node will need repeated expansion every time a new best (so-far) cost is achieved for it.
 
==References==
<references/>
 
[[Category:Heuristics]]

Revision as of 12:12, 19 February 2014

Jayson Berryhill is how I'm called and my wife doesn't like it at all. Alaska is where he's always been living. Invoicing is what I do for a residing but I've always needed my own business. What me and my family love is bungee jumping but I've been using on new issues recently.

Feel free psychic reading to surf to my web blog - online cheap psychic readings reading (http://clothingcarearchworth.com/index.php?document_srl=441551&mid=customer_review)