Bounded Suboptimal Path Planning with Compressed Path Databases

Shizhe Zhao, Mattia Chiari, Adi Botea, Alfonso Emilio Gerevini, Daniel Harabor, Alessandro Saetti, Peter J. Stuckey

Abstract

Compressed Path Databases (CPDs) provide near-instantaneous pathfinding by precomputing all-pairs optimal moves. However, their extensive preprocessing time and storage requirements limit their scalability. This paper presents a centroid-based approach to CPDs that stores move data for only a subset of nodes. This method reduces preprocessing time by up to three orders of magnitude and database size by up to 32x, while maintaining a strict $2\delta$ bound on path suboptimality.

Introduction

In real-time applications such as robotics and video games, efficient pathfinding is critical. While A* and its variants are standard, Compressed Path Databases (CPDs) offer superior query performance by eliminating state-space search during path extraction. A CPD stores the optimal first move from any source $s$ to any target $t$. Despite their speed, the $O(V^2)$ cost of precomputing all-pairs shortest paths makes CPDs impractical for large-scale maps. This research addresses this bottleneck by introducing bounded suboptimal CPDs.

Methodology

Centroid-Based Partitioning

The core innovation is the use of centroids. Instead of computing moves to every possible target, the map is partitioned into regions, each represented by a centroid node $c \in C$. Every node in the graph is guaranteed to be within a distance $\delta$ of at least one centroid.

Map partitioning into regions defined by centroids.

Path Construction and Suboptimality

To find a path from $s$ to $t$, the system retrieves the precomputed path from $s$ to the nearest centroid of the target, $c(t)$. The final path is formed by concatenating the path $s \to c(t)$ with the reverse path from $t$ to $c(t)$.

Path construction using a centroid $c(t)$ between source $s$ and target $t$.

This construction ensures a theoretical suboptimality bound: the resulting path cost is at most $2\delta$ longer than the optimal path. To refine paths near the target, a heuristic check is employed when the agent enters the target's centroid region, preventing unnecessary detours.

Reverse CPDs and Compression

Traditional CPDs compress rows (moves from one source to all targets). This paper proposes Reverse CPDs, which compress columns (moves from all sources to one target). By only storing columns for the centroids ($|C| \ll |V|$), storage requirements are drastically reduced. Furthermore, the authors utilize "illegal" move encoding to improve Run-Length Encoding (RLE) efficiency, allowing non-traversable cells to store values that aid compression without affecting path validity.

Experimental Evaluation

The approach was tested on 105 game maps and 6 artificial maps from the GPPC 2012 benchmarks, totaling over 140,000 instances.

Key Results

  • Preprocessing: Build times were reduced from hours to minutes, achieving speedups of up to 1000x.
  • Storage: Centroid CPDs achieved up to 32.4x better compression than state-of-the-art optimal CPDs.
  • Query Performance: Path extraction was up to 2x faster than optimal CPDs. This is attributed to improved cache locality; in a Reverse CPD, the entire path to a target often resides in a single compressed column.
  • Path Quality: While the theoretical bound is $2\delta$, empirical results showed that actual path costs were frequently very close to optimal.

Conclusion

Centroid-based CPDs successfully bridge the gap between the extreme speed of CPDs and the practical constraints of preprocessing and storage. By trading a bounded amount of optimality, this method enables the deployment of CPD-based pathfinding on significantly larger and more complex maps than previously possible. Future work includes exploring these databases as heuristics for other search algorithms.

Summary updated

BibTeX
@inproceedings{zhao2020bounded,
  author = {Shizhe Zhao and Mattia Chiari and Adi Botea and Alfonso Emilio Gerevini and Daniel Harabor and Alessandro Saetti and Peter J. Stuckey},
  title = {{Bounded Suboptimal Path Planning with Compressed Path Databases}},
  booktitle = {ICAPS},
  year = {2020},
}
Cutting the Size of Compressed Path Databases with Wildcards and Redundant SymbolsProceedings of the International Conference on Automated Planning and Scheduling · 2021
Euclidean Pathfinding with Compressed Path DatabasesIJCAI · 2020
Contracting and Compressing Shortest Path DatabasesIcaps · 2021
Path Planning with CPD HeuristicsIJCAI · 2019
Sub-Microsecond Grid Path Planning, at What Cost?Proceedings of the International Symposium on Combinatorial Search · 2025
The Compressed Differential HeuristicSocs · 2011
Figure