Heuristic Search
Updated 2026-08-15
Summary
A search strategy that uses an estimate of remaining distance to explore the most promising paths first, rather than expanding every possibility in order.
Definition
Heuristic search is a central technique in artificial intelligence, formalized in algorithms such as A* and in the branch-and-bound methods of operations research. Its core proposition is that when exhaustive enumeration is infeasible, an estimate of how close a state is to the goal can order the exploration so that promising paths are examined first and resources are spent where they are most likely to pay. The key qualification is admissibility: if the estimate can exceed the true remaining cost, the search may return a path that is not optimal, so the quality of the heuristic bounds the quality of the result.
Introduction
How to use
- Use heuristic design: define a cheap estimate of the remaining distance to the goal. - Use ordering rule: expand the node with the best estimated total cost next. - Use admissibility check: confirm the estimate never exceeds the true remaining cost.
Mechanism
Uniform search spends the same effort everywhere, so most of the work goes into regions that cannot contain a solution. An estimate of remaining distance reorders the queue, so the frontier moves toward the goal and the wasted expansion falls. If the estimate never overstates the remaining cost, the first solution found is optimal, because any lower path would have had a lower estimate and been expanded earlier. When the estimate is optimistic in the other direction, the search becomes faster but loses that guarantee, which is the trade the designer chooses.
Practice
In progress 0/1Practice this model in one real situation:
Cases
- A* path planning on a map, where straight-line distance orders which routes are explored first.
- Branch-and-bound optimization using a relaxation of the problem to decide which subproblems to pursue.
Common pitfalls
- Using a heuristic that overstates the remaining cost, which speeds the search but forfeits the optimality guarantee.
- Designing an estimate that is as expensive to compute as the search itself, which removes the benefit.
- Trusting the heuristic so completely that alternatives are never examined, so a misleading estimate leads the search astray.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Heuristic_(computer_scienceverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS