Priority Queue Overhead in Best-First Search

22 concepts18 papers1 proposal

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:

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.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 17 papers
  2. Version 1 · 2026-10-04 · 16 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_priority_queue_overhead_0ebc6a75,
  title = {priority queue overhead},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/priority-queue-overhead/rdr_0ebc6a75486249128336ed7c6e1f81f9},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 2, frozen text):

@misc{lacuna_priority_queue_overhead_0ebc6a75_v2,
  title = {priority queue overhead},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/priority-queue-overhead/rdr_0ebc6a75486249128336ed7c6e1f81f9/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake