3.5.13 · D5Graphs
Question bank — A - algorithm — heuristic, admissibility, consistency — important for GNC
Throughout this page GNC means Guidance, Navigation & Control — the on-board planning stack of rovers, drones and spacecraft that must compute shortest routes quickly with limited compute.
Reminder of the pieces so nothing here is used before it is anchored:
- start and goal are the two special nodes: where the search begins and where it must end. Later on this page we use the short symbols for start and for goal.
- = ==cost of the best known path from start to == (what you have already paid).
- = ==heuristic estimate of the remaining cost from to the goal== (your peek-guess).
- = the true cheapest remaining cost from to the goal (the thing is estimating).
- = ==the cost of the edge that goes from node to node . We assume, as everywhere in A*, that every edge cost is non-negative==, — you can never "gain" cost by moving.
- = estimated total trip cost through ; A* always expands the smallest- open node.
- = the optimal (cheapest) total cost of getting from start to goal.
- Admissible: , never overestimates the true remaining cost.
- Consistent: for every edge, and .
The picture below is the mental model behind almost every item on this page: the magenta arrow is (already paid), the violet dashed arrow is the peek-guess , and their sum is . Several answers below say "the good path looks expensive" or " never dips" — read those against this figure.

True or false — justify
True or false: If is admissible, the first goal A* pops off the queue is guaranteed optimal.
True. Some frontier node sits on an optimal path, so (look at the figure: plus the honest remaining cost is exactly the whole trip). Any suboptimal goal (a second, worse goal node reached with ) has since it is a goal, so ; A* pops the smaller- node first, so can never be returned before an optimal goal.
True or false: Consistency implies admissibility.
True, and it is a one-way arrow. Along any path , sum ; the terms telescope and the boundary value drops out, leaving path cost, hence .
True or false: Admissibility implies consistency.
False. Admissibility only bounds each against the total remaining cost; it does not forbid from dipping between neighbours, so an admissible-but-inconsistent can exist and may force re-expansions.
True or false: With a consistent heuristic, A* never needs to re-open a node already closed.
True. Consistency makes non-decreasing along expansions (), so a node's is final the moment it is popped — no cheaper path can arrive later.
True or false: A* with everywhere is a broken or useless algorithm.
False. is both admissible and consistent, so A* is still correct — it simply reduces to Dijkstra's Algorithm because (in the figure the violet peek-arrow collapses to nothing).
True or false: Greedy best-first search () always returns the shortest path if is admissible.
False. Greedy ignores entirely, so it can commit to a route that looks close but is expensive; admissibility of does not rescue it — see Greedy Best-First Search.
True or false: A larger admissible heuristic (closer to ) never expands more nodes than a smaller one.
True, and here is the WHY. If everywhere (both admissible), then every node with also had , so the set A* expands (nodes with ) under is a subset of the set under — a bigger honest push toward the goal can only rule nodes out, never in.
True or false: Multiplying an admissible by a weight keeps A* optimal but faster.
False. Weighted A* () is generally inadmissible; it trades optimality for speed and only guarantees cost — see Weighted A* and Bounded Suboptimality.
True or false: If every edge cost is the same constant, A* and Dijkstra always expand the same nodes.
False. Even with uniform edges, a non-trivial admissible lets A* skip nodes pointing away from the goal; only makes them identical.
True or false: The consistency condition is just the Triangle Inequality applied to the heuristic.
True. Reading as an estimated distance-to-goal, going then estimating from can never be shorter than estimating straight from .
Spot the error
"I set when the true remaining cost is to focus the search harder — this is fine because bigger heuristics are always better."
Error: overestimates, breaking admissibility. Concretely, with start and goal from the reminder box, costs but a direct edge costs ; the inflated makes the good path look expensive () so A* pops the direct goal () and returns , missing the true optimum .
"Consistency guarantees optimality, and admissibility guarantees no re-expansion."
Backwards. Admissibility guarantees optimality; consistency is the stronger property that additionally guarantees no closed node is re-opened.
"My heuristic satisfies and on every edge, but I still worry it might overestimate somewhere."
No worry needed. Those two conditions are consistency, and consistency provably implies admissibility, so never overestimates.
"To prove A* optimal I only need to check the goal's heuristic is zero."
Insufficient. The optimality proof needs for all nodes; is one required piece but does not by itself bound the other nodes.
"Since is the estimated total cost, A* should expand the node with the largest first to make fastest progress."
Error: A* expands the smallest . Smallest is the most promising cheapest-total candidate; largest would be the least promising node.
"A negative heuristic like is still admissible because it never overestimates."
Error: admissibility requires . A negative violates the lower bound and can distort , and it is pointless since true remaining cost is never negative.
"Dijkstra is a special case of Greedy best-first search."
Error: Dijkstra is A* with , i.e. . Greedy uses and discards ; they sit at opposite ends, with A* in between.
Why questions
Why does using only (greedy) lose optimality while keeps it?
Ignoring throws away the cost already paid (the magenta arrow in the figure), so A* can be lured into a route that starts cheap-looking but accumulates expensive edges; adding balances "what I've paid" against "what I still owe".
Why does admissibility, and not consistency, appear in the optimality proof?
The optimality argument only needs one frontier node on an optimal path to satisfy , which follows directly from — that is precisely admissibility.
Why does consistency make non-decreasing as we expand deeper?
For edge , because ; the heuristic's smoothness cancels the growth in so can only stay level or rise.
Why is straight-line (Euclidean) distance a safe heuristic for a drone that can fly diagonally?
A straight line is the shortest possible path between two points, so it can never exceed the true flyable cost () — admissible — and it obeys the triangle inequality — consistent. See GNC Path Planning.
Why does GNC (Guidance, Navigation & Control) prefer A* over plain Dijkstra for on-board planning?
On-board compute is limited; an admissible funnels the search into a narrow cone toward the goal, exploring far fewer nodes while still returning the genuinely shortest route.
Why is a Priority Queue / Min-Heap the natural data structure for A*?
A* must repeatedly extract the minimum- open node; a min-heap gives that extraction and the insertion of updated values in logarithmic time, which is what makes the search efficient.
Why is Manhattan distance admissible on a 4-directional unit-cost grid?
Each move costs and changes the coordinate sum by at most , so the coordinate-difference count can never exceed the true number of moves needed.
Edge cases
What does A* return if the goal is unreachable?
The open list empties without ever popping a goal, so A* reports failure — the heuristic cannot manufacture a path that does not exist.
What happens when two nodes have equal ?
A* may expand either first (tie-break is implementation-defined); correctness is unaffected, though a tie-break favouring larger often expands fewer nodes.
Is (a perfect heuristic) admissible, and what does A* do with it?
Yes, equality satisfies and is consistent. A* then walks straight down an optimal path expanding essentially only nodes on it — the ideal, though usually uncomputable.
What is required to be, and why?
It must be . There is no remaining cost at the goal, and the consistency/telescoping and optimality arguments both rely on this anchoring value being exactly zero.
If all edge costs are zero, is any still admissible?
Only is admissible, because everywhere, so any positive would overestimate — a degenerate but instructive boundary.
Does a graph with a zero-cost edge still allow consistency?
Yes, consistency then demands across that edge; it is a valid constraint, not a contradiction, as long as the heuristic does not drop across the free edge.
What does the consistency inequality reduce to on an edge where ?
It becomes , i.e. it just requires the edge cost to be non-negative — trivially true (our standing assumption), showing consistency is automatic when the heuristic is flat.