In theoretical computer science, best-first search algorithms like A* are celebrated for being "node-optimal"—they expand the minimum number of nodes necessary to find an optimal solution. However, a persistent gap exists between theoretical node optimality and real-world wall-clock execution time.
As demonstrated by Weixiong Zhang et al. in Depth-First vs. Best-First Search: New Results, minimizing the number of expanded nodes does not guarantee a faster algorithm. The culprit is the agenda management tax: the computational overhead required to maintain, sort, and update the global priority queue (or "open list") that tracks candidate nodes. While depth-first approaches process nodes in constant $O(1)$ time using a simple stack, best-first methods incur a logarithmic or linear cost for every node interaction, which can quickly dominate execution time as the search depth increases.
The Hidden Cost of Global Agendas
Why exactly does the priority queue become a bottleneck? In a standard best-first framework, every node expansion generates new child states that must be inserted into a global queue. If a better path to an existing state is discovered, its priority key must be updated—an operation that introduces significant incremental overhead, as noted by Jur van den Berg et al. in Anytime Nonparametric A*.
This administrative burden scales poorly across diverse applications:
- Natural Language Processing: In tree-based decoding, Andrea Gesmundo et al. observed in Heuristic Search for Non-Bottom-Up Tree Structure Prediction that managing a global priority queue for an entire sentence introduces severe computational complexity compared to localized search structures. Similarly, in high-performance parsing, Michael Auli et al. showed in Efficient CCG Parsing: A* versus Adaptive Supertagging that the constant factors of data structure operations can completely outweigh the benefits of exploring fewer edges.
- Hardware Implementations: Di Guan et al. highlighted in Successive Cancellation Priority Decoding of Polar Codes that standard insertion and comparison tasks scale poorly in hardware, creating a bottleneck for real-time decoding applications.
- Constraint Satisfaction: Even in constraint solvers, the administrative tasks of managing a revision queue can become a primary bottleneck when managing redundant constraints, as discussed by Deepak Mehta 0001 et al. in Reducing Checks and Revisions in Coarse-grained MAC Algorithms.
Eliminating the Queue via Linear-Space and Preprocessed Search
To bypass this bottleneck, researchers have designed algorithms that eliminate the global priority queue entirely while preserving best-first behavior. A foundational breakthrough was achieved by Richard E. Korf in Linear-Space Best-First Search: Summary of Results, which introduced Recursive Best-First Search (RBFS). RBFS uses a depth-first traversal strategy that tracks the best alternative path available globally, allowing it to operate in linear space and avoid a massive global list.
However, linear-space variants introduce their own trade-offs: sorting child nodes at every step can still create per-node overhead. To address this, Matthew Hatem et al. proposed $RBFS_{CR}$ in Recursive Best-First Search with Bounded Overhead, utilizing a histogram-based technique to bound the overhead of node re-expansions.
Another angle is to bridge the gap using tunable memory parameters. Anup K. Sen et al. developed MREC in Fast Recursive Formulations for Best-First Search That Allow Controlled Use of Memory, which dynamically adjusts its reliance on a global queue based on available RAM.
Alternatively, one can eliminate the dynamic queue altogether through compilation: Qiang Yang et al. demonstrated in Preprocessing Search Spaces for Branch and Bound Search that preprocessing a problem's structure into a "threaded decision graph" allows the search to proceed as a straightforward traversal, completely removing the open list management tax.
Controlling Frontier Bloat and Global Competition
If the queue cannot be eliminated, its overhead can be mitigated by keeping it as small as possible. In grid-based pathfinding, the size of the open list often explodes due to redundant symmetric paths. Nathan R. Sturtevant et al. showed in Canonical Orderings on Grids that applying a canonical ordering breaks these symmetries, preventing unnecessary insertions and dramatically reducing queue maintenance costs.
Another issue is global competition: standard best-first search expands nodes based on a global priority, forcing the algorithm to jump across irrelevant branches of an NP-hard search space. To counteract this, Sandip Aine et al. introduced a window-constrained approach in AWA* - A Window Constrained Anytime Heuristic Search Algorithm, which restricts the search frontier to a localized window, preventing the exponential bloat of a global queue.
Suboptimal and Fixed-Width Alternatives
In large-scale or real-time applications, the cost of sorting the frontier often outweighs the benefits of strict best-first ordering. In neural text generation, for example, Jiacheng Xu et al. demonstrated in Best-k Search Algorithm for Neural Text Generation that managing a large priority queue introduces severe latency compared to fixed-width methods like beam search, even when parallelized.
To reconcile this, researchers design hybrid structures. Chao Gao et al. introduced MB2FBS in A Memory-Bounded Best-First Beam Search and Its Application to Scheduling Halide Programs, highlighting that carefully managing transitions between active and deferred priority queues requires high-performance data structures to avoid negating the search's efficiency gains.
Finally, in the domain of unbounded suboptimal search, Sepehr Lavasani et al. developed the Anchor Search framework in Anchor Search: A Unified Framework for Suboptimal Bidirectional Search, showing that when the goal is simply to find a valid path quickly, minimizing the sorting and maintenance overhead of the search frontier is the single most critical factor for achieving real-world scalability.
Key Foundational Work
Preprocessing Search Spaces for Branch and Bound Search (1989) — contributed 2 concept elements to this direction.
Preprocessing Search Spaces for Branch and Bound Search (1989) — contributed 1 concept elements to this direction.
Linear-Space Best-First Search: Summary of Results (1992) — contributed 1 concept elements to this direction.