Single-Agent Parallel Window Search: A Summary of Results

Curt Powley, Richard E. Korf

Abstract: Single-agent heuristic search often faces a trade-off between memory efficiency and search time. While Iterative-Deepening-A (IDA) minimizes memory usage, it suffers from a serial bottleneck and the "last iteration problem." This paper presents a hybrid approach combining Parallel Window Search (PWS) with global node ordering. By assigning processors to different cost thresholds simultaneously and sharing frontier information, the algorithm achieves massive speedups. Experimental results on the 15-puzzle demonstrate that PWS can find near-optimal solutions in minutes that would take hours for serial IDA*.

Introduction

In artificial intelligence, single-agent search involves finding a path from a start state to a goal state (e.g., solving a Rubik's Cube or the 15-puzzle). The gold standard algorithm, A, finds the shortest path but often crashes because it uses an exponential amount of memory. To address this, researchers use Iterative-Deepening-A (IDA), which performs a series of depth-first searches with increasing cost thresholds. However, IDA has two major weaknesses: the final search iteration is usually massive and takes the vast majority of the time, and the serial nature of the algorithm prevents parallel speedups across iterations.

Methodology

The authors propose a two-pronged solution to these bottlenecks: Parallel Window Search (PWS) and Global Node Ordering.

Global Node Ordering

When multiple nodes have the same estimated cost ($f = g + h$), the algorithm prioritizes nodes with the smallest $h$ (the estimated distance to the goal). This creates a "depth effect," where the subtrees being searched are smaller, and a "shift effect," where the goal is likely moved to the "left" of the search tree, allowing it to be found sooner.

Parallel Window Search (PWS)

Instead of running one threshold at a time, the algorithm assigns different processors to different cost thresholds (windows) simultaneously. This allows the system to explore deeper parts of the tree before shallower searches have completed.

The Hybrid Approach

This is the core innovation. As processors working on shallow thresholds finish, they broadcast their findings—specifically, which branches had the lowest $h$ values—to the processors working on deeper thresholds. The deeper processors then "leapfrog" to the most promising branches first, guided by the exhaustive results of the shallower searches.

Figure 1: Illustration of the search tree with ordering and solution thresholds.

Experimental Results

The authors evaluated their approach using 100 problem instances of the 15-puzzle and 1,000 random instances of the 8-puzzle. Key findings include:

  • Massive Speedups: For the most difficult 15-puzzle instance—which took a serial IDA* search 42 hours—the parallel version found a solution in just 4 minutes using 7 workstations.
  • High Solution Quality: While the first solution found by PWS isn't always optimal, it is very close. On average, the first solutions were within 11% of the optimal length.
  • Branching Factor Reduction: The "effective branching factor" was reduced from the standard $b$ to approximately $b^{3/4}$, representing a significant theoretical and practical gain.
  • The Density Effect: In puzzles like the 8-puzzle, non-optimal solutions are much more "dense" in deeper search windows. PWS exploits this; a processor searching a deeper-than-optimal window is very likely to stumble upon a "good" solution long before the "optimal" search finishes.

Discussion and Limitations

While PWS offers significant advantages, its performance is dependent on hardware availability and domain characteristics. The "density effect" depends on the specific problem; while it works well for sliding tile puzzles, it might behave differently in domains with very few paths to a goal. Additionally, the ideal ordering scheme requires storing a large "frontier" of nodes, necessitating a balance between memory usage and search efficiency.

Conclusion

By combining parallel processing with intelligent node ordering, PWS overcomes the primary limitations of IDA*. This hybrid approach provides a scalable method for finding high-quality solutions to complex single-agent problems in a fraction of the time required by traditional serial methods.

Summary updated

BibTeX
@inproceedings{powley1989single,
  author = {Curt Powley and Richard E. Korf},
  title = {{Single-Agent Parallel Window Search: A Summary of Results}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1989},
}
Figure