Introduction: Overcoming the Time and Memory Walls
Heuristic search algorithms, such as A, are fundamental to automated planning and problem-solving. However, as problem complexity increases, these algorithms encounter two significant barriers: the Time Wall, where computations take too long for a single processor, and the Memory Wall*, where the storage of visited states (the CLOSED list) exceeds available RAM, leading to system failure.
This paper presents PEM-BiHS (Parallel External-Memory Bidirectional Heuristic Search), the first general framework to simultaneously leverage parallel processing and external memory (disk storage) for bidirectional search. By integrating the BAE algorithm into this framework, the researchers developed PEM-BAE**, a system capable of solving massive combinatorial problems that were previously intractable.
The PEM-BiHS Framework
The core innovation of PEM-BiHS is its "bucket-based" node management system. Rather than maintaining a monolithic list in RAM, the framework organizes search nodes into discrete files, or "buckets," on an SSD. The search process follows a structured expansion loop:
- Direction Selection: The algorithm chooses to search either forward from the start or backward from the goal.
- Parallel Processing: A bucket is loaded into RAM, where nodes are expanded across multiple CPU cores.
- Duplicate Detection and Solution Checking: The system identifies if the two search frontiers have met and removes redundant states.
- Disk I/O: Newly generated child nodes are written back to the disk in new buckets.
PEM-BAE*: Optimizing Bidirectional Search
While the framework is algorithm-agnostic, the authors highlight PEM-BAE as the most effective implementation. BAE utilizes heuristic error estimates to guide node expansion. In an external-memory context, this approach is particularly valuable because it minimizes disk I/O operations, which are often the primary bottleneck in large-scale searches.
Experimental Evaluation and Results
The researchers evaluated their framework on three classic combinatorial puzzles: the 15-puzzle, the 24-puzzle, and the 20-disk Towers of Hanoi (ToH4).
On the 24-puzzle, PEM-BAE demonstrated a 4.5x speedup over parallel IDA (AIDA*) while expanding only 4.4% of the nodes. This highlights the efficiency of bidirectional search in preventing the exponential explosion of the search frontier.
In the Towers of Hanoi domain, which is notorious for its high number of cycles, PEM-BAE* outperformed unidirectional counterparts by a factor of 7 in terms of speed and expanded 12.9 times fewer nodes. It also significantly outperformed PEM-MM, another bidirectional external-memory algorithm, especially as problem difficulty increased.
Conclusion and Future Work
PEM-BiHS successfully bridges the gap between parallelization, external memory, and bidirectional search. By effectively managing the search frontier on disk, it allows for the resolution of problems with state spaces far exceeding traditional RAM limits. Future research will focus on optimizing load balancing between search directions and exploring the framework's performance on more modest consumer-grade hardware.
Summary updated