The Monotone (Consistency) Condition
The one inequality that lets A* never reopen a closed node — and the two consequences every exam trace relies on
The Simplest Explanation
A heuristic is monotone (consistent) if across every edge from node m to node n:
In words: the heuristic never drops faster than real cost accrues. Equivalently, h never overestimates the cost of any single edge.
Monotone ⇒ admissible (chain the inequality along any path to goal). The reverse is false. Manhattan distance on a grid is monotone whenever edge costs ≥ grid-step differences.
Consequence 1 — f Never Decreases Along a Path
For successor n of m:
Add to both sides:
So : f values are non-decreasing along every path A* explores. This matches observed A* traces where f creeps upward toward the goal.
Consequence 2 — First Path Found to Any Node Is Optimal
When A* selects node n from Open, exactly.
Proof sketch by contradiction: if , some node on the true optimal path to n would still be on Open with , contradicting that n was the minimum choice. Hence no cheaper route to n exists.
The Payoff: Case 3 Vanishes
Recall A*'s three cases for neighbors:
- New → add to Open
- On Open with cheaper g → update
- On Closed with cheaper g → update + propagate improvement to descendants
Under monotonicity, Case 3 never arises. Once a node moves to Closed, it stays put — no reopening, no propagation. A* degenerates into Dijkstra-style bookkeeping: close once, done.
Why This Unlocks Memory Pruning
If Closed nodes are final, they can be safely deleted or compressed (Frontier Search / SMGS rely on this). With an inconsistent heuristic you must keep Closed around — a reopened node might need its old parent chain.
| Heuristic | Reopenings | Closed pruning safe? |
|---|---|---|
| Monotone | none | Yes |
| Merely admissible | possible (Case 3) | No |
| Inadmissible | frequent; optimality lost anyway | moot |