Solving motion planning problems

André G. Pereira, Marcus Ritt, Luciana S. BuriolEl 2014

Abstract

This research addresses a complex family of motion planning problems involving movable blocks within a maze. Specifically, we examine Sokoban, a puzzle defined by a grid of walls, free squares, $k$ movable stones, and $k$ fixed goal squares. An agent (the "man") must navigate the maze to move stones to goal squares using the minimum number of stone moves. This paper introduces a novel method for applying Pattern Databases (PDBs) to problems with implicit goal states, utilizing subproblem decomposition and a domain-specific "fill order" tie-breaking rule. Our approach solves four times more instances than previous state-of-the-art admissible solvers while reducing computational effort by two orders of magnitude.

Introduction

Sokoban is a classic benchmark in artificial intelligence, representing a class of motion planning problems that are notoriously difficult to solve optimally. Despite its simple rules, the game is PSPACE-complete, characterized by a massive branching factor and exceptionally long solution paths.

Three primary factors contribute to its difficulty:

  1. Computational Complexity: The state space grows exponentially with the number of stones and the size of the maze.
  2. Irreversibility (Deadlocks): A single suboptimal move can wedge a stone into a corner or against a wall, rendering the puzzle unsolvable.
  3. Implicit Goals: Unlike puzzles like the Rubik’s Cube, where each piece has a unique destination, Sokoban stones are interchangeable. Any stone can occupy any goal square. This "interchangeability" complicates the use of standard search heuristics like Pattern Databases (PDBs), which typically require explicit, fixed goal states to calculate distance estimates.

Methodology

To overcome these challenges, the authors developed two primary technical innovations designed to enhance search efficiency while maintaining optimality.

Subproblem Decomposition for PDBs

The effectiveness of PDBs relies on precomputed look-up tables that provide lower bounds on the distance to a goal. However, the implicit nature of Sokoban goals makes direct application difficult. The authors propose decomposing the problem into subproblems and introducing an "explicitly defined intermediate goal state" for the more difficult subproblem. By anchoring the PDB to these intermediate states, the search algorithm can derive high-quality lower bounds even when the final destination of specific stones is not pre-assigned.

Domain-Dependent Tie-Breaking

In large-scale state-space searches, many nodes often share the same estimated cost ($f$-value). Standard search algorithms often struggle to choose between these nodes efficiently. The authors introduced a tie-breaking rule based on the fill order of goal squares. By analyzing the maze's geometry, the algorithm identifies which goal squares are "upstream" or more restricted (e.g., deep corners). Prioritizing search nodes that fill these difficult squares first respects the logical progression of the puzzle and prevents the algorithm from wasting time on configurations that lead to eventual deadlocks.

Complexity Analysis

The research also extends the theoretical understanding of motion planning. Using the "nondeterministic constraint logic model," the authors proved that several variants—such as those allowing "pull" moves (Pukoban) or moving multiple stones simultaneously—remain PSPACE-complete. Specifically, they established that the problem remains PSPACE-complete even when the agent can move three or more stones at once.

Evaluation and Results

The proposed methods were evaluated using the standard benchmark set of 90 Sokoban instances. The results were compared against the Rolling Stone solver, the previous state-of-the-art for admissible (optimal) Sokoban solvers.

The experimental results demonstrate a significant advancement:

  • Increased Coverage: The new method solved over four times as many instances as the Rolling Stone solver within the same resource constraints.
  • Computational Efficiency: The total computational effort required to find optimal solutions was reduced by two orders of magnitude.
  • Guaranteed Optimality: Unlike many modern solvers that sacrifice optimality for speed using greedy heuristics, this method consistently finds the shortest possible solution path.

Conclusion and Future Work

This work demonstrates that domain-specific insights—such as geometric fill order and subproblem decomposition—can dramatically improve the performance of heuristic searches in PSPACE-complete domains. While the current focus is on Sokoban, the authors identify several avenues for future research. This includes applying these techniques to Pukoban, where the ability to pull stones changes the deadlock dynamics, and investigating whether the "decomposition for implicit goals" can be generalized to other planning problems where object configurations are flexible.

Summary updated

BibTeX
@inproceedings{pereira2014solving,
  author = {André G. Pereira and Marcus Ritt and Luciana S. Buriol},
  title = {{Solving motion planning problems}},
  booktitle = {El},
  year = {2014},
}

Loading related content...

Figure