Introduction
Finding the shortest path in a graph is a fundamental problem in computer science, with applications ranging from robotics to video games. While static pathfinding is largely considered a "solved" problem thanks to techniques like Compressed Path Databases (CPDs), real-world environments are rarely static. Traffic, road closures, or dynamic obstacles frequently alter edge costs. This paper, presented at IJCAI-19, introduces CPD-Search, a method that repurposes "stale" CPD data as a powerful heuristic to guide search in dynamic environments.
The Challenge of Dynamic Environments
In static maps, CPDs allow for near-instantaneous pathfinding by precomputing and compressing optimal moves for every possible node pair. However, when edge costs change, these databases become inaccurate. Traditionally, one would either recompute the database—an expensive operation—or revert to general-purpose search algorithms like A*, which are significantly slower.
CPD-Search: Leveraging Stale Data
The authors propose using the precomputed shortest-path distances from a CPD as an admissible heuristic for A search. This is valid under the assumption that edge costs in the dynamic graph only increase* relative to the original static graph. In this scenario, the original distance remains a guaranteed lower bound.
Key Innovations
- Concrete Path Extraction: Unlike abstract heuristics (e.g., Euclidean distance), a CPD provides a specific, concrete path.
- Dual Bounding and Early Termination: By having both a lower bound (the heuristic) and an upper bound (the cost of the concrete path provided by the CPD), the algorithm can terminate early if these values meet, often before the target node is reached.
- Anytime Search: The concrete path ensures that a feasible solution is available from the very first expansion, making it ideal for "anytime" scenarios where a result is needed under strict time constraints.
Experimental Evaluation
The approach was tested on standard grid-map benchmarks from the MovingAI repository, including maps from Dragon Age: Origins (DAO) and Warcraft III (WC3), as well as synthetic mazes. Dynamic changes were simulated using two policies: AREA (localized congestion) and RANDOM (cost increases on 10% of edges).
Results and Discussion
CPD-Search demonstrates significant performance gains over state-of-the-art heuristics like A* with Landmarks (ALT).
- Efficiency: On DAO maps, CPD-Search expanded approximately 515 nodes on average, a 75% reduction compared to the ~2,000 nodes expanded by the best Landmark configuration.
- Speed: Optimal search was 3x to 10x faster than traditional methods across various benchmarks. As shown in the performance quantiles, CPD-Search maintains a lower time profile even for the most difficult instances.
- Anytime Performance: In time-constrained tests, CPD-Search found optimal solutions in under 4ms, whereas traditional Anytime Weighted A (AWA) often failed to prove optimality within 10ms.
Conclusion
By treating precomputed path data as a topological heuristic rather than a final answer, CPD-Search bridges the gap between static precomputation and dynamic search. While currently limited to scenarios where costs only increase and the graph topology remains static, it represents a major step forward in efficient, real-time path planning for changing environments.
Summary updated