Optimally Efficient Bidirectional Search

Eshed Shaham, Ariel Felner, Nathan R. Sturtevant, Jeffrey S. Rosenschein

Abstract

This paper provides a theoretical foundation for "optimal efficiency" in bidirectional heuristic search—a goal that has long been well-defined for unidirectional search (via A*) but remained elusive for bidirectional approaches. By modeling node expansions as a Minimum Vertex Cover (MVC) problem on a "must-expand graph" ($G_{MX}$), the authors introduce the Fractional MM (fMM) and Meet at the Threshold (MT) algorithms. These algorithms are proven to expand the minimum number of nodes required to guarantee an optimal solution under various heuristic assumptions.

Introduction

In pathfinding, the A* algorithm is famously "optimally efficient" among unidirectional admissible algorithms: it expands the minimum number of nodes necessary to prove a path is the shortest. However, bidirectional search—searching from both the start and the goal simultaneously—is more complex.

In bidirectional search, "necessity" isn't about individual nodes, but about pairs of nodes. To prove a solution is optimal, the algorithm must ensure that no shorter path exists through any pair of nodes $(u, v)$ where $u$ is on the forward frontier and $v$ is on the backward frontier. Crucially, to "clear" this potential path, the algorithm only needs to expand either $u$ or $v$, not necessarily both. This "either/or" choice makes defining a single optimal expansion set difficult. The authors aim to unify these choices into a formal framework of optimality.

Conceptual visualization of bidirectional search frontiers meeting at nodes $u$ and $v$.

The Must-Expand Graph Framework

The authors utilize the concept of the Must-Expand Graph ($G_{MX}$). In this bipartite graph, an edge exists between a forward node $u$ and a backward node $v$ if they could potentially form a path shorter than the current best solution. To solve the search problem with minimum effort, one must find the Minimum Vertex Cover (MVC) of this graph—the smallest set of nodes that "touches" every edge.

The Must-Expand Graph ($G_{MX}$) representing potential paths between forward and backward frontiers.

The paper analyzes three cases based on the algorithm's knowledge:

  1. Standard Admissible Heuristics: The base case where only standard lower bounds are known.
  2. Known Edge Costs ($\epsilon$): Where the algorithm knows the minimum possible edge weight in the graph.
  3. Consistent Heuristics: Where the algorithm exploits the fact that heuristics don't change radically between adjacent nodes, allowing for "front-to-front" reasoning.

They introduce Meet at the Threshold (MT), an algorithm that uses a distance threshold $t$ to decide when to stop expanding in one direction and switch to the other. While the optimal threshold $t^*$ isn't known upfront, this provides a theoretical target for algorithm design.

Key Insights

  • Vertex Cover Logic: The fundamental difference in bidirectional search is that necessity is a vertex cover problem. You have a choice of which side of the search "frontier" to expand to resolve uncertainty.
  • Heuristic Equivalence: With consistent heuristics, nodes can be grouped into "equivalence classes" based on their heuristic values. This simplifies the $G_{MX}$ and allows the algorithm to treat groups of nodes identically.
  • The Lipschitz Constraint: To ensure optimality when using consistent heuristics, the selection function must satisfy a "1-Lipschitz" property—essentially, it cannot change faster than the distance between nodes.

Results and Complexity

The authors show that their new algorithm, MT, is equivalent to Fractional MM (fMM) but is significantly easier to analyze and adapt to different knowledge settings. They provide a clear hierarchy of complexity for finding the MVC (and thus the optimal expansion set):

  • Base Case: $O(|G|)$ (linear in the number of distinct g-values).
  • Consistent Case: $O(|G|^2 \times |H|^4)$, reflecting the increased complexity of front-to-front heuristic interactions.

They prove that MT-style algorithms are "restrained," meaning they will never expand a node that could not possibly be part of an optimal solution, ensuring they always return the correct shortest path.

Limitations and Future Work

While the paper proves that an optimally efficient threshold $t^*$ exists, it does not provide a way to calculate this threshold before the search begins. In practice, $t^*$ depends on the total cost $C^*$, which is what the search is trying to find. Future work includes extending this theory to full "front-to-front" heuristics and creating a unified theory that combines knowledge of edge costs and heuristic consistency.

Summary updated

BibTeX
@inproceedings{shaham2019optimally,
  author = {Eshed Shaham and Ariel Felner and Nathan R. Sturtevant and Jeffrey S. Rosenschein},
  title = {{Optimally Efficient Bidirectional Search}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/867},
}
Figure