Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
A* search algorithm
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Admissibility=== A search algorithm is said to be ''admissible'' if it is guaranteed to return an optimal solution. If the heuristic function used by A* is [[admissible heuristic|admissible]], then A* is admissible. An intuitive "proof" of this is as follows: Call a node ''closed'' if it has been visited and is not in the open set. We ''close'' a node when we remove it from the open set. A basic property of the A* algorithm, which we'll sketch a proof of below, is that when {{tmath|n}} is closed, {{tmath|f(n)}} is an optimistic estimate (lower bound) of the true distance from the start to the goal. So when the goal node, {{tmath|g}}, is closed, {{tmath|f(g)}} is no more than the true distance. On the other hand, it is no less than the true distance, since it is the length of a path to the goal plus a heuristic term. Now we'll see that whenever a node {{tmath|n}} is closed, {{tmath|f(n)}} is an optimistic estimate. It is enough to see that whenever the open set is not empty, it has at least one node {{tmath|n}} on an optimal path to the goal for which {{tmath|g(n)}} is the true distance from start, since in that case {{tmath|g(n)}} + {{tmath|h(n)}} underestimates the distance to goal, and therefore so does the smaller value chosen for the closed vertex. Let {{tmath|P}} be an optimal path from the start to the goal. Let {{tmath|p}} be the last closed node on {{tmath|P}} for which {{tmath|g(p)}} is the true distance from the start to the goal (the start is one such vertex). The next node in {{tmath|P}} has the correct {{tmath|g}} value, since it was updated when {{tmath|p}} was closed, and it is open since it is not closed.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)