English

All-Pairs Shortest Paths in $O(n^2)$ time with high probability

Combinatorics 2011-05-20 v1 Data Structures and Algorithms Probability

Abstract

We present an all-pairs shortest path algorithm whose running time on a complete directed graph on nn vertices whose edge weights are chosen independently and uniformly at random from [0,1][0,1] is O(n2)O(n^2), in expectation and with high probability. This resolves a long standing open problem. The algorithm is a variant of the dynamic all-pairs shortest paths algorithm of Demetrescu and Italiano. The analysis relies on a proof that the number of \emph{locally shortest paths} in such randomly weighted graphs is O(n2)O(n^2), in expectation and with high probability. We also present a dynamic version of the algorithm that recomputes all shortest paths after a random edge update in O(log2n)O(\log^{2}n) expected time.

Keywords

Cite

@article{arxiv.1105.3770,
  title  = {All-Pairs Shortest Paths in $O(n^2)$ time with high probability},
  author = {Yuval Peres and Dimitry Sotnikov and Benny Sudakov and Uri Zwick},
  journal= {arXiv preprint arXiv:1105.3770},
  year   = {2011}
}