Dynamic approximate all-pairs shortest paths in undirected graphs

Liam Roditty*, Uri Zwick

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

63 Scopus citations

Abstract

We obtain three new dynamic algorithms for the approximate all-pairs shortest paths problem in unweighted undirected graphs: (i) For any fixed e > 0, a decremental algorithm with an expected total running time of Õ(mn), where m is the number of edges and n is the number of vertices in the initial graph. Each distance query is answered in O(1) worst-case time, and the stretch of the returned distances is at most 1+e. The algorithm uses Õ(n2) space. (ii) For any fixed integer k = 1, a decremental algorithm with an expected total running time of Õ (mn). Each query is answered in O(1) worst-case time, and the stretch of the returned distances is at most 2k - 1. This algorithm, however, uses only O(m + n1+1/k) space. It is obtained by dynamizing techniques of Thorup and Zwick. In addition to being more space efficient, this algorithm is also one of the building blocks used to obtain the first algorithm. (iii) For any fixed e, d > 0 and every t = m1/2-d, a fully dynamic algorithm with an expected amortized update time of Õ(mn/t) and worst-case query time of O(t). The stretch of the returned distances is at most 1+e. All algorithms can also be made to work on undirected graphs with small integer edge weights. If the largest edge weight is b, then all bounds on the running times are multiplied by b.

Original languageEnglish
Pages (from-to)670-683
Number of pages14
JournalSIAM Journal on Computing
Volume41
Issue number3
DOIs
StatePublished - 2012

Keywords

  • Dynamic algorithms
  • Strongly connected components
  • Transitive closure

Fingerprint

Dive into the research topics of 'Dynamic approximate all-pairs shortest paths in undirected graphs'. Together they form a unique fingerprint.

Cite this