Abstract
Tree Cache is a lightweight pre-processing approach to grid path finding which works by generating a shortest path tree: from a root cell to all cells in the map. During online search Tree Cache simply follows the tree: from start and target towards the root, stopping at the first common cell. Although Tree Cache is fast, the resulting paths have no solution quality guarantees. In this paper we improve Tree Cache, in terms of speed and solution quality, by combining symmetry breaking ideas from Jump Point Search. Our new algorithm, Jump Spanning Tree Search (JSTS), can usually generate paths with low average sub-optimality in under one microsecond -- up to two orders of magnitude faster than Tree Cache. We then extend JSTS to derive a new and very fast bounded suboptimal search, which guarantees solution quality in single-digit microseconds on average. Our results establish a remarkable new level of performance in the area. In particular, we show JSTS approaches and often improves upon the output complexity of an idealised oracle, which simply reads off and returns a corresponding but optimal solution path.
Introduction
In high-performance applications such as real-time strategy games and multi-agent robotics, pathfinding must be nearly instantaneous. While the classic A* algorithm is the gold standard for finding optimal paths, its computational cost can be prohibitive when scaled to millions of agents or massive maps.
Existing "Tree Cache" methods offer a faster alternative by pre-calculating a shortest-path tree from a single "root" cell to every other cell. Finding a path then becomes a simple matter of following branches until they intersect. However, these methods suffer from two significant drawbacks: poor path quality, often characterized by inefficient "staircase" zig-zags, and a lack of formal sub-optimality guarantees. This research introduces Jump Spanning Tree Search (JSTS) to bridge this gap, achieving sub-microsecond speeds while significantly improving path quality.
Methodology
The core innovation lies in the integration of Jump Point Search (JPS) logic into the Tree Cache framework.
Jump Spanning Tree Search (JSTS)
Instead of storing every grid cell as a node, JSTS stores only "jump points"—critical locations where a path must turn to navigate around obstacles. This compression reduces the tree height, minimizing the number of lookups required during online search. Furthermore, the authors utilize a "Midpath" strategy for root selection, placing the tree root at the midpoint of the map's longest shortest path to optimize overall path quality.
Staircase Bypassing
To address the "zig-zag" inefficiency of standard tree-based paths, the authors implemented a "diagonal-last" rule. This allows the algorithm to "short-circuit" intermediate nodes if a direct diagonal path exists between a node and its ancestor, effectively smoothing the trajectory.
Bounded JSTS (BJSTS)
For applications requiring strict quality guarantees, Bounded JSTS (BJSTS) uses the JSTS tree as a high-speed heuristic to guide a traditional search. This ensures the final path cost is within a factor $w$ of the optimal cost.
Experimental Setup
The algorithms were rigorously tested using the Grid-based Path Planning Competition (GPPC) benchmark suite. This includes 256,000 problem instances across diverse map types:
- Game & Street: Real-world layouts from commercial video games and urban environments.
- Iron Harvest: Massive RTS maps with millions of traversable cells.
- Maze & Random: Synthetic benchmarks designed to test narrow corridors and edge cases.
Key Results
JSTS achieves a new state-of-the-art in pathfinding efficiency. On average, JSTS generates a path in just 0.3 microseconds. This is approximately 300,000 times faster than standard A* and significantly faster than even the most optimized JPS variants.
Remarkably, JSTS often outperforms a theoretical "Copy Oracle"—an idealized system that simply copies an optimal path from memory. Because JSTS returns a few "jump segments" rather than every individual cell step, it moves less data, allowing it to bypass the fundamental output complexity limits of traditional optimal solvers.
Discussion and Conclusion
While JSTS offers unprecedented online speed, it comes at the cost of pre-processing. Building the jump-point tree requires seconds to minutes of computation when a map is first loaded. Furthermore, the current implementation is optimized for static maps; dynamic changes would require rebuilding or repairing the tree structure.
Future work will explore the use of multiple trees rooted at different locations to further enhance path quality while maintaining sub-microsecond performance. JSTS represents a significant leap forward, demonstrating that with clever pre-processing and symmetry breaking, pathfinding can be made essentially "free" for real-time systems.
Summary updated