TL;DR
This paper introduces the first deterministic parallel algorithm for the All-Pairs Shortest Paths (APSP) problem on real-weighted directed graphs that matches the work-depth trade-off of previous randomized methods. By developing a novel deterministic way to compute "hub sets" (hitting sets for shortest paths), the authors also unlock significantly faster parallel and sequential algorithms for planar graph problems like negative cycle detection and perfect matching.
What Problem Does This Paper Address?
The All-Pairs Shortest Paths (APSP) problem—finding the shortest distance between every pair of vertices in a graph—is a cornerstone of computer science. While sequential algorithms are well-understood, parallelizing APSP for sparse graphs with real (potentially negative) edge weights is notoriously difficult.
For decades, the "gold standard" for parallel trade-offs in sparse graphs was a randomized algorithm by Ullman and Yannakakis (1991), which worked for the simpler problem of transitive closure. For real-weighted graphs, researchers had to rely on randomization to pick "representative" vertices to simplify the path-finding process. This paper addresses two major gaps:
- Determinism: Removing the reliance on "luck" (random sampling) while maintaining efficiency.
- Generality: Moving from simple reachability (transitive closure) to the more complex real-weighted APSP.
Methods
The authors employ a "divide and conquer" strategy based on hop-length.
- Hub Sets (The Secret Sauce): The core idea is to find a small set of vertices (a hub set) such that every "long" shortest path (one with many edges, or "hops") passes through at least one vertex in this set. Previously, these were found by random sampling. The authors develop a deterministic $O(nm)$-work procedure to find these sets by greedily hitting shortest $d$-hop paths.
- Bellman-Ford Lifting: They use a parallel version of the Bellman-Ford algorithm to compute distances for "short" paths (few hops).
- Repeated Squaring: For "long" paths, they transition to a dense-graph approach. Once they have distances between hub vertices, they use matrix-multiplication-style "repeated squaring" to find the overall shortest paths.
- Recursive Decomposition (for Planar Graphs): To apply this to planar graphs, they use the fact that planar graphs can be split into pieces using small "separators." They combine their new APSP algorithm with the "Dense Distance Graph" framework to achieve sub-linear depth.
Datasets
As a theoretical paper in algorithms, no empirical datasets were used. The results are proven mathematically for the general class of real-weighted directed graphs and the specific class of planar directed graphs.
Key Insights and Ideas
- Deterministic Hub Sets are Possible: The most significant "aha moment" is that you don't need randomization to find a good hitting set for shortest paths. You can compute them deterministically within the same work bounds ($O(nm)$) as the best sequential APSP algorithms.
- The $O(nm + (n/d)^3)$ Trade-off: By choosing a depth parameter $d$, you can balance the work done on "sparse" path-lifting ($nm$) against the "dense" matrix operations $(n/d)^3$. This allows for a flexible "parallelism knob."
- Planar Graphs are Highly Parallelizable: By plugging this APSP algorithm into existing planar frameworks (like Fakcharoenphol and Rao’s), the authors show that planar SSSP and negative cycle detection can be done in $\tilde{O}(n^{1/6})$ depth—a significant jump in parallelism for work-efficient algorithms.
Key Results
- General APSP: A deterministic parallel algorithm with $O(nm + (n/d)^3)$ work and $\tilde{O}(d)$ depth for any $d \in [1, n]$.
- Shortest Negative Cycle: A deterministic sequential algorithm that finds the shortest (in terms of hops) negative cycle in $O(nm \log^2 n)$ time, matching the best-known randomized bounds.
- Planar Graph Speedups:
- Parallel SSSP and bipartite perfect matching in $\tilde{O}(n^{1/6})$ depth with $O(n)$ work.
- A new sequential $O(n^{9/8})$-time algorithm for the Minimum Mean Cycle problem on planar graphs, improving upon previous general-graph bounds.
Limitations and Future Work
- Dense Term Bottleneck: The $(n/d)^3$ term in the work complexity means that to get very low depth (high parallelism), the total work increases significantly. Finding a way to reduce this cubic term for sparse graphs remains an open challenge.
- Dynamic Graphs: The authors note that while their hub set construction is great for static graphs, it is unlikely to replace randomized hub sets in dynamic graph algorithms (where edges change over time), because randomized sets provide guarantees against an "oblivious adversary" that deterministic sets cannot easily replicate.
- Constant Factors: As with many high-level parallel algorithms, the hidden constant factors in the $\tilde{O}$ notation might be large, making practical implementation a task for future engineering-focused research.
Summary updated