Skip to content

    Greedy Best-First Search

    Reading time: 2 min.Editorially reviewed on:

    Definition

    Greedy Best-First Search extends the state with the smallest estimated distance to the target.

    The priority is based only on the heuristic h(n), not on the previous path costs. This can be fast, but does not guarantee optimal paths or completeness without further ado.

    Simply explained

    The search always tracks the most promising clue at the moment.

    Why it matters in practice

    It is useful for navigation and planning when fast, usable solutions are more important than optimum solutions.

    Example from business

    Hypothetical example: A route prototype compares GBFS with A* for runtime and path quality.

    Limits and pitfalls

    • Confuse with A*; overlook previous path costs; ignore cycles, search limits and ties. Even a permissible heuristic does not guarantee an optimal way for GBFS.

    Origin & history

    Greedy Best-First Search belongs to the classical heuristic search and is systematically described in the author textbook of Poole and Mackworth.

    Use in mid-sized companies

    • Compare runtime and solution quality with A* or a suitable baseline on your planning cases.

    Frequently asked questions

    Does GBFS consider previous costs?

    No. Does it find the shortest path? Not guaranteed.

    Sources

    Source check: 10.10.2026. Definition and documented classification verified; examples describe possible applications.

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice