Abstract
This paper introduces IDBiHS, a novel family of bidirectional search algorithms designed for environments with limited memory. By adapting "meet-in-the-middle" strategies from unrestricted memory algorithms to an iterative-deepening framework, the authors address the long-standing "connection problem" in memory-restricted bidirectional search. Experimental results demonstrate that IDBiHS achieves up to a 5.3x speedup over the classic IDA* and significantly outperforms existing memory-restricted bidirectional methods in exponential search spaces.
Introduction
In heuristic search, a fundamental trade-off exists between time and memory. Unrestricted Memory (UM) algorithms like A are efficient but fail when RAM is exhausted. Conversely, Restricted Memory (RM) algorithms like IDA use minimal memory but suffer from slow runtimes due to frequent node re-exploration.
While bidirectional search—searching from start and goal simultaneously—has advanced significantly for UM scenarios, it has lagged for RM scenarios. The primary challenge is the connection problem: without storing frontiers, identifying where forward and backward searches meet is difficult. Previous solutions like Perimeter Search were often inflexible. IDBiHS overcomes these hurdles by providing a controllable, iterative-deepening framework for bidirectional search.
Methodology
The authors propose three primary variants of IDBiHS:
- IDBiHS (Linear Memory): A bidirectional extension of IDA* that uses a "split function" to determine a meeting point. It alternates between forward and backward Depth-First Searches (DFS) to find a path.
- A* + IDBiHS (Fixed Memory): A hybrid approach that fills available memory using A* and then utilizes the resulting "OPEN" list as the starting frontier for an IDBiHS search.
- IDBiHS-Trans (Fixed Memory): This variant employs a transposition table to store a batch of forward frontier nodes, allowing the backward DFS to check against multiple potential meeting points simultaneously, reducing redundant searches.
Additionally, the framework incorporates two key heuristic enhancements: Front-to-Front (F2F) Heuristics, which estimate distances between arbitrary nodes rather than just the goal, and Consistency Exploitation, which uses the properties of consistent heuristics to prune the search space more aggressively.
Experimental Evaluation
The algorithms were evaluated on classic benchmarks: the Pancake Puzzle (P[12]), the 15-Puzzle (Sliding Tile Puzzle/STP), and 8-Grid Pathfinding.
As shown in the table above, IDBiHS-BW (a variant that dynamically balances workload) consistently outperforms IDA in exponential domains. In the Pancake Puzzle, it achieved significant reductions in both node expansions and runtime. In the Sliding Tile Puzzle (STP), IDBiHS-BW reduced runtime from 47.85 seconds (IDA) to 29.29 seconds. However, in polynomial domains like Grid maps, the overhead of bidirectional matching logic resulted in IDA* maintaining a slight edge.
Key Insights and Conclusion
The success of IDBiHS stems from its controllable meeting points, allowing for dynamic workload balancing between search directions. The integration of F2F heuristics proved to be a game-changer, sometimes reducing node expansions by orders of magnitude even with relatively "weak" heuristics. Furthermore, IDBiHS-Trans demonstrates that even small memory buffers (transposition tables) can provide massive efficiency gains over pure linear memory approaches.
While IDBiHS excels in exponential domains, future work aims to optimize its performance in polynomial domains, perhaps through the use of Bloom filters for more compact frontier storage or by adapting modern bidirectional techniques like Near-Optimal Bidirectional Search (NBS) to the restricted memory setting.
Summary updated