Reducing Priority Queue Overhead in Best-First Search

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 216 papers20 conceptsfrozen 2026-10-04

In the theory of heuristic search, algorithms like A* are celebrated for being "optimally efficient"—they expand the minimum number of nodes necessary to find a solution. However, in practice, being the "best" comes with a hidden administrative tax.

The central mechanism of best-first search is the Open List, a global priority queue that stores every candidate node the algorithm has seen but not yet explored. As the search space grows, the cost of inserting, sorting, and extracting nodes from this list becomes a dominant performance bottleneck. Recent research across pathfinding, robotics, and language modeling focuses on a singular goal: reducing this "administrative overhead" to make best-first search competitive with simpler, faster alternatives.

The Hidden Cost of Global Order

The intuition behind best-first search is simple: always explore the most promising node next. To do this, the algorithm must maintain a perfectly sorted list of every frontier node.

As Nathan R. Sturtevant and Steve Rabin demonstrate in Canonical Orderings on Grids, this global competition is often unnecessary. In grid-based pathfinding, many paths are symmetrical; a standard A* search will dutifully add every redundant step to the priority queue, ballooning its size. By using "canonical orderings" to break these symmetries, they show that reducing the number of nodes that ever enter the queue is more impactful than the search strategy itself.

The problem scales poorly. Sepehr Lavasani and colleagues note in Anchor Search that in large-scale pathfinding, the computational cost of managing the frontier often outweighs the benefits of the heuristic. Even in modern domains like Large Language Model decoding, Jiacheng Xu points out in Best-k Search Algorithm for Neural Text Generation that the latency of managing a large priority queue makes best-first strategies significantly slower than fixed-width methods like beam search, despite the former's theoretical superiority.

Trading Re-computation for Memory

One of the most influential ways to bypass the priority queue bottleneck is to move the search into a recursive, depth-first framework. In his seminal work on Recursive Best-First Search (RBFS), Richard E. Korf solved the memory explosion of A* by using the call stack instead of a global list.

The intuition here is a trade-off: RBFS only keeps track of the current path and its immediate siblings. When it realizes a different branch might be better, it "unwinds" the search and starts over. While this leads to redundant node expansions, it eliminates the $O(\log N)$ cost of queue operations and the $O(N)$ memory cost of the Open List. Later improvements, such as RBFS with Bounded Overhead by Matthew Hatem and Wheeler Ruml, use histograms to track the distribution of costs, ensuring that the algorithm doesn't spend too much time re-exploring the same nodes.

Amortizing Costs via Lookaheads

If a global priority queue is expensive, a natural solution is to use it less often. Roni Stern and Ariel Felner explored this in Using Lookaheads with Optimal Best-First Search.

Instead of expanding a single node and immediately jumping back to the priority queue to find the next best one, they perform a small, local depth-first search (a "lookahead") from the current node. This allows the algorithm to explore several steps of the state space for the cost of a single queue interaction. This "amortizes" the administrative cost across multiple nodes, making the per-node processing time much closer to that of a fast depth-first search.

When memory is available, researchers often try to bridge the gap between the speed of depth-first search and the informedness of best-first search. Anup K. Sen and Amitava Bagchi introduced MREC, a hybrid that uses a tunable memory parameter to act like A* when RAM is plentiful and like a recursive search when it is scarce.

Similarly, Sandip Aine proposed AWA*, which uses a "window" to constrain the search. Instead of letting every node in the world compete in one giant priority queue, AWA* focuses on a subset of nodes. This prevents the search from being "distracted" by irrelevant branches in NP-hard problems, effectively reducing the overhead of global competition.

Structural Efficiency

Finally, some researchers focus on making the priority queue itself faster. Yunxiang Liu and colleagues demonstrated in Application of A* Algorithm and Its optimization Method that simply switching to a binary heap for the Open List can reduce search time by 50% in urban routing. In more specialized domains, like searching weighted binary codes, Zhenyu Weng shows that the quadratic scaling of priority queue management for bucket probing can be the primary bottleneck, requiring specialized data structures to maintain speed.

Whether through recursive formulations, lookaheads, or better data structures, the evolution of heuristic search is a move away from the "pure" but expensive global priority queue toward more localized, memory-efficient, and computationally lean architectures.

Papers in this version

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 1, frozen text):

@misc{lacuna_reducing_priority_queue_overhead_in_best_0ebc6a75_v1,
  title = {Reducing Priority Queue Overhead in Best-First Search},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/reducing-priority-queue-overhead-in-best-first-search/rdr_0ebc6a75486249128336ed7c6e1f81f9/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}