On Parallel External-Memory Bidirectional Search
Lior Siag, Shahaf S. Shperberg, Ariel Felner, Nathan R. Sturtevant
TL;DR
This work addresses scaling bidirectional heuristic search to very large problems by integrating BiHS with parallel external-memory (PEM) frameworks. It introduces a flexible PEM-BiHS framework and provides PEM-BAE*, a PEM variant of the state-of-the-art BiHS algorithm BAE*, which leverages consistent heuristics and a carefully designed bucket structure to outperform unidirectional PEM variants (A*, rA*, MM) and parallel IDA* on large 15-puzzle, 24-puzzle, and Towers of Hanoi problems. The key contributions include a generalized PEM-BiHS framework, a petabyte-scale evaluation of BiHS versus UniHS under strong heuristics, and insights into I/O trade-offs, delayed duplicate detection, and thread scalability. The results demonstrate that BiHS, when coupled with external memory and parallelization, can surpass unidirectional approaches on large, hard problems, informing future directions in PEM search design and optimization.
Abstract
Parallelization and External Memory (PEM) techniques have significantly enhanced the capabilities of search algorithms when solving large-scale problems. Previous research on PEM has primarily centered on unidirectional algorithms, with only one publication on bidirectional PEM that focuses on the meet-in-the-middle (MM) algorithm. Building upon this foundation, this paper presents a framework that integrates both uni- and bi-directional best-first search algorithms into this framework. We then develop a PEM variant of the state-of-the-art bidirectional heuristic search (BiHS) algorithm BAE* (PEM-BAE*). As previous work on BiHS did not focus on scaling problem sizes, this work enables us to evaluate bidirectional algorithms on hard problems. Empirical evaluation shows that PEM-BAE* outperforms the PEM variants of A* and the MM algorithm, as well as a parallel variant of IDA*. These findings mark a significant milestone, revealing that bidirectional search algorithms clearly outperform unidirectional search algorithms across several domains, even when equipped with state-of-the-art heuristics.
