Dynamic Approximate All-Pairs Shortest Paths in Undirected Graphs

  • Authors:
  • Liam Roditty;Uri Zwick

  • Affiliations:
  • Tel Aviv University;Tel Aviv University

  • Venue:
  • FOCS '04 Proceedings of the 45th Annual IEEE Symposium on Foundations of Computer Science
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

We obtain three new dynamic algorithms for the approximate all-pairs shortest paths problem in unweighted undirected graphs: 1. For any fixed 驴 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 0(1) worst-case time, and the stretch of the returned distances is at most 1 + 驴 The algorithm uses 驴(n虏) space. 2. For any fixed integer k 驴 1, a decremental algorithm with an expected total running time of 脮(mn). Each query is answered in 0(1) worst-case time, and the stretch of the returned distances is at most 2k - 1. This algorithm uses, however, only 0(m + n^{1 + {1 \mathord{\left/ {\vphantom {1 k}} \right. \kern-\nulldelimiterspace} 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. 3. For any fixed 驴, 驴 0 and every t \leqslant m^{{1 \mathord{\left/ {\vphantom {1 {2 - \delta }}} \right. \kern-\nulldelimiterspace} {2 - \delta }}}, a fully dynamic algorithm with an expected amortized update time of 脮(mn/t) and worst-case query time of 0(t). The stretch of the returned distances is at most 1 + 驴. 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.