Researchers from Monash University have developed significant optimizations for Time-Dependent Contraction Hierarchies (TCH), the current gold standard for finding the fastest routes in road networks with fluctuating traffic. Presented at ICAPS 2022, their work introduces goal-directed heuristics and temporal partitioning to achieve a 3x to 6x speedup in query times over existing state-of-the-art implementations while maintaining path optimality.
The Challenge of Time-Dependent Routing
Finding the shortest path in a static graph is a well-understood problem. However, real-world road networks are dynamic; a commute at 8:00 AM takes significantly longer than the same drive at 11:00 PM. Standard TCH speeds up these queries by creating a hierarchy of "important" nodes and adding "shortcut" edges. Despite its success, TCH faces two major bottlenecks:
- Blind Search: Standard TCH relies on bidirectional Dijkstra search, which lacks heuristics about the destination's location, leading to unnecessary node explorations.
- Temporal Overkill: Building a single TCH to handle an entire 24-hour day results in bulky data structures, even for short trips where traffic conditions remain relatively stable.
Proposed Optimizations
The authors propose three main improvements to overcome these limitations:
1. Time-dependent Compressed Path Database (TCPD)
They adapt Compressed Path Databases (CPD)—typically used for static graphs—to the time-dependent domain. By building a "lower-bound" graph using the minimum possible travel time for every road, they create a TCPD that stores the optimal "first move." During a live search, the algorithm uses this database to prune the search space aggressively, focusing only on moves that could realistically lead to the destination.
2. Reachability Oracles
To further refine the search, they implement a Reachability Oracle. This compact lookup table tells the search algorithm whether a specific "downward" path in the hierarchy can actually reach the destination. If it cannot, the algorithm skips that path entirely.
3. Temporal Splitting (STCH and MTCH)
Instead of one monolithic TCH, they split the time domain into "buckets" (e.g., one-hour windows).
- STCH (Single-layer): Builds a TCH for each hour, considering only a limited travel window.
- MTCH (Multi-layer): A more sophisticated version that uses a hierarchy of TCHs. It attempts to solve queries using a specific, small TCH first, falling back to a more general TCH only if the trip duration exceeds the bucket's window.
Key Insights and Results
The researchers evaluated their methods on several road networks, including real-world historical data from New York and synthetic maps of Australian cities.
- Forward Search is Viable: Traditionally, bidirectional search is preferred for TCH. However, the authors demonstrate that a unidirectional forward search, when guided by a strong heuristic like TCPD, can actually outperform bidirectional Dijkstra.
- Search Efficiency: In the New York map, the baseline TCH expanded roughly 188,000 nodes per query. The new MTCH approach reduced this to just ~13,000 nodes—a 14x reduction in search effort.
- Robustness: The performance gains held up even on high-resolution datasets (NY-5) with travel times sampled every 5 minutes, proving the method's tolerance for complex data.
Conclusion
By specializing TCHs for specific times of day and utilizing goal-directed heuristics, the authors have significantly reduced the computational overhead of time-dependent routing. While preprocessing costs are higher due to the multiple layers and databases, the dramatic speedup in query times makes this approach a powerful tool for modern navigation systems.
Summary updated