Overview
A* Search keeps a frontier ordered by f(n) = g(n) + h(n), where g is the known cost from the start and h estimates the remaining cost to the goal.
Finds a low-cost path by combining path cost so far with a heuristic estimate to the goal.
Compact metadata for implementation and discovery.
A* Search keeps a frontier ordered by f(n) = g(n) + h(n), where g is the known cost from the start and h estimates the remaining cost to the goal.
Quick facts
Runtime and memory behavior at a glance.
Best
O(E)
Average
O(E)
Worst
O(E)
Space
O(V)
f(node) = g(node) + h(node)Ranks each frontier node by known path cost plus estimated remaining cost.
Show the open set moving toward the goal under heuristic guidance.
With a consistent heuristic, the first time A* removes the goal from the priority queue, the path is optimal.
What each reference supports for this entry.
Textbook reference for the algorithmic family and analysis of A* Search.
Good next jumps from the relationship graph, ranked for useful discovery.
Pathfinding · Core
Block A* is a pathfinding variant of A* Search with a different search or heuristic tradeoff.
Compare with thisPathfinding · Core
HPA* is a pathfinding variant of A* Search with a different search or heuristic tradeoff.
Compare with thisPathfinding · Core
IDA* uses iterative deepening with an A*-style cost bound.
Compare with thisPathfinding · Core
Lazy Theta* is a pathfinding variant of A* Search with a different search or heuristic tradeoff.
Compare with thisD* Lite extends A*-style planning to changing graphs.
A* adds a heuristic to guide the shortest-path search.
A* balances path cost and heuristic cost, while greedy best-first focuses on the heuristic.
A* commonly expands frontier nodes from a priority queue.