TL;DR
This paper introduces "Parallel Window Search" (PWS), a novel algorithm that combines node ordering with parallel processing to significantly speed up finding near-optimal solutions in complex search problems like the Fifteen Puzzle. PWS efficiently finds good solutions quickly, improves them over time, and eventually guarantees optimality, making it a competitive alternative to existing methods.
What Problem Does This Paper Address?
Many real-world problems, such as route planning or puzzle solving, can be framed as single-agent search problems. Finding the absolute best solution (optimal solution) can be computationally prohibitive, requiring exponential time and memory. Algorithms like A are optimal but memory-intensive, while Iterative-Deepening A (IDA) reduces memory but can still be slow. The challenge is to find good solutions quickly, especially when resources are limited, while still having the ability to guarantee optimality if needed. Existing methods like serial IDA with node ordering improve the final iteration but are bottlenecked by earlier ones, and pure parallel window search is limited by the final, most difficult iteration.
Methods
The paper proposes "Parallel Window Search" (PWS), which ingeniously combines two ideas:
- Node Ordering: Instead of exploring nodes randomly, PWS prioritizes nodes that are likely to lead to a solution faster. Specifically, among nodes with the same estimated total cost (f = g + h), it prefers nodes with a lower heuristic cost (h) or higher actual cost (g). This "shift and depth effect" aims to find the goal node sooner and explore fewer dead-end paths.
- Parallel Window Search: Multiple processes simultaneously search different "windows" of cost thresholds. This means each process explores a portion of the search space up to a specific cost limit, rather than sequentially completing each iteration as in IDA*.
PWS implements this by:
- Initializing all processes with a small, fixed set of root nodes.
- Assigning each process a unique cost threshold to search.
- After searching its assigned threshold, each process shares information about the minimum heuristic values (h) of leaf nodes encountered.
- This shared information is used to dynamically reorder the search for subsequent thresholds, allowing processes to "leapfrog" and focus on more promising areas.
- The algorithm continues to find solutions, improving them until an optimal solution is found and verified.
Datasets
The paper evaluates its algorithms on the Fifteen Puzzle and Eight Puzzle problems. They use 100 problems selected from [Korf, 1988] for evaluation, specifically focusing on the 47 instances for the Fifteen Puzzle and 50 instances for the Eight Puzzle.
Key Insights and Ideas
- Complementary Limitations: The limitations of node ordering (bottlenecked by earlier iterations) and pure parallel window search (bottlenecked by the final iteration) are perfectly complementary, making their combination highly effective.
- Dynamic Reordering: Sharing ordering information dynamically among parallel processes is crucial. This allows the search to adapt and focus on promising branches across different thresholds.
- Near-Optimal Solutions Quickly: PWS excels at finding good, near-optimal solutions very rapidly, which is often more valuable in real-time decision-making scenarios than waiting for a guaranteed optimal solution.
- Solution Density Matters: The density of solutions (how many solutions exist at a given cost threshold) significantly impacts the speedup achievable by parallel window search. Higher non-optimal solution density can lead to faster discovery of a solution, even if not the optimal one.
Key Results
- Serial IDA* with Node Ordering: For the Eight Puzzle, ordering reduced the number of nodes generated in the final iteration by an average of 0.2% compared to unordered IDA*. For 50 moderate difficulty problems, the average ratio of unordered to ordered nodes was 1.83, though this didn't translate to real-time improvement due to ordering overhead.
- Parallel Window Search (PWS):
- With 7 processors on the most difficult Fifteen Puzzle problem, PWS found a solution only 4 moves from optimal in 4 minutes and 6.5 million node generations, compared to IDA*'s 42 hours and 6.01 billion nodes.
- The average speedup relative to IDA* was significant, with effective heuristic branching factors reduced to around b^(3/4).
- The quality of the first solutions found by PWS was good, averaging within 11% of optimal for the Fifteen Puzzle.
- Compared to RTA (a real-time search algorithm), PWS found solutions that were, on average, half the length of RTA's solutions.
Limitations and Future Work
- Memory for Perfect Ordering: The ideal node ordering scheme, which uses the entire frontier from the previous iteration, is impractical due to exponential memory requirements.
- Overhead: While node ordering improves search efficiency, it incurs overhead that can negate real-time gains in serial implementations.
- Verification Time: Guaranteeing optimality after finding an optimal solution can still take a significant amount of time, as all shallower thresholds must be verified.
- Future Work: The paper suggests that PWS is a competitive algorithm and its behavior is well-suited for problems where quick, good solutions are prioritized. The effectiveness of PWS can be further enhanced in problem domains with higher non-optimal solution density. The authors also note that the number of processes can be limited for efficiency depending on the problem domain.
Summary updated