Front-to-End Bidirectional Heuristic Search with Near-Optimal Node Expansions

Jingwei Chen, Robert C. Holte, Sandra Zilles, Nathan R. Sturtevant

Introduction

In the field of heuristic search, A* has long been the gold standard for unidirectional search because it is "optimally efficient"—it expands the minimum number of nodes necessary to prove a solution is optimal, given a consistent heuristic. However, bidirectional search (searching simultaneously from the start and the goal) has historically lacked a similarly robust performance guarantee.

This paper introduces NBS (Near-Optimal Bidirectional Search), the first bidirectional search algorithm with a provable performance guarantee regarding the number of nodes it expands. The authors demonstrate that NBS is guaranteed to expand no more than twice the minimum number of nodes required by any admissible front-to-end algorithm.

The Vertex Cover Formulation

The core challenge in bidirectional search is that there is no single set of "must-expand" nodes. Instead, there are "must-expand pairs": for certain pairs of nodes $(u, v)$, an algorithm must expand either $u$ in the forward direction or $v$ in the backward direction to guarantee it has found the shortest path.

The authors bridge the gap between search theory and graph theory by defining the Must-Expand Graph ($G_{MX}$). This is a bipartite graph where the left side represents forward search states and the right side represents backward search states. An edge exists between $u_F$ and $v_B$ if the pair $(u, v)$ must be expanded according to existing theoretical conditions.

The Must-Expand Graph (G_MX) visualizes the relationship between forward and backward search frontiers as a vertex cover problem.

They prove that any valid bidirectional search must expand a set of nodes that forms a Vertex Cover of $G_{MX}$. Finding the minimum number of expansions is thus equivalent to finding the Minimum Vertex Cover (VC). This insight leads to the "Power of Two" proof: no admissible bidirectional algorithm can have a worst-case expansion ratio better than 2, because an algorithm cannot know which side of a "must-expand pair" is part of a smaller vertex cover without exploring it.

The NBS Algorithm

Since building $G_{MX}$ explicitly is too expensive, NBS uses a greedy approach to select pairs $(U, V)$ that minimize a lower bound on the solution cost: $$lb(U, V) = \max\{f_F(U), f_B(V), c(U) + c(V)\}$$

Pseudocode for the NBS algorithm, detailing the selection and expansion of node pairs.

NBS maintains two sets of priority queues (waiting and ready) for each direction and expands both nodes in the selected pair. This "buy one, get one" approach is the key to its $2 \times VC$ guarantee, ensuring that even if the algorithm chooses the "wrong" side of a vertex cover edge, it still covers the edge.

Key Results and Empirical Evaluation

The algorithm was evaluated on four standard heuristic search benchmarks: Grid-based Pathfinding, 4-Peg Tower of Hanoi (TOH), 16-Pancake Puzzle, and the 15-Puzzle.

  • Performance vs. A*: In the "Mazes" domain (where heuristics are weak), NBS expanded roughly 34,474 nodes on average, compared to A*'s 64,002 nodes—nearly a 50% reduction.
  • Comparison with MM: NBS consistently outperformed or matched MM (a previous state-of-the-art bidirectional algorithm), particularly in the Pancake puzzle and Tower of Hanoi.
  • Heuristic Strength: Bidirectional search provides the most significant gains when the heuristic is weak or the problem is hard. When heuristics are nearly perfect, A* remains difficult to beat.

Conclusion

NBS represents a theoretical breakthrough by providing a near-optimal bound for bidirectional search. While it introduces some constant-time overhead per node expansion due to pair management, its robustness across all tested domains makes it a reliable choice when the difficulty of a problem instance is unknown. Future work may focus on more sophisticated tie-breaking rules to further reduce expansions near the optimal cost boundary.

Summary updated

BibTeX
@inproceedings{chen2017front,
  author = {Jingwei Chen and Robert C. Holte and Sandra Zilles and Nathan R. Sturtevant},
  title = {{Front-to-End Bidirectional Heuristic Search with Near-Optimal Node Expansions}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/69},
}
Figure