Extended Abstract: An Improved Priority Function for Bidirectional Heuristic Search

Guni Sharon, Robert C. Holte, Ariel Felner, Nathan R. Sturtevant

Introduction

In pathfinding, bidirectional search explores from both the start and the goal simultaneously. The ideal behavior for such algorithms is to "meet in the middle," ensuring that neither search front explores beyond half the total optimal path cost ($C^*/2$). While the Meet-in-the-Middle (MM) algorithm was the first to guarantee this property under all circumstances, its efficiency depends heavily on its priority function. This paper introduces $MM_\epsilon$, a refinement that tightens the priority function to significantly reduce unnecessary node expansions while maintaining theoretical guarantees.

Methods: Tightening the Priority Function

The original MM algorithm uses a priority function for a node $n$ in the forward search defined as $pr_F(n) = \max(f_F(n), 2g_F(n))$, where $g$ is the cost from the start and $f$ is the estimated total path cost ($g + h$).

The proposed $MM_\epsilon$ algorithm updates this to: $$pr^\epsilon_F(n) = \max(f_F(n), 2g_F(n) + \epsilon_F(n))$$ Here, $\epsilon_F(n)$ represents the cost of the cheapest operator (edge) applicable to node $n$.

The Power of the Gap: The core insight is that in bidirectional search, if a path hasn't been found, there must be at least one un-traversed edge (a "gap") between the fronts. By adding the minimum edge cost $\epsilon$, the algorithm acknowledges that any path through $n$ must incur at least that much additional cost before it can possibly meet the other side. This allows the search to "prune" or delay the expansion of certain nodes more effectively than the original MM.

Illustration of bidirectional search fronts (left) and priority logic examples (middle/right).

Experimental Evaluation

The researchers evaluated $MM_\epsilon$ using the 10-Pancake problem, a classic combinatorial puzzle. To test robustness across different conditions, they used the GAP heuristic along with several weakened versions (GAP-1, GAP-2, GAP-3) and a "blind" search ($h \equiv 0$) with no heuristic information.

Key Results

Experimental data demonstrates that $MM_\epsilon$ consistently expands fewer nodes than the original MM algorithm, particularly when heuristic information is weak.

Table 1: Node expansions for A*, MM, and MMε across different heuristic strengths on the 10-Pancake problem.

Significant findings include:

  • Weak Heuristics (GAP-3): $MM_\epsilon$ expanded only 8,681 nodes compared to MM's 37,403—a massive reduction in computational effort.
  • Robustness: $MM_\epsilon$ appears more robust than MM. It avoids the "anomaly" where MM with a weak heuristic can sometimes perform worse than MM with no heuristic at all.
  • Comparison to A*: While A remains faster when a highly accurate heuristic (GAP) is available, $MM_\epsilon$ is orders of magnitude more efficient when heuristics are poor. For example, in blind search ($h \equiv 0$), A expands ~2.8 million nodes while $MM_\epsilon$ expands only 9,449.

Discussion and Limitations

While $MM_\epsilon$ shows clear practical benefits, the authors identify theoretical "pathological cases" (illustrated in Figure 1, right) where $MM_\epsilon$ could potentially expand more nodes than MM due to specific interactions between priorities and stopping conditions. However, these cases were not encountered in the 10-Pancake experiments.

Future work involves testing $MM_\epsilon$ on larger state spaces and different domains, such as road networks or automated planning, to see how these gains scale. Additionally, exploring how to dynamically adjust search strategy based on heuristic strength remains an open area of research.

Summary updated

BibTeX
@inproceedings{sharon2016extended,
  author = {Guni Sharon and Robert C. Holte and Ariel Felner and Nathan R. Sturtevant},
  title = {{Extended Abstract: An Improved Priority Function for Bidirectional Heuristic Search}},
  booktitle = {SOCS},
  year = {2016},
  doi = {10.1609/socs.v7i1.18399},
}
Figure