All Pairs Shortest Paths using Bridging Sets and Rectangular Matrix Multiplication
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 time, where satisfies the equation and is the exponent of the multiplication of an matrix by an matrix. Currently, the best available bounds on , obtained by Coppersmith, imply that . The running time of our algorithm is therefore . Our algorithm improves on the time algorithm, where is the usual exponent of matrix multiplication, obtained by Alon, Galil and Margalit, whose running time is only known to be . The second algorithm solves the APSP problem {\em almost} exactly for directed graphs with {\em arbitrary} non-negative real weights. The algorithm runs in time, where 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 . Corresponding paths can also be found efficiently.
Cite
@article{arxiv.cs/0008011,
title = {All Pairs Shortest Paths using Bridging Sets and Rectangular Matrix Multiplication},
author = {Uri Zwick},
journal= {arXiv preprint arXiv:cs/0008011},
year = {2007}
}
Comments
27 pages, 19 figures, a preliminary version appeared in FOCS'98 under a slightly different title