The Minimal Set of States that Must Be Expanded in a Front-to-End Bidirectional Search

Eshed Shaham, Ariel Felner, Jingwei Chen, Nathan R. Sturtevant

Abstract: This paper establishes a theoretical "gold standard" for bidirectional heuristic search by identifying the absolute minimum number of node expansions required to find an optimal path. By modeling the problem as a Minimum Vertex Cover of a "Must-Expand Graph," the authors introduce Fractional MM (fMM), a parameterized algorithm capable of reaching this theoretical limit. This work provides a rigorous framework for evaluating the efficiency of modern bidirectional search algorithms like NBS.

Introduction

In unidirectional search, the A* algorithm is considered optimally effective: given a consistent heuristic, no other algorithm can find the shortest path while expanding fewer nodes (excluding ties). In contrast, bidirectional search—which searches from both the start and goal simultaneously—presents a more complex challenge. Because the two search frontiers can meet anywhere along the optimal path, there is no single "best" static strategy. Previous research identified that for certain pairs of states $(u, v)$, an algorithm must expand either $u$ in the forward direction or $v$ in the backward direction to prove path optimality. This paper formalizes this requirement to determine the absolute minimum work necessary.

The Must-Expand Graph ($G_{MX}$)

The researchers build upon the concept of the Must-Expand Graph ($G_{MX}$). This bipartite graph represents the necessary conditions for optimality: an edge exists between a forward state $u$ and a backward state $v$ if they form a "must-expand pair." To solve the search problem with minimal expansions, an algorithm must find the Minimum Vertex Cover (VC) of this graph—the smallest set of vertices that touches every edge.

Mapping a search graph to its corresponding Must-Expand Graph (G_MX).

While finding a Minimum Vertex Cover is generally NP-complete, the authors introduce the Abstract Graph ($\hat{G}$). By grouping states in $G_{MX}$ by their $g$-values (distance from start or goal), the problem is reduced to finding a Minimum Weighted Vertex Cover on a much smaller graph, which can be solved in linear time relative to the number of unique $g$-costs.

Fractional MM (fMM) and the Optimal Meeting Point

A major contribution of the paper is Fractional MM (fMM), a generalization of the Meet-in-the-Middle (MM) algorithm. While standard MM forces frontiers to meet at exactly half the solution cost ($C^*/2$), fMM introduces a parameter $p \in [0, 1]$. This allows the forward search to proceed to $pC^*$ and the backward search to $(1-p)C^*$.

Comparison of search regions for A*, MM, and fMM.

The authors prove that for every problem instance, there exists an optimal fraction $p^*$ such that $fMM(p^*)$ expands exactly the minimum number of nodes required (the VC). The optimal meeting point is rarely exactly in the middle; it depends on the "shape" of the search space, including branching factors and heuristic strength in each direction.

Key Results and Insights

The theory was evaluated across standard benchmarks, including grid-based pathfinding, the 4-peg Towers of Hanoi (TOH4), Pancake Puzzles, and the 15-Puzzle.

  • Asymmetry Matters: In many domains, searching backward from the goal is significantly more efficient than searching forward. For example, in Towers of Hanoi, the branching factor at the goal state is often smaller, making a backward-heavy search ($p < 0.5$) more efficient.
  • NBS as a Robust Alternative: The Near-Optimal Bidirectional Search (NBS) algorithm acts as a reliable "insurance policy." While it may not hit the theoretical minimum, it is guaranteed to expand no more than twice the number of nodes in the Minimum Vertex Cover. In practice, NBS typically expanded between 1.2x and 1.9x the minimum.
  • Distribution of $p^*$: In mazes, optimal meeting points followed a bimodal distribution (peaking at 0.2 and 0.8), suggesting that favoring one direction heavily is often better than a balanced search.

Conclusion

The primary challenge remains that $p^*$ and the optimal solution cost $C^*$ are not known a priori, making $fMM(p^*)$ a theoretical tool for post-hoc analysis. However, this work provides the first clear metric for how close an algorithm is to "perfection." Future research may focus on predicting $p^*$ using machine learning or extending this theory to "front-to-front" algorithms that utilize heuristics between moving frontiers.

Summary updated

BibTeX
@inproceedings{shaham2017minimal,
  author = {Eshed Shaham and Ariel Felner and Jingwei Chen and Nathan R. Sturtevant},
  title = {{The Minimal Set of States that Must Be Expanded in a Front-to-End Bidirectional Search}},
  booktitle = {SOCS},
  year = {2017},
  doi = {10.1609/socs.v8i1.18426},
}
Figure