Graph
Best-First Search

🧭Best-First Search

NEW

A graph search strategy that expands the most promising node first according to a heuristic evaluation.

DESCRIPTION

Best-first search explores nodes in order of heuristic desirability using a priority queue. Greedy best-first uses only the estimated cost-to-go, while A* augments with the path cost for optimality under admissible heuristics. It’s effective for pathfinding and planning but may get trapped by misleading heuristics. Performance depends on heuristic quality and tie-breaking strategy. Memory consumption can be high due to frontier storage.

ALTERNATIVE DEFINITIONS

Wikipedia

Best-first search is a search algorithm which explores a graph by expanding the most promising node chosen according to a specified rule.

Defines selection by a rule, typically a heuristic evaluation.

Source

MIT OpenCourseWare

Best-first strategies rank alternatives and choose the one that appears best according to a heuristic, revising choices as new information appears.

Highlights dynamic re-ranking and heuristic-driven exploration.

Source

Greedy Decoding Heuristic Priority Queue Graph Search Dijkstra’s Algorithm Beam Search Breadth-First Search Depth-First Search

COMPETING TERMS

A-star Search Uniform-Cost Search

RELATIONS

KNOWLEDGE AREAS

AI Software Engineering Mathematics

TARGET AUDIENCE

AI Engineer Software Developer Data Scientist

EXTERNAL SOURCES

TOP QUESTIONS

Greedy best-first uses only the heuristic cost-to-go, while A* combines path cost and heuristic, achieving optimality with admissible heuristics.

Category: Alternatives

Use it when a good heuristic exists and you need fast, approximate solutions in large search spaces.

Category: Requirements

Poor heuristics cause excessive exploration or dead-ends; memory usage can grow quickly with large frontiers.

Category: Mistakes

Heuristics should be informative, cheap to compute, and, for A*, admissible and consistent to ensure optimality.

Category: Requirements

A priority queue (min-heap) orders nodes by heuristic evaluation.

Category: Example

Is Best-First Search complete?

Greedy best-first is not necessarily complete, especially with infinite spaces; A* can be complete under certain conditions.

Category: Misunderstanding

Learning heuristics from data for planning and pathfinding is an active area.

Category: Topic

How do tie-breaking strategies affect performance?

They influence node ordering and can reduce search churn or improve path quality in practice.

Category: Management

Robot pathfinding, game AI navigation, and route planning systems often rely on best-first strategies.

Category: Example