All Pairs Shortest Paths in Undirected Graphs with Integer Weights

  • Authors:
  • Avi Shoshan;Uri Zwick

  • Affiliations:
  • -;-

  • Venue:
  • FOCS '99 Proceedings of the 40th Annual Symposium on Foundations of Computer Science
  • Year:
  • 1999

Quantified Score

Hi-index 0.01

Visualization

Abstract

We show that the All Pairs Shortest Paths (APSP) problem for undirected graphs with integer edge weights taken from the range \math can be solved using only a logarithmic number of distance products of matrices with elements in the range \math. As a result, we get an algorithm for the APSP problem in such graphs that runs in \math$ time, where n is the number of vertices in the input graph, M is the largest edge weight in the graph, and \math is the exponent of matrix multiplication. This improves, and also simplifies, an \math time algorithm of Galil and Margalit.