Minimizing Node Expansions in Bidirectional Search with Consistent Heuristics

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

Introduction

Bidirectional search, which simultaneously explores paths from both the start and the goal, is a cornerstone of efficient pathfinding. A central challenge in this field is determining the optimal meeting point for the two search frontiers to minimize the total number of node expansions. Recent theoretical work established the "must-expand" graph ($G_{MX}$), proving that any algorithm guaranteeing an optimal solution must expand a set of nodes corresponding to the Minimum Vertex Cover (MVC) of this graph.

While previous algorithms like Fractional MM ($fMM$) achieved optimality for admissible heuristics, they failed to account for additional domain knowledge, such as the minimum edge cost ($\epsilon$) or heuristic consistency. This paper generalizes the theory of optimal bidirectional search to exploit these properties, introducing the Meet at the Threshold (MT) algorithm.

The Meet at the Threshold (MT) Algorithm

The authors propose MT as a simpler, more extensible alternative to $fMM$. Instead of using a fraction of the total cost to determine the meeting point, MT employs a fixed threshold $t$. The algorithm ensures that the forward and backward frontiers meet at distances $t$ and $C^* - t$ respectively, where $C^*$ is the optimal solution cost. MT is proven to be optimally effective, expanding the minimum number of nodes required by the MVC given the correct threshold.

This approach adopts an "Oracle Perspective." While the optimal threshold $t$ is typically unknown before the search concludes, proving its existence establishes a theoretical lower bound. This "gold standard" allows researchers to measure the efficiency of practical, non-parameterized algorithms like Near-Optimal Bidirectional Search (NBS) against the absolute minimum work required.

Exploiting Domain Information

A fundamental insight of the paper is that "information is power" in search. Simply knowing that a heuristic is consistent—and having a framework to exploit that fact—fundamentally alters the structure of the search problem.

Minimum Edge Cost ($\epsilon$)

If the minimum cost of any edge in the graph is known to be $\epsilon > 0$, the condition for a pair of nodes $(u, v)$ to be "must-expand" becomes more restrictive: $g_F(u) + g_B(v) + \epsilon < C^*$. This stricter condition removes edges from $G_{MX}$, leading to significant performance gains. As shown in Figure 4, this knowledge prunes the connections between forward and backward layers, reducing the size of the vertex cover.

Heuristic Consistency

When heuristics are consistent (satisfying the triangle inequality), the algorithm can derive a "front-to-front" heuristic ($h_C$) based on the difference between forward and backward heuristic values. In this setting, the state space is partitioned into equivalence classes. The optimal meeting point is no longer a single global threshold but a function $b(h_F, h_B)$ that determines specific thresholds for different classes of states. This multi-threshold strategy allows for even more granular pruning.

Figure 4: Visualizing the reduction in the 'must-expand' graph for the 20-pancake problem as more information (like $\epsilon$) is utilized.

Quantitative Results and Complexity

The theoretical benefits are illustrated using the 20-pancake problem. By incorporating the knowledge that the minimum edge cost is $\epsilon = 1$, the number of required node expansions drops from 776,458 to 570,071—a reduction of approximately 26%. This empirical evidence validates the theoretical framework's ability to capture and exploit domain-specific constraints.

Figure 6: Summary of optimal algorithms, MVC definitions, and computational complexity across different heuristic information levels.

The paper also categorizes the complexity of finding the MVC under various assumptions. As the algorithm exploits more information (moving from simple admissibility to full consistency), the theoretical complexity of determining the optimal meeting strategy increases, but the potential for pruning the search space grows accordingly.

Conclusion and Future Work

This research provides a "gold standard" for bidirectional search by proving the existence of optimal thresholds and functions. While finding these parameters a priori remains a challenge, the MT framework offers a rigorous benchmark for practical algorithms. Future work aims to develop online methods for approximating the optimal threshold function $b$ and extending the theory to incorporate full front-to-front heuristics.

Summary updated

BibTeX
@inproceedings{shaham2018minimizing,
  author = {Eshed Shaham and Ariel Felner and Nathan R. Sturtevant and Jeffrey S. Rosenschein},
  title = {{Minimizing Node Expansions in Bidirectional Search with Consistent Heuristics}},
  booktitle = {SOCS},
  year = {2018},
  doi = {10.1609/socs.v9i1.18451},
}
Figure