Skip to main content
QUICK REVIEW

[Paper Review] All Pairs Shortest Paths using Bridging Sets and Rectangular Matrix Multiplication

Uri Zwick|ArXiv.org|Aug 16, 2000
Complexity and Algorithms in GraphsComputer Science30 references7 citations
TL;DR

This paper presents two new algorithms for the All-Pairs Shortest Paths (APSP) problem in directed graphs using bridging sets and rectangular matrix multiplication. The first algorithm achieves Õ(n^{2.575}) time for small integer weights by exploiting the exponent μ of rectangular matrix multiplication, while the second provides (1+ε)-approximate distances in Õ((n^ω/ε) log W) time for non-negative real weights, significantly improving on prior bounds.

ABSTRACT

We present two new algorithms for solving the {\em All Pairs Shortest Paths} (APSP) problem for weighted directed graphs. Both algorithms use fast matrix multiplication algorithms. The first algorithm solves the APSP problem for weighted directed graphs in which the edge weights are integers of small absolute value in $\Ot(n^{2+μ})$ time, where $μ$ satisfies the equation $ω(1,μ,1)=1+2μ$ and $ω(1,μ,1)$ is the exponent of the multiplication of an $n imes n^μ$ matrix by an $n^μ imes n$ matrix. Currently, the best available bounds on $ω(1,μ,1)$, obtained by Coppersmith, imply that $μ<0.575$. The running time of our algorithm is therefore $O(n^{2.575})$. Our algorithm improves on the $\Ot(n^{(3+ω)/2})$ time algorithm, where $ω=ω(1,1,1)<2.376$ is the usual exponent of matrix multiplication, obtained by Alon, Galil and Margalit, whose running time is only known to be $O(n^{2.688})$. The second algorithm solves the APSP problem {\em almost} exactly for directed graphs with {\em arbitrary} non-negative real weights. The algorithm runs in $\Ot((n^ω/\eps)\log (W/\eps))$ time, where $\eps>0$ is an error parameter and W is the largest edge weight in the graph, after the edge weights are scaled so that the smallest non-zero edge weight in the graph is 1. It returns estimates of all the distances in the graph with a stretch of at most $1+\eps$. Corresponding paths can also be found efficiently.

Motivation & Objective

  • To develop faster algorithms for the All-Pairs Shortest Paths (APSP) problem in directed graphs with small integer or non-negative real weights.
  • To leverage fast rectangular matrix multiplication techniques to improve the asymptotic time complexity of APSP beyond the standard O(n^3) bound.
  • To achieve sub-cubic time complexity for APSP with small integer weights by exploiting the exponent μ of rectangular matrix multiplication.
  • To design an efficient approximation algorithm for non-negative real-weighted graphs with a (1+ε)-stretch guarantee on distance estimates.
  • To explore the possibility of achieving Õ(n^ω) time complexity for directed APSP, mirroring results in undirected graphs.

Proposed method

  • The first algorithm uses bridging sets and rectangular matrix multiplication to compute distance products, reducing the exponent to 2+μ where μ satisfies ω(1,μ,1)=1+2μ.
  • It applies fast matrix multiplication to n×n^μ and n^μ×n matrices, exploiting the best known bound μ<0.575 from Coppersmith’s work.
  • The second algorithm uses a scaling and rounding technique to convert real weights into integers, enabling the use of approximate distance product computation.
  • It employs an approximate distance product algorithm (approx-dist-prod) that uses resolution R=O((log n)/ε) to control error accumulation over log n iterations.
  • The algorithm iteratively squares the distance matrix using approximate distance products, maintaining a stretch factor of (1+4/R)^ℓ after ℓ iterations.
  • Witness matrices are maintained to reconstruct approximate shortest paths efficiently after distance estimation.

Experimental results

Research questions

  • RQ1Can the APSP problem for directed graphs with small integer weights be solved in sub-cubic time using fast rectangular matrix multiplication?
  • RQ2What is the best possible time complexity achievable for APSP with small integer weights, and how does it relate to the exponent μ of rectangular matrix multiplication?
  • RQ3Can an efficient (1+ε)-approximation algorithm for APSP be designed for non-negative real-weighted graphs using fast matrix multiplication techniques?
  • RQ4Is it possible to achieve Õ(n^ω) time complexity for directed APSP, similar to known results for undirected graphs?
  • RQ5What is the maximal value of M for which APSP with integer weights in [−M,M] can be solved in sub-cubic time?

Key findings

  • The first algorithm solves APSP for small integer weights in Õ(n^{2.575}) time, improving upon the previous Õ(n^{2.688}) bound from Alon, Galil, and Margalit.
  • The running time of Õ(n^{2.575}) is derived from the best known bound μ<0.575 on the exponent μ satisfying ω(1,μ,1)=1+2μ.
  • The second algorithm computes (1+ε)-approximate shortest paths in Õ((n^ω/ε) log W) time, where W is the maximum edge weight after scaling.
  • The algorithm maintains a stretch factor of at most (1+ε) after ⌈log₂n⌉ iterations of approximate distance product computation.
  • The use of resolution R=O((log n)/ε) ensures that the accumulated error remains within the (1+ε) bound over logarithmic iterations.
  • The method supports efficient reconstruction of approximate shortest paths using witness matrices, extending the algorithm beyond distance estimation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.