JOURNAL ARTICLE

All pairs shortest paths in weighted directed graphs-exact and almost exact algorithms

Abstract

We present two new algorithms for solving the 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 O/spl tilde/(n/sup 2+/spl mu//) time, where /spl mu/ satisfies the equation /spl omega/(1,/spl mu/,1)=1+2/spl mu/ and /spl omega/(1,/spl mu/,1) is the exponent of the multiplication of an n/spl times/n/sup /spl mu// matrix by an n/sup /spl mu///spl times/n matrix. The currently best available bounds on /spl omega/(1,/spl mu/,1), obtained by Coppersmith and Winograd, and by Huang and Pan, imply that /spl mu/<0.575. The running time of our algorithm is therefore O(n/sup 2.575/). Our algorithm improves on the O/spl tilde/(n/sup (3+/spl omega/)/2/) time algorithm, where /spl omega/=/spl omega/(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/sup 2.688/). The second algorithm solves the APSP problem almost exactly for directed graphs with arbitrary non-negative real weights. The algorithm runs in O/spl tilde/((n/sup /spl omega////spl epsiv/)/spl middot/log(W//spl epsiv/)) time, where /spl epsiv/>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+/spl epsiv/. Corresponding paths can also be found efficiently.

Keywords:
Omega Combinatorics Matrix multiplication Exponent Algorithm Matrix (chemical analysis) Mathematics Discrete mathematics Physics Quantum mechanics

Metrics

88
Cited By
8.14
FWCI (Field Weighted Citation Impact)
25
Refs
0.98
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Complexity and Algorithms in Graphs
Physical Sciences →  Computer Science →  Computational Theory and Mathematics
Advanced Graph Theory Research
Physical Sciences →  Computer Science →  Computational Theory and Mathematics
Optimization and Search Problems
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

JOURNAL ARTICLE

More Algorithms for All-Pairs Shortest Paths in Weighted Graphs

Timothy M. Chan

Journal:   SIAM Journal on Computing Year: 2010 Vol: 39 (5)Pages: 2075-2089
BOOK-CHAPTER

Shortest paths in directed weighted graphs

Algebra and discrete mathematics Year: 2012 Pages: 177-185
JOURNAL ARTICLE

Distributed Exact Weighted All-Pairs Shortest Paths in Randomized Near-Linear Time

Aaron BernsteinDanupon Nanongkai

Journal:   SIAM Journal on Computing Year: 2021 Vol: 52 (2)Pages: STOC19-112
© 2026 ScienceGate Book Chapters — All rights reserved.