Abstract
This paper bridges the gap between 1980s parallel computing theory and modern GPU hardware by adapting the Euler tour technique for graph processing. While many GPU graph libraries rely on heuristics that fail on high-diameter graphs, the authors demonstrate that theoretically optimal algorithms provide robust, high-performance results across all topologies. By optimizing the Euler tour for GPU architectures, they achieve significant speedups in solving Lowest Common Ancestor (LCA) and bridge-finding problems, particularly on challenging real-world datasets like road networks.
Introduction: The Irregularity Challenge
Designing efficient graph algorithms for GPUs is notoriously difficult because graph traversals are "irregular"—memory access patterns are unpredictable, and synchronization is costly. To cope, many state-of-the-art GPU libraries rely on simple heuristics, such as Breadth-First Search (BFS), which work well on small-diameter social networks but fall apart on "hard" instances like road networks or long paths. This research revisits the Euler tour technique, asking if a theoretically optimal approach can provide "performance insurance" across all types of graph topologies.
Methodology: Adapting Euler Tours for GPUs
The core of the paper is the implementation of the Euler tour technique on GPUs. A tree is represented as a linked list of directed half-edges following a Depth-First Search (DFS) traversal. This transformation allows complex tree problems to be solved using simple array operations like prefix sums (scans).
Standard PRAM theory relies heavily on "list-ranking," which is slow on GPUs due to high-latency memory. The authors introduce a key optimization: they perform list-ranking exactly once to linearize the tour into an array. From there, they use highly optimized GPU scan primitives for all subsequent calculations. This framework was applied to:
- Lowest Common Ancestor (LCA): Adapting the Inlabel algorithm for $O(1)$ query time.
- Bridge-Finding: Implementing the Tarjan-Vishkin (TV) algorithm for general graphs via spanning trees.
Performance and Robustness
The authors tested their algorithms on a mix of synthetic trees (varying in depth) and real-world graphs, including social networks and road networks. The results highlight the "performance insurance" provided by theoretically optimal algorithms.
Key results include:
- Robustness to Depth: While a naive GPU LCA heuristic is slightly faster on very shallow trees, its performance drops off a cliff as depth increases. The Euler tour-based Inlabel algorithm provides a flat, consistent response time regardless of tree depth.
- Superior Throughput: The Inlabel algorithm consistently outperformed single-core CPU baselines by 22–52x for queries. For bridge-finding, the TV algorithm was up to 4.7x faster than state-of-the-art BFS heuristics on road networks.
- Topology Independence: Unlike heuristics, the Euler tour-based approach's throughput depends almost entirely on the size of the graph, not its shape.
Conclusion
The Euler tour technique, once considered a theoretical curiosity for parallel models, is now a practical primitive for high-performance GPU graph processing. By minimizing the use of list-ranking and shifting to array scans, the authors made these algorithms competitive with and often superior to popular heuristics. While preprocessing overhead remains a consideration for small workloads, the robustness of this approach makes it a vital tool for handling diverse and complex graph structures in modern computing.
Summary updated