Introduction
Finding the shortest path between two points on a road network is a cornerstone of modern geographic information systems (GIS) and navigation services. While Dijkstra’s algorithm provides a foundational solution, its computational cost is prohibitive for continental-scale networks, as it explores the graph in all directions regardless of the destination's location. To address this, researchers have developed various acceleration techniques, which generally fall into two categories: spatial-coherence-based methods and vertex-importance-based methods.
Historically, these two "schools of thought" were developed and evaluated in isolation, often using different hardware, datasets, and performance metrics. This paper presents the first comprehensive, head-to-head experimental evaluation of these paradigms, testing them on massive road networks with up to 24 million vertices. By bringing these methods into a unified testing environment, the authors debunk previous performance claims and provide a definitive guide for algorithm selection.
Algorithmic Paradigms
The study focuses on five primary techniques, representing the state-of-the-art in shortest-path computation:
Vertex-Importance Methods
- Contraction Hierarchies (CH): This method exploits the inherent hierarchy of road networks (e.g., highways vs. local streets). During preprocessing, vertices are ordered by importance and "shortcuts" are added to preserve shortest path distances while bypassing less important nodes.
- Transit Node Routing (TNR): TNR identifies a small set of "transit nodes" (such as major highway interchanges) that most long-distance shortest paths must pass through. By pre-computing distances between these nodes, TNR can answer long-distance queries with a few table lookups.
Spatial-Coherence Methods
- SILC & PCPD: These methods rely on the observation that shortest paths from a cluster of nearby sources to a cluster of nearby destinations often share common edges. They use quadtrees and geometry-based compression to store path information efficiently.
Baseline
- Bidirectional Dijkstra: A standard optimization of Dijkstra’s algorithm that searches simultaneously from the source and the target, meeting in the middle.
A significant contribution of this work is the identification and correction of a flaw in the original TNR preprocessing algorithm. The authors' corrected implementation ensures that TNR provides accurate results for both distance and full shortest-path queries, proving its viability beyond simple distance lookups.
Experimental Methodology
The evaluation utilized ten real-world road networks from the Ninth DIMACS Implementation Challenge. These ranged from the Delaware (DE) network (~48,000 vertices) to the full United States (US) network (~24 million vertices and 58 million edges).
To test performance across different scales, the authors generated ten query sets ($Q_1$ to $Q_{10}$), where $Q_1$ represents very short, local trips and $Q_{10}$ represents cross-country journeys. The primary metrics for comparison were preprocessing time, memory consumption, distance query time, and the time required to retrieve the full sequence of edges (path retrieval).
Results and Analysis
Preprocessing and Memory Efficiency
Contraction Hierarchies (CH) emerged as the most efficient method regarding resource consumption. CH processed the entire US map in approximately 30 minutes and maintained the lowest memory footprint. In contrast, spatial-coherence methods (SILC and PCPD) proved to be extremely memory-intensive. Due to their $O(n\sqrt{n})$ space complexity, they failed to scale to networks larger than 1 million nodes on a machine with 24GB of RAM, hitting a "scaling wall" that limits their utility for continental maps.
Query Performance: Distance vs. Path
The experiments revealed a distinct trade-off between distance-only queries and full path reconstruction:
- Distance Queries: TNR is the undisputed leader for long-distance queries, outperforming CH by an order of magnitude. Its reliance on pre-computed transit node distances allows for near-instantaneous results once the query distance exceeds a certain threshold.
- Path Retrieval: For small to medium-sized networks where memory is not a constraint, SILC provides the fastest edge retrieval. However, for large-scale networks, CH is the most robust and reliable choice, offering a balanced performance profile across all query types.
Theoretical vs. Practical Performance
The study also clarified discrepancies between theory and practice. While PCPD was originally proposed as a theoretical improvement over SILC, the experimental results showed that PCPD is actually inferior in terms of preprocessing time, storage requirements, and query efficiency when applied to real-world road networks.
Conclusion
This evaluation provides a definitive guide for selecting shortest-path algorithms based on application requirements. For large-scale systems where memory efficiency and robustness are paramount, Contraction Hierarchies remain the gold standard. For applications requiring extreme speed on long-distance distance queries, Transit Node Routing is superior, provided the preprocessing is handled correctly.
Future research should focus on bridging the gap between these methods, perhaps through hybrid approaches that combine the hierarchical benefits of CH/TNR with the compression capabilities of spatial-coherence methods. Additionally, extending these evaluations to dynamic networks—where traffic and road closures change the graph in real-time—remains a critical challenge for the field.
Summary updated