[Paper Review] Algorithms, Reductions and Equivalences for Small Weight Variants of All-Pairs Shortest Paths
This paper establishes fine-grained equivalences between all-pairs shortest paths (APSP) in directed unweighted graphs and several variants involving small integer weights, including cRed-APSP, #≤cAPSP, approximate APSP with additive error, and All-Pairs Lightest Shortest Paths. It proves that these problems are computationally equivalent under reductions, showing that improving APSP in directed unweighted graphs would require breakthroughs in rectangular Min-Plus product computation, and presents new near-optimal algorithms for several variants, including an ˜O(n³)-time algorithm for #APSP and Betweenness Centrality.
APSP with small integer weights in undirected graphs [Seidel'95, Galil and Margalit'97] has an $ ilde{O}(n^ω)$ time algorithm, where $ω<2.373$ is the matrix multiplication exponent. APSP in directed graphs with small weights however, has a much slower running time that would be $Ω(n^{2.5})$ even if $ω=2$ [Zwick'02]. To understand this $n^{2.5}$ bottleneck, we build a web of reductions around directed unweighted APSP. We show that it is fine-grained equivalent to computing a rectangular Min-Plus product for matrices with integer entries; the dimensions and entry size of the matrices depend on the value of $ω$. As a consequence, we establish an equivalence between APSP in directed unweighted graphs, APSP in directed graphs with small $( ilde{O}(1))$ integer weights, All-Pairs Longest Paths in DAGs with small weights, approximate APSP with additive error $c$ in directed graphs with small weights, for $c\le ilde{O}(1)$ and several other graph problems. We also provide fine-grained reductions from directed unweighted APSP to All-Pairs Shortest Lightest Paths (APSLP) in undirected graphs with $\{0,1\}$ weights and $\#_{ ext{mod}\ c}$APSP in directed unweighted graphs (computing counts mod $c$). We complement our hardness results with new algorithms. We improve the known algorithms for APSLP in directed graphs with small integer weights and for approximate APSP with sublinear additive error in directed unweighted graphs. Our algorithm for approximate APSP with sublinear additive error is optimal, when viewed as a reduction to Min-Plus product. We also give new algorithms for variants of #APSP in unweighted graphs, as well as a near-optimal $ ilde{O}(n^3)$-time algorithm for the original #APSP problem in unweighted graphs. Our techniques also lead to a simpler alternative for the original APSP problem in undirected graphs with small integer weights.
Motivation & Objective
- To understand the inherent computational hardness of APSP in directed graphs with small integer weights, particularly the persistent n².⁵ bottleneck.
- To establish fine-grained reductions between directed unweighted APSP and multiple variants involving small weights or structural constraints.
- To develop improved algorithms for key variants such as approximate APSP with sublinear additive error and #APSP in unweighted graphs.
- To show that unless the current APSP runtime in directed unweighted graphs improves, several related problems also require Ω(n².⁵²⁸) time.
- To provide a near-optimal ˜O(n³)-time algorithm for #APSP and Betweenness Centrality, improving over previous ˜O(n⁴) bounds.
Proposed method
- Established fine-grained reductions from directed unweighted APSP to rectangular Min-Plus product problems M⋆(n, nρ, n | n¹⁻ᵣho), showing equivalence under sub-polynomial time improvements.
- Used recursive decomposition and dynamic programming over vertex sets Rℓ to compute shortest paths via Min-Plus products of bounded-entry matrices.
- Applied witness recovery techniques to reconstruct actual shortest paths from Min-Plus product computations.
- Developed new algorithms for approximate APSP with sublinear additive error by reducing to Min-Plus product, achieving optimality in this model.
- Provided a near-optimal ˜O(n³)-time algorithm for #APSP in unweighted graphs by combining counting with matrix product techniques.
- Extended results to directed graphs with approximately symmetric weights, achieving ˜O(c₀s nω) time for s-approximate symmetry.
Experimental results
Research questions
- RQ1Is the Ω(n².⁵) runtime bottleneck for directed APSP due to inherent complexity, or can it be overcome with new algorithmic insights?
- RQ2Are variants like cRed-APSP, #≤cAPSP, and approximate APSP with additive error computationally equivalent to directed unweighted APSP under fine-grained reductions?
- RQ3Can the current n².⁵²⁸ lower bound for APSP in directed unweighted graphs be extended to other problems via reductions?
- RQ4What is the optimal time complexity for #APSP in unweighted graphs, and can it be achieved in ˜O(n³) time despite exponentially large path counts?
- RQ5Can the known ˜O(nω) algorithms for undirected APSP be simplified or re-derived using the new framework?
Key findings
- Directed unweighted APSP is fine-grained equivalent to computing M⋆(n, nρ, n | n¹⁻ᵣho), where ρ satisfies ω(1, ρ, 1) = 1 + 2ρ, establishing a tight connection to rectangular Min-Plus products.
- Unless the current O(n².⁵²⁹) runtime for directed unweighted APSP improves, problems like APSLP in {0,1}-weighted undirected graphs and #mod cAPSP in unweighted directed graphs require Ω(n².⁵²⁸) time.
- An optimal ˜O(n³)-time algorithm is presented for #APSP in unweighted graphs, even when path counts are exponentially large, improving over the prior ˜O(n⁴) bound.
- The same algorithm yields an ˜O(n³)-time solution for Betweenness Centrality, improving the previous ˜O(n⁴) running time.
- A new ˜O(n³)-time algorithm is given for approximate APSP with sublinear additive error, which is optimal when viewed as a reduction to Min-Plus product.
- A simpler alternative to Shoshan and Zwick’s algorithm is provided for undirected APSP with small integer weights, using the new framework.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.