Introduction
Pathfinding is a fundamental challenge in combinatorial search, often requiring a balance between search efficiency and memory consumption. This paper, originally presented at the Fourth International Symposium on Combinatorial Search (SoCS-2011), introduces the Compressed Differential Heuristic (CDH). CDH provides a mechanism to enhance heuristic accuracy without the prohibitive memory costs associated with traditional differential heuristics.
Problem Statement: The Memory Bottleneck of Differential Heuristics
In graph search problems, heuristics guide algorithms like $A^*$ toward a goal. A standard approach is the Differential Heuristic (DH), which utilizes "pivot" states. By pre-calculating distances from every state to these pivots, the algorithm uses the triangle inequality—$|d(a, p) - d(g, p)|$—to estimate the distance between a current state $a$ and a goal $g$.
However, DH is memory-intensive. Each pivot requires a distance value for every state in the graph. For large-scale environments like GPS networks or complex game maps, storing multiple pivots becomes infeasible in memory-constrained systems.
Methodology: The Compressed Differential Heuristic
The authors propose CDH to mitigate these storage requirements by only keeping a subset of pivot distances for each state.
When a search requires a distance to a pivot not present in the goal state's lookup table, CDH employs a Bounding Trick:
- Local Search: A small Dijkstra search is performed from the goal $g$ to find nearby states $x$ that do have the required pivot distance stored.
- Bound Calculation: Using these nearby states, the algorithm calculates upper and lower bounds:
- $\text{Upper bound}: \bar{d}_x(g, p) = d(g, x) + d(x, p)$
- $\text{Lower bound}: \underline{d}_x(g, p) = |d(g, x) - d(x, p)|$
- Admissible Estimation: These bounds are integrated into the differential heuristic formula, ensuring the resulting estimate remains admissible and consistent for $A^*$ search.
Evaluation
The approach was evaluated across several domains:
- Dragon Age: Origins (DAO) Maps: Grid-based RPG environments.
- Road Maps: Street networks of the SF Bay Area.
- Robotic Arm: Configuration spaces for 2D segmented arms.
- Synthetic Graphs: Rooms maps and Delaunay graphs.
Key Results and Discussion
The core finding is that a "diversity" of heuristic information from many pivots—even if approximated via bounds—is more effective than perfect information from very few pivots.
Key observations include:
- Efficiency Gains: CDH significantly outperformed standard DH for memory allocations between $1|V|$ and $8|V|$ (where $|V|$ is the number of states).
- Scalability: As memory becomes abundant (e.g., 16+ pivots per state), standard DH eventually matches CDH as the coverage gap closes.
- Tunability: CDH is highly flexible, allowing developers to tune the heuristic to fit specific hardware RAM limits.
Conclusion
The Compressed Differential Heuristic bridges the gap between memory-based lookup tables and on-the-fly calculations. While it introduces a small pre-computation overhead per instance to find bounds, the resulting reduction in search time and memory footprint makes it a powerful tool for pathfinding in constrained environments. Future work may explore optimal parameter selection for different graph topologies and broader applications to other True Distance Heuristics.
Summary updated