A Brief History and Recent Achievements in Bidirectional Search

Nathan R. Sturtevant, Ariel Felner

Abstract

Bidirectional search has long promised exponential efficiency gains in pathfinding, yet practical implementations often struggled to outperform unidirectional A*. This paper explores the theoretical breakthrough that equates optimal bidirectional search to a Minimum Vertex Cover problem. We detail the Near-Optimal Bidirectional Search (NBS) algorithm, which provides a 2-approximation guarantee on node expansions, and review its performance across diverse domains including grid mazes and the Towers of Hanoi.

Introduction: The "Holy Grail" of Pathfinding

For decades, the "holy grail" of pathfinding was a simple question: if searching from both the start and the goal simultaneously is faster in a simple maze, why is it so hard to make it work with heuristics? Research presented at AAAI-18 by Nathan Sturtevant and Ariel Felner summarizes a major breakthrough that finally provides a theoretical foundation for bidirectional search.

In theory, bidirectional search should be an exponential win—searching two small circles instead of one giant one. As shown in Figure 1, while a unidirectional search like Dijkstra's expands a space proportional to $b^d$, a bidirectional approach can ideally reduce this to $2b^{d/2}$.

Theoretical search space reduction: Dijkstra's algorithm vs. bidirectional search.

In practice, bidirectional heuristic search (Bi-HS) often performed worse than standard A. Historically, researchers blamed this on "frontiers passing each other" without meeting. Later, they realized the real issue was the "proof of optimality": even after the frontiers meet, the algorithm must keep searching to prove no better path exists. In 2015, researchers Barker and Korf even conjectured that Bi-HS might never* be the best approach. This work addresses that skepticism by providing the first rigorous analytical tools to determine when and why bidirectional search succeeds.

Methodology: NBS and the Vertex Cover Framework

The authors move beyond traditional "front-to-end" heuristics to a new theoretical framework based on the Must-Expand Graph ($G_{MX}$). They define "must-expand pairs": to prove a path of cost $C^*$ is optimal, for certain pairs of states $(u, v)$, an algorithm must expand either $u$ in the forward direction or $v$ in the backward direction. This requirement maps perfectly to the Vertex Cover problem in graph theory.

Near-Optimal Bidirectional Search (NBS)

NBS is the primary contribution of this research. It uses a greedy approach to the Vertex Cover problem by selecting pairs of states $(u, v)$ with the lowest potential lower bound and expanding both. Because it expands both nodes in a "must-expand" edge, it achieves a 2-approximation of the optimal number of expansions.

The NBS (Near-Optimal Bidirectional Search) algorithm.

Experimental Evaluation

The authors evaluated NBS and its predecessors across four distinct domains:

  • 20-Pancake Puzzle: 100 hard instances using the GAP heuristic.
  • Towers of Hanoi (4-peg, 14-disk): 50 problems using pattern database (PDB) heuristics.
  • Road Networks (Colorado): 200 random instances where edge costs represent travel time.
  • Grid Mazes: 12,000 instances from the MovingAI benchmark (512x512 maps).

Key Insights and Results

  • The Vertex Cover Connection: State expansion in bidirectional search is about covering all potential "shortcuts" between frontiers.
  • The 2x Guarantee: NBS’s guarantee of expanding at most $2 \times$ the minimum necessary nodes is the best possible theoretical bound for this class of algorithms.
  • Performance Wins: In Grid Mazes with weak heuristics, NBS expanded roughly half the nodes compared to A. In asymmetric domains like Towers of Hanoi, NBS automatically balanced the search, performing nearly as well as A starting in the optimal direction.
  • The "Pancake" Exception: On the Pancake puzzle, A* still wins due to very strong heuristics and symmetric state space, where the overhead of managing two frontiers in NBS results in nearly twice the expansions.

Conclusion

The introduction of NBS and the Vertex Cover framework marks a renaissance for bidirectional search. By providing a theoretical guarantee and a robust algorithm, this work moves pathfinding beyond the limitations of unidirectional search in many complex domains. Future work remains in extending these proofs to bounded-suboptimal search and more computationally expensive front-to-front heuristics.

Summary updated

BibTeX
@inproceedings{sturtevant2018brief,
  author = {Nathan R. Sturtevant and Ariel Felner},
  title = {{A Brief History and Recent Achievements in Bidirectional Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12218},
}
Figure