Intelligence, Agency & Consciousness · Paper 0075

When an estimate earns the next expansion

Hart, Nilsson and Raphael gave heuristic search a formal contract in 1968. A* combines the cheapest route discovered so far with a lower-bound estimate of what remains, expands the smallest sum, and: under stated conditions: finds a minimum-cost path while using problem information as efficiently as their comparison permits.

Intelligence, Agency & Consciousness · Paper 0075

When an estimate earns the next expansion

Rajesh Ranjan Mahapatra

Hart, Nilsson and Raphael gave heuristic search a formal contract in 1968. A* combines the cheapest route discovered so far with a lower-bound estimate of what remains, expands the smallest sum, and: under stated conditions: finds a minimum-cost path while using problem information as efficiently as their comparison permits.

© 2026 Rajesh Ranjan Mahapatra. 28 min read

When an estimate earns the next expansionAll AI Research Library
01 · joining two traditions

The paper opens by separating two approaches that had usually travelled alone. One proved that a graph algorithm would find a minimum-cost path. The other used special knowledge to search faster but could not always guarantee the minimum.

Minimum-cost paths appear in routing telephone traffic, navigation through a maze, printed-circuit layout, mechanical theorem proving and problem solving. A purely mathematical treatment studies graph structure and ordered expansion with correctness foremost. A heuristic treatment uses information peculiar to the domain: airline distance between cities or geometry in a theorem prover: to avoid exploring parts that look unpromising.

Hart, Nilsson and Raphael make heuristic information an explicit mathematical object. The estimate is not a mystical hunch. It is a number computed at a node, interpreted against a family of possible graphs consistent with the information available there. That interpretation lets the authors ask both whether the search returns an optimal path and whether another equally informed admissible search could guarantee the answer with fewer expansions.

The word “heuristic” therefore does not mean “unprincipled”. It marks incomplete problem information brought to bear on order of exploration. The estimate may be weak, strong, cheap, expensive, safely low or dangerously high. Each property belongs to a different question: guarantee, number of expansions and total computation must not be collapsed.

The resulting method is a family. Different choices of ĥ create different A* algorithms, all sharing the rule that the smallest evaluation is expanded next. The zero heuristic uses no domain information and reduces to lowest discovered path cost. A more informative lower bound can reduce expansion, provided the effort of computing it is itself worth paying.

Worked example · cities and two kinds of distance

A road route from city n to the goal can never be shorter than the straight-line distance between them. That physical fact turns airline distance into a lower bound on unknown remaining road cost. The number guides order without pretending to be the route itself.

Causal probe · use a persuasive but unbounded score

Rank cities by a learned “looks close” score with no lower-bound interpretation. Search may become fast, but the proof that the first selected goal is cheapest no longer applies. Predictive usefulness and admissibility are separate properties.

The mathematical and heuristic approaches join in A starA guarantee path and a domain-information path converge on an evaluation rule that orders graph expansion.TWO APPROACHES, ONE FORMALISMMATHEMATICALgraph costsminimum-path guaranteeHEURISTICdomain informationselective explorationA*formal estimate · ordered expansionknowledge becomes a lower bound with an audit trail
Figure 1. The paper's central move is to place domain information inside a graph-search theory that can still carry a guarantee.Source scope: Hart, Nilsson and Raphael 1968, §I.A.
02 · the problem object

The graph may exist only through a successor operator

The theory does not require a complete adjacency table. It permits a graph to be defined implicitly by a start node and an operation that generates successors with their arc costs.

The graph is directed. An arc from nᵢ to nⱼ need not imply a reverse arc, and if both exist their costs may differ. Every arc costs at least some positive δ. The positivity assumption later controls termination: a path with bounded total cost cannot contain arbitrarily many arcs.

From a specified start s, the successor operator Γ reveals pairs of successor nodes and costs. Repeated application generates an explicit searched subgraph. This is an economical model for problem spaces too large to list, such as moves in a game or symbolic transformations in a prover. Search pays to expose a node's outgoing structure only when it expands that node.

A path is an ordered sequence connected by directed arcs, and its cost is the sum of those arc costs. The goal set T is non-empty. For a node n, a preferred goal is a member of T reached at minimum possible cost from n. The authors write h(n) for that true remaining optimum; from the start, f(s)=h(s) is the cost of an unconstrained optimal solution.

The algorithm stores the cheapest path discovered so far to each encountered node and a predecessor pointer. When it terminates at a goal, the path is reconstructed by following pointers backwards. A node label is therefore not only a location; it is a mutable claim about the best known way to reach that location.

Worked example · an implicit maze

The program need not materialise every legal position. Expanding a position applies Γ to generate only its immediate moves and costs. If A* never expands a remote branch, the deeper states of that branch never become explicit.

Causal probe · allow zero-cost cycles

Remove the positive δ bound. Infinitely many distinct path prefixes can remain below a fixed solution cost by circulating at no charge. The paper's finite-step termination argument no longer follows, even though individual relaxations may still be meaningful.

An implicit graph is revealed by node expansionA small visible subgraph grows from a start node while faded unexplored successors remain implicit.EXPANSION MAKES THE GRAPH EXPLICITsΓ(n) reveals successors only when n is expandedstored path cost + predecessor pointer
Figure 2. An implicit graph makes expansion a computational purchase: outgoing structure is generated only at selected nodes.Source scope: Hart, Nilsson and Raphael 1968, §§I.B–I.C.
03 · the control loop

Open means available; closed means expanded

The 1968 algorithm alternates selection, goal testing and successor generation. Its details matter because the original procedure permits a closed node to become open again.

First mark the start open and calculate its evaluation. Then select an open node with smallest f̂, resolving ties arbitrarily but favouring a goal. If the selected node belongs to T, mark it closed and stop. Otherwise close it, apply Γ, update the discovered costs and predecessor pointers of its successors, and return to selection.

A new successor becomes open. A previously closed successor also becomes open when its evaluation is now lower than when it was closed. Because ĥ depends only on the node in the paper's presentation, that fall reflects a cheaper discovered path and a smaller ĝ. This reopening clause is part of the published A*, not a later embellishment.

Selection by minimum evaluation creates a best-first search over complete-route estimates. It is not greedy best-first search on ĥ alone: accumulated cost constrains how attractive a node may appear. Nor is it breadth-first expansion by number of arcs. Costs, not step counts, define the objective unless all arcs cost the same.

Favouring a goal in a tie makes termination precise. When a goal and non-goal share the smallest evaluation, choosing the goal returns a path with that value. The optimality comparison later has to handle ties separately because equally rated alternatives can change the exact set expanded without changing admissibility.

Worked example · a cheaper route reopens a node

Suppose A was closed with ĝ(A)=4. Later expansion of B reveals B→A and a path of cost 2. If ĥ(A) is unchanged, f̂(A) falls by two; the original Step 4 marks A open again so its improved route can reach successors.

Causal probe · treat closed as permanent without consistency

Delete the reopening clause while retaining an admissible but inconsistent heuristic. A node can close before its cheapest prefix is known, and a later improvement may never propagate. The simplified implementation needs an extra premise.

The open and closed control loop of A starThe algorithm selects the smallest open evaluation, tests for a goal, otherwise closes and expands the node, updates successors, and can reopen a closed node after improvement.THE 1968 CONTROL LOOPselect smallest open f̂goal?closestopyesnoclose · expand Γ · relax successorsopen new or improved closed nodesrepeatclosed is revisable unless consistency proves otherwise
Figure 3. The published loop explicitly reopens improved closed nodes. Later simplified graph-search variants must justify omitting that transition.Source scope: Hart, Nilsson and Raphael 1968, §II.A.
04 · the evaluation

One number adds what has been paid to what might remain

The true cost of the best solution constrained to pass through n decomposes into a prefix g(n) and remainder h(n). A* substitutes quantities it can possess during search.

The ideal f(n)=g(n)+h(n) says how much an optimal start-to-goal path through n costs. Determining it exactly could be as hard as the original problem. The algorithm therefore stores ĝ(n), the cost of the cheapest start-to-n path it has discovered, and computes an estimate ĥ(n) of the cheapest remaining path to a preferred goal.

Its evaluation is f̂(n)=ĝ(n)+ĥ(n). The two hats have different epistemic roles. ĝ is the exact cost of a concrete witnessed prefix, although a cheaper prefix may still exist. ĥ is a domain-derived estimate of an unseen optimum. The algorithm does not average them; it joins evidence already constructed to a bound on evidence still required.

The small graph in the paper shows why ĝ can change. Starting from s, the first discovered costs of n₁ and n₂ are 3 and 7. Expanding n₁ reveals another route to n₂ with total cost 6, so ĝ(n₂) is lowered and its predecessor changes. Path reconstruction follows the final predecessor chain, not the first encounter.

If ĥ=0 everywhere, f̂=ĝ and A* expands the node reached most cheaply so far. With unit arc costs this resembles breadth-first search; with arbitrary positive costs it orders by accumulated cost. Adding a safe positive ĥ can discriminate between equally affordable prefixes by their remaining promise.

true constrained cost: f(n) = g(n) + h(n) search evaluation: f̂(n) = ĝ(n) + ĥ(n) ĝ(n): cheapest discovered prefix ĥ(n): estimated cheapest remainder

Worked example · a lower total beats a shorter-looking remainder

Node A has ĝ=2 and ĥ=6, so f̂=8. Node B has ĝ=6 and ĥ=1, so f̂=7. Greedy search on ĥ chooses B; A* also counts what has already been paid and still chooses B only because its estimated total is lower.

Causal probe · compare ĥ without ĝ

Make the heuristic the entire score. A node one step from the goal may win even after an extremely costly detour. The method then pursues apparent proximity rather than minimum complete-path cost, and the A* proof no longer describes it.

The A star evaluation combines discovered prefix and estimated remainderA route from start to node is labelled g hat, the unknown continuation to goal is labelled h hat, and their sum is f hat.A PRICE FOR A COMPLETE ROUTEsngoalĝ(n)ĥ(n)f̂(n) = ĝ(n) + ĥ(n)witnessed past + bounded future
Figure 4. The evaluation estimates a whole start-to-goal route through n, rather than treating the heuristic as an isolated desirability score.Source scope: Hart, Nilsson and Raphael 1968, §II.B, equations 1–2.
05 · admissibility

A lower-bound remainder keeps an optimal frontier node alive

The first theorem establishes the core guarantee. If ĥ(n)≤h(n) for every node, A* finds a minimum-cost path whenever a path to a preferred goal exists in the paper's positive-cost graph.

Lemma 1 says that for any unclosed node n and any optimal path from s to n, some open node n′ on that path has ĝ(n′)=g(n′). The frontier cannot lose every optimally reached prefix: when a predecessor closes, its next path node is generated with the correct prefix cost unless a still cheaper discovered route already exists.

Apply the lower-bound condition to an optimal start-to-goal path P. Before termination, some open n′ on P has f̂(n′)=g(n′)+ĥ(n′)≤g(n′)+h(n′)=f(s), the optimal solution cost. The selection rule therefore never needs to choose a node rated above the optimum while that witness remains open.

The proof then eliminates three failure modes. The algorithm cannot stop at a non-goal because its stopping test forbids that. It cannot stop at a more expensive goal because the protected frontier node would have a smaller evaluation and be selected first. It cannot expand forever below the optimal cost because every arc costs at least δ, leaving only finitely many accessible nodes within the bounded number of steps, with each reopen also finite under the paper's assumptions.

“Admissible” names this algorithmic guarantee, and ĥ≤h is the sufficient condition on the heuristic. The word does not say that every estimated value is accurate, consistent or close to h. Zero is admissible but may give little guidance. A negative estimate would also be a lower bound yet could distort order; the practical family usually uses non-negative cost estimates.

Worked example · the frontier witness

If the cheapest complete path costs 12 and an open node on it has g=5, then its true remainder is 7. Any admissible estimate at most 7 gives f̂≤12. A goal currently reached at cost 15 cannot terminate search while that node remains available.

Causal probe · overestimate one decisive node

Raise the same node's ĥ from 7 to 20. Its evaluation becomes 25, so a cost-15 goal may be selected first. The rest of the heuristic can be excellent; one load-bearing overestimate is enough to break the theorem's ordering argument.

An open frontier node protects the optimal pathAn optimal path from start to goal crosses an open frontier node whose A star evaluation stays at or below the optimal solution cost, blocking a costlier goal.THE OPTIMAL FRONTIER WITNESSsOPEN n′f̂(n′) ≤ C*goal*costlygoala goal above C* cannot win selectionĥ≤h keeps at least one optimal continuation competitive
Figure 5. Admissibility rests on an invariant frontier witness, not on the heuristic predicting exact remaining cost.Source scope: Hart, Nilsson and Raphael 1968, Lemma 1, corollary and Theorem 1.
06 · why the search terminates

Positive arc cost turns a cost bound into a depth bound

The admissibility proof has to exclude an algorithm that keeps finding more nodes instead of ever selecting the goal. The paper's δ-graph assumption supplies the missing finiteness argument.

Let C* be the cost of a preferred goal from s. Because every arc costs at least δ>0, any path with more than M=C*/δ steps costs more than C*. The protected optimal-frontier node always has f̂≤C*, so A* does not need to expand a node whose ĝ alone is already above that ceiling.

Only nodes accessible within M steps can compete below the bound. Under the paper's locally finite generation assumptions, this set is finite. Reopening does not create a new node, but a node might be reached through several paths. Within a bounded number of steps there are only finitely many such paths, so the number of strict improvements and reopenings is also finite.

This is a proof about the formal model, not a universal runtime claim. A finite contender set can still be astronomically large, and an implicit successor operator may be expensive. The theorem establishes that the algorithm eventually reaches the optimal goal when one exists; it does not give a useful polynomial bound.

If costs can be negative, ranking partial paths by a discovered prefix and remaining lower bound needs a different analysis. If zero-cost cycles are permitted, depth is no longer controlled by cost. Modern formulations adopt their own conditions, but fidelity requires retaining the role of δ in this paper's termination case.

Worked example · convert cost seven into at most seven steps

With δ=1 and an optimal solution cost C*=7, every path of eight or more arcs already costs at least eight. Only nodes reachable within seven steps can outrank the protected optimal frontier on prefix cost alone.

Causal probe · shrink δ without changing the map

Replace unit lower cost by δ=0.001. The same solution ceiling now permits up to 7,000 arcs. The theorem still gives finiteness, but its induced search-depth bound becomes far less useful.

A positive minimum arc cost bounds competitive path depthConcentric layers expand from the start up to M equals optimal cost divided by delta. Nodes beyond that boundary have prefix cost above the optimum.COST CEILING → DEPTH CEILINGsone more arc costs ≥ δcompetitive layers end by M=C*/δOUTSIDEĝ > C*cannot beatfrontier witnessfiniteness is proved inside the bounded-cost ball
Figure 6. The positive lower bound on each arc is a load-bearing termination assumption, not a cosmetic convention.Source scope: Hart, Nilsson and Raphael 1968, Theorem 1, Case 2.
07 · information as possible graphs

The best safe estimate is the greatest lower bound allowed by what is known

The optimality section formalises “more informed” by asking which problem graphs remain possible at a node. A heuristic is extracted from this information set rather than judged only by numerical closeness after the fact.

At node n, let Ωₙ index the subgraphs compatible with the information the problem domain supplies about that state. Each candidate graph implies some true remaining optimum hθ(n). The paper defines ĥ(n) as the infimum of those values. No compatible world has a cheaper remainder, so the estimate is a lower bound in every world the information permits.

With no domain information, almost any connection to a goal remains possible and the greatest guaranteed lower bound may be zero. Road geometry rules out “hyperspace” shortcuts: if roads connect Euclidean locations and length cannot be below straight-line distance, airline distance is safe. Stronger constraints shrink Ωₙ and can raise the infimum.

An algorithm A is “no more informed” than A* when, at every node and actual graph, A's possible-graph set includes A*'s set. A cannot rule out a world that A* must still consider. This is a partial order on information, not a claim about code sophistication, prediction accuracy or access to more processor time.

The construction is idealised. In practice one uses a procedure known to return a lower bound rather than enumerating possible graphs and taking an explicit infimum. The possible-world account supplies semantics for the number: a larger admissible estimate is licensed only by information that genuinely excludes cheap continuations.

Worked example · information raises a floor

Without geometry, a road from n to the goal might cost almost zero, so the safe floor is zero. Knowing their straight-line separation is five and that road length dominates it removes all worlds with remaining cost below five, raising ĥ to five.

Causal probe · raise the estimate without shrinking Ω

Change ĥ from five to eight while keeping worlds that contain a cost-six route. The score may guide search well on the actual graph, but it no longer equals a lower bound over the declared information set. The guarantee cannot be bought by numerical confidence.

Problem information narrows possible graphs and raises a safe lower boundA broad set of possible graphs with low costs narrows through domain information. The infimum of remaining costs rises while staying below every compatible truth.INFORMATION EXCLUDES CHEAP WORLDSBROAD Ωₙhθ = 0 · 3 · 5 · 8 · 11infimum = 0domainconstraintNARROW Ωₙhθ = 5hθ = 8 · 11ĥ(n) = infimum = 5more information licenses a higher safe estimate
Figure 7. The paper grounds heuristic strength in excluded problem worlds: the greatest lower bound rises as admissible information narrows the possible subgraphs.Source scope: Hart, Nilsson and Raphael 1968, §III.A, equation 3.
08 · consistency and re-opening

A triangle inequality makes closed prefix costs final

The 1968 paper imposes a uniformity condition on the way domain information is used at neighbouring nodes. In modern language it is a consistent or monotone heuristic.

For an arc or reachable relation from m to n, consistency requires h(m,n)+ĥ(n)≥ĥ(m), where h(m,n) is the true cheapest cost from m to n. On a single edge of cost c(m,n), the familiar sufficient form is ĥ(m)≤c(m,n)+ĥ(n). The estimated remainder may fall along an edge by no more than the cost paid to traverse it.

Under this condition, f̂ is non-decreasing along the nodes A* closes. Lemma 2 shows that when a node closes, ĝ(n)=g(n): the discovered prefix is already optimal. Consequently a later path cannot lower its ĝ, so the reopening provision becomes vacuous. The implementation can leave closed nodes permanently closed.

Admissibility alone is weaker. Every estimate can lie below its true remaining cost while neighbouring values still violate the triangle condition. Such an inconsistent heuristic can make a node look cheap early and reveal a better prefix later. The original loop remains correct because it can reopen that node and propagate the improvement.

The paper illustrates inconsistency with an order-dependent heuristic for cities: some nodes receive airline distance and others receive a crude constant. Each local number may be a lower bound, yet the computation rule does not use information uniformly. The resulting estimate at a successor can drop too sharply relative to the connecting cost.

consistency: ĥ(m) ≤ c(m,n) + ĥ(n) therefore along a discovered edge: ĝ(m)+ĥ(m) ≤ ĝ(m)+c(m,n)+ĥ(n) = candidate f̂(n)

Worked example · admissible but inconsistent

Let edge A→B cost 1, true remainders be h(A)=5 and h(B)=4, and estimates ĥ(A)=5, ĥ(B)=0. Both estimates are admissible. Consistency fails because 5>1+0, so a simplified no-reopen implementation has lost its premise.

Causal probe · enforce consistency by pathmax

If a child estimate is too low, raise it enough to respect the parent's bound while staying admissible under appropriate conditions. Expansion order may change and reopenings may fall, but this is an additional algorithmic transformation, not a step stated in the 1968 procedure.

Heuristic consistency is a triangle inequality across an edgeA triangle from A to B to the goal compares h hat of A against edge cost plus h hat of B. A consistent side supports permanent closure; a violated side triggers possible reopening.THE HEURISTIC TRIANGLEABgoaledge cost c(A,B)ĥ(B)ĥ(A)ĥ(A) ≤ c(A,B) + ĥ(B)consistent estimates make f̂ monotone across closure
Figure 8. Consistency is stronger than never overestimating. Its practical reward is that an expanded node already has its optimal prefix cost.Source scope: Hart, Nilsson and Raphael 1968, §III.B–C, equations 4–5 and Lemma 2.
09 · optimality of expansion

“Optimal” means necessary nodes under matched information

The second headline result is not that A* always runs fastest. It is a comparison of node sets expanded by admissible algorithms that cannot rule out more graphs than A* can.

In the no-tie case, the paper argues that any node expanded by A* must also be expanded by every admissible algorithm A that is no more informed. Before A* reaches its preferred goal, the node's f̂ lies below the optimal cost. Because some graph compatible with A's information makes a cheapest solution pass through that node, A cannot safely leave it unexpanded and still guarantee optimality in every permitted graph.

Define N(A,Gₛ) as the number of nodes algorithm A expands on the reachable graph. The corollary gives N(A*,Gₛ)≤N(A,Gₛ), with equality only when the expanded sets coincide, under the theorem's premises. The measure counts nodes, not generated arcs, queue operations, heuristic arithmetic, memory or wall-clock time.

Ties require care. A* may choose one of several nodes with the same critical evaluation while another admissible algorithm chooses differently. Theorem 3 says that for any admissible A there exists a member of the A* family: an A* tie-breaking rule: whose expanded nodes are included in A's. A later corollary bounds an arbitrary A* member by A's expansions plus the number of critical ties.

The authors note that if another algorithm expands fewer nodes on one graph, it can be “lucky”: there exists some graph consistent with the shared information on which its skipped node matters and it loses the guarantee or must search more. Optimality is minimax over compatible problems, not retrospective praise for every realised run.

Worked example · fewer nodes can be luck rather than stronger guidance

Algorithm A skips branch X and the actual graph happens to reward that choice. If its information could not exclude a compatible graph whose only cheap goal lies through X, the shortcut is not a guaranteed improvement. A* pays for that unresolved possibility.

Causal probe · replace expansions with elapsed time

A heuristic may save ten expansions but require an expensive optimisation at every node. The theorem's inequality still holds for N while total runtime worsens. Changing the resource measure changes the optimisation claim.

A star expands a necessary core under matched informationA compact core of nodes expanded by A star lies inside a larger set expanded by another no-more-informed admissible algorithm, with critical tie nodes at the boundary.NODE-EXPANSION COMPARISONNO-MORE-INFORMED ADMISSIBLE AA* NECESSARY COREtietietieno ties: N(A*) ≤ N(A)ties: choose a matching A* member, or account for critical tiesthe metric is expansion count: not total work
Figure 9. The optimality theorem compares guaranteed node expansions under a formal information order. It is not a universal claim about runtime.Source scope: Hart, Nilsson and Raphael 1968, Theorems 2–3 and corollaries.
10 · the 1972 correction

Consistency simplifies A*, but the main expansion theorem does not require it

Four years later the authors published a correction prompted by Ron Colman. Their optimality proof had invoked a stronger equality than it actually needed.

The 1968 article states the expansion-optimality theorem under the consistency assumption. The correction observes that the required inequalities follow from a weaker relation: the heuristic lower bound and the definition of the best discovered prefix are sufficient for the main comparison. Theorems 2 and 3 can therefore be strengthened by dropping consistency.

The authors replace the dependency on Lemma 3 with a new corollary: while A* has not terminated, every closed node n has f̂(n)≤f(s), the optimal solution cost. The proof uses the open frontier node on an optimal path and the fact that n was selected ahead of it. It does not require the closed node's discovered prefix to be globally optimal.

Consistency remains necessary for the original Lemmas 2 and 3. In particular, it ensures ĝ(n)=g(n) when n closes and removes the need to consider reopening closed nodes. The correction thus separates a practical implementation property from the broader node-expansion result.

This distinction matters when reconstructing the paper today. Reporting only the 1968 premise repeats a known overrestriction; reporting that consistency is irrelevant to A* erases its no-reopen consequence. The accurate account keeps both dates: the original formalisation and the authors' explicit strengthening.

Worked example · two claims, two premise sets

An admissible inconsistent heuristic can still support the corrected expansion comparison when the original reopening algorithm is used. The same heuristic cannot justify permanently closing a node after its first expansion. Optimality-of-set and no-reopening are different theorems.

Causal probe · erase the correction from the evidence pack

A reader would infer that consistency is logically necessary for every headline result. Add the correction and the dependency graph changes: admissibility supports the main guarantee and comparison; consistency supports monotone closure and simpler state management.

The 1972 correction separates main theorems from no-reopeningA premise diagram shows admissible lower bounds supporting path and expansion results, while consistency branches separately to optimal closed prefix costs and no reopening.AFTER THE CORRECTIONLOWER-BOUND HEURISTICĥ ≤ hMAIN RESULTSoptimal path · expansion comparisonADD CONSISTENCYtriangle inequalityĝ=g at closureno reopening required1972: main proofs need onlythe weaker closed-node boundweaker theorem premise · retained implementation benefit
Figure 10. The correction removes consistency from the main optimality theorems while preserving its independent practical consequence.Source scope: Hart, Nilsson and Raphael 1972 correction, pp. 28–29.
11 · heuristic power and total work

More informed can mean fewer expansions without meaning less computation

The concluding section treats ĥ as a design dial. The formal lower bound controls admissibility; its numerical strength and evaluation cost control practical usefulness.

Set ĥ=0 and A* uses no domain information. In the cities example, this behaves as though roads could pass through hyperspace: the goal might be arbitrarily close in road cost regardless of coordinates. Euclidean distance adds a physical restriction and commonly reduces node expansion.

A weaker bound such as half the Manhattan coordinate displacement can remain admissible while expanding more nodes than Euclidean distance. It may be cheaper to calculate. The node-minimal method under one information model need not minimise arithmetic effort, memory traffic or latency. Choosing a heuristic is a resource allocation decision.

Raise ĥ beyond the greatest safe lower bound and A* is no longer admissible. The paper notes that such a choice may find a desirable, though not necessarily minimum, path with fewer expansions. That is a legitimate trade only when the application consciously relaxes the optimality requirement; it must not be reported as the same guarantee.

The graph model also bears responsibility. If Γ or arc costs poorly represent the real problem, an optimal graph path may be an inadequate real solution. Formal correctness is conditional on modelling choices. The authors explicitly return responsibility for an adequate mathematical representation to the investigator.

Evidence boundary

A* optimises an explicitly costed path problem. It does not decide which real-world goals deserve pursuit, whether costs capture every consequence, or how a heuristic should be learned. Those are modelling and governance questions outside the theorem.

Executable laboratory

Change five lower bounds and watch A* reopen the graph

Five controls set admissible heuristic fractions for S, A, B, C and D on a fixed positive-cost directed graph. The laboratory uses the paper's reopening rule and audits all 4⁵=1,024 configurations against an independent uniform-cost oracle.

Returned path:
Cost / oracle:
Expanded / reopened:
Consistency violations:

Running optimal-cost audit…

Running path-certificate audit…

Running admissibility and reopening audit…

Worked example · default configuration reopens A and C

A and C begin with zero estimates while B carries its exact remainder. The first discovered route closes A and C too early. Expanding B later improves A from cost four to two; A reopens, then improves and reopens C. The final path S→B→A→C→D→G costs seven.

Causal probe · make every heuristic exact

Set all five controls to exact. Every open node on an optimal route has total estimate seven, and goal-favouring ties finish without the inconsistent drops that caused reopening. The answer stays the same while the state trajectory changes.

Verification ledger

Claims, premises and audit handles

ClaimPremiseAudit handle
A* returns a minimum-cost preferred goal path.Positive-cost δ-graph; ĥ(n)≤h(n); original selection and reopening rules.Compare returned cost with an independent uniform-cost search.
An optimal frontier witness remains competitive.Open/closed updates preserve a correctly priced prefix on every unclosed optimal path.Log the open node with ĝ=g and f̂≤C* before each selection.
Closed nodes never need reopening.The heuristic satisfies the consistency triangle.Check every edge ĥ(u)≤c(u,v)+ĥ(v) and every closure ĝ=g.
A* is expansion-optimal in the paper's sense.Comparator is admissible and no more informed; ties are absent or explicitly accounted for.Compare expanded node sets, not elapsed time.
The main comparison does not require consistency.Use the strengthened 1972 proof and retain reopening for inconsistent admissible estimates.Trace the correction's weaker closed-node f̂≤f(s) lemma.
A stronger heuristic is operationally better.Only if reduced expansion outweighs the cost of computing and storing the estimate.Measure total resources separately from N.
Two comprehensive reviews

Fidelity, teaching and implementation review

Review one: scholarship. The reconstruction retains the directed δ-graph, implicit Γ operator, preferred goals, mutable ĝ and predecessor pointers, goal-favouring tie rule, reopen condition, frontier lemma, three-case admissibility proof, possible-graph semantics of information, consistency triangle, node-expansion comparison and tie-qualified family result. The 1972 correction is treated as part of the governing evidence rather than a footnote.

Review two: teaching and execution. Ten accessible SVGs each have a unique title, description, caption and source scope; reduced-motion preference disables animation; labels carry meaning independently of colour. Twelve worked examples and twelve causal probes test every load-bearing boundary. The laboratory exhaustively checks 1,024 admissible heuristic configurations against uniform-cost search, verifies path certificates and audits every reopening.

AI-telltale and evidence review. The prose does not claim that A* “understands” a map or that heuristic information is a feeling. Later terms such as monotone heuristic and uniform-cost search are used for orientation without rewriting the 1968 notation. The expansion theorem is not inflated into a universal speed or memory theorem.

Scope review. The algorithm pursues a supplied start-to-goal objective on a supplied cost graph. It neither creates goals nor judges whether graph costs represent social, moral or strategic value. Its relevance to agency lies in explicit action selection under bounded information, with a certificate and stated failure conditions.

Memory studio

Twelve cards for rebuilding A*

Γ successor operatorGenerates outgoing nodes and arc costs only when a node expands.
δ-graphEvery arc has cost at least one positive δ.
OpenGenerated and available for selection.
ClosedAlready expanded, but reopenable after a strict improvement.
ĝ(n)Cost of the cheapest start-to-n path discovered so far.
ĥ(n)Estimated cheapest remaining cost from n to a preferred goal.
f̂(n)The sum ĝ(n)+ĥ(n), used to order open nodes.
Admissible heuristicA lower bound: ĥ(n)≤h(n) at every node.
Frontier witnessAn open node on an optimal path whose prefix cost is exact.
Consistencyĥ(u)≤c(u,v)+ĥ(v), making closure permanent.
No more informedA comparator rules out no possible graph that A* still allows.
Critical tieEqual minimum evaluations whose resolution can change expansion count.
Interpretive synthesis

A lower bound is a disciplined form of foresight

A* acts on an estimate without treating the estimate as fact. The path prefix is witnessed, the remainder is bounded, and the two are marked separately. This epistemic bookkeeping lets a machine exploit anticipation while retaining a proof obligation.

The open set materialises unresolved possibilities. Closing a node spends computation to expose its successors; reopening admits that a past commitment rested on an inferior route. Consistency is valuable because it turns a revisable action into a final one without weakening correctness.

Information has force only through exclusions. A higher heuristic is justified when domain knowledge rules out cheap compatible continuations, not when a score is merely confident. This makes the formalism an early lesson in evidence-bounded action: stronger guidance needs a stronger warrant.

The optimality theorem is comparative and conditional. It says that another admissible algorithm with no more information cannot guarantee avoiding A*'s necessary expansion work, apart from ties. That precision matters for intelligent systems: a local success can be luck, while a guarantee quantifies over the alternatives the agent could not distinguish.

Worked example · prediction that carries its own authority limit

Airline distance may influence which city expands next because geometry proves it cannot exceed the shortest road route. The same number cannot justify choosing a goal, redefining road costs or ignoring a cheaper witnessed prefix. Its authority is exactly the lower-bound relation.

Causal probe · hide the two hats

Store only f̂ and discard whether each part came from a path witness or a heuristic estimate. Selection can still run, but auditing becomes weaker: a reviewer cannot tell whether an error came from cost accumulation, domain estimation or an illicit overestimate.

Boundary statement

A* is not evidence of phenomenal consciousness. It is a formal mechanism for goal-directed search with explicit costs, partial information, revisable state and a correctness theorem. Any claim about experience or self-awareness requires independent evidence.

Place in the canon

From the shortest frontier to an informed frontier

Canon 0071 established Dijkstra's permanent shortest-path frontier: with non-negative costs, select the least tentative distance and make it final. Canons 0072–0074 then followed proof search through propositional elimination, branching and first-order unification. Canon 0075 returns to paths with a new ingredient: an explicit lower bound on the cost still ahead.

Hart, Nilsson and Raphael preserve Dijkstra's accumulated-cost discipline while adding domain-guided anticipation and, when consistency is absent, reopening. The result unifies mathematical and heuristic search and exposes exactly which premise licenses each shortcut.

Canon 0076 turns next to Knuth and Moore's analysis of alpha-beta pruning. The object changes from one-agent path cost to adversarial game trees, but the resource question persists: which branches can be proved irrelevant before their leaves are examined?

Publication brief

What this companion adds

This companion reconstructs the complete eight-page 1968 argument and incorporates the authors' two-page 1972 correction. It separates implicit graph generation, witnessed prefix cost and estimated remainder; walks the frontier lemma and termination cases; formalises problem information as compatible subgraphs; distinguishes admissibility from consistency; and qualifies expansion optimality by information and ties.

Ten bespoke animated figures, twelve worked examples, twelve causal probes and twelve memory cards make the proof dependencies inspectable. The executable laboratory deliberately includes admissible but inconsistent configurations, implements the primary's reopening rule, and checks all 1,024 control combinations against an independent shortest-path oracle.

The evidence pack centres the IEEE scan and the authors' correction, with Dijkstra, Moore and the cited dynamic-programming line supplying compact historical context. Modern vocabulary is used only where it clarifies a relation already present in the sources.

References

Primary and corrective sources

  1. Peter E. Hart, Nils J. Nilsson and Bertram Raphael, “A Formal Basis for the Heuristic Determination of Minimum Cost Paths”, IEEE Transactions on Systems Science and Cybernetics 4(2), 100–107 (1968). Publisher DOI.
  2. Peter E. Hart, Nils J. Nilsson and Bertram Raphael, “Correction to ‘A Formal Basis for the Heuristic Determination of Minimum-Cost Paths’”, SIGART Newsletter 37, 28–29 (1972). Publisher DOI.
  3. Edsger W. Dijkstra, “A Note on Two Problems in Connexion with Graphs”, Numerische Mathematik 1, 269–271 (1959). Publisher DOI.
  4. Edward F. Moore, “The Shortest Path Through a Maze”, Proceedings of an International Symposium on the Theory of Switching, Part II, 285–292 (1959).
  5. Nils J. Nilsson, Problem-Solving Methods in Artificial Intelligence, McGraw-Hill (1971), the book proof explicitly discussed in the correction.