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 language | English |
---|---|
Pages (from-to) | 670-683 |
Number of pages | 14 |
Journal | SIAM Journal on Computing |
Volume | 41 |
Issue number | 3 |
DOIs | |
State | Published - 2012 |
Keywords
- Dynamic algorithms
- Strongly connected components
- Transitive closure
All Science Journal Classification (ASJC) codes
- General Computer Science
- General Mathematics