Improving Time-Dependent Contraction Hierarchies

Bojie Shen, Muhammad Aamir Cheema, Daniel Damir Harabor, Peter J. Stuckey

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:

  1. Blind Search: Standard TCH relies on bidirectional Dijkstra search, which lacks heuristics about the destination's location, leading to unnecessary node explorations.
  2. 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.
Figure 3: A sample road network where edges have associated Travel Time Functions (TTFs), illustrating how travel time varies with the time of departure.

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.
Figure 6: Directed edges in a time-dependent graph. Note how the travel time function for HJ differs from JH, necessitating sophisticated heuristics like TCPD for efficient forward search.

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

BibTeX
@inproceedings{shen2022improving,
  author = {Bojie Shen and Muhammad Aamir Cheema and Daniel Damir Harabor and Peter J. Stuckey},
  title = {{Improving Time-Dependent Contraction Hierarchies}},
  booktitle = {ICAPS},
  year = {2022},
}
Figure