Skip to main content

Dynamic Approximate All-Pairs Shortest Paths: Breaking the O(mn) Barrier and Derandomization

  • Living reference work entry
  • First Online:
Encyclopedia of Algorithms

Years and Authors of Summarized Original Work

2013; Henzinger, Krinninger, Nanongkai

Problem Definition

Given an undirected, unweighted graph with n nodes and m edges that is modified by a sequence of edge insertions and deletions, the problem is to maintain a data structure that quickly answers queries that ask for the length d(u, v) of the shortest path between two arbitrary nodes u and v in the graph, called the distance of u and v. The fastest exact algorithm for this problem is randomized and takes amortized \(O\left (n^{2}\left (\log n +\log ^{2}((m + n)/n)\right )\right )\) time per update and constant query time [6, 11]. In the decremental case, i.e., if only edge deletions are allowed, there exists a deterministic algorithm with amortized time O(n 2) per deletion [7]. More precisely, its total update time for a sequence of up to m deletions is O(mn 2). Additionally, there is a randomized algorithm with O(n 3log2 n) total update time and constant query time [1]. However, in...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Recommended Reading

  1. Baswana S, Hariharan R, Sen S (2007) Improved decremental algorithms for maintaining transitive closure and all-pairs shortest paths. J Algorithms 62(2):74–92. Announced at STOC, 2002

    Google Scholar 

  2. Ben-David S, Borodin A, Karp RM, Tardos G, Wigderson A (1994) On the power of randomization in on-line algorithms. Algorithmica 11(1):2–14. Announced at STOC, 1990

    Google Scholar 

  3. Bernstein A (2013) Maintaining shortest paths under deletions in weighted directed graphs. In: STOC, Palo Alto, pp 725–734

    Google Scholar 

  4. Bernstein A, Roditty L (2011) Improved dynamic algorithms for maintaining approximate shortest paths under deletions. In: SODA, San Francisco, pp 1355–1365

    Google Scholar 

  5. Borodin A, El-Yaniv R (1998) Online computation and competitive analysis. Cambridge University Press, Cambridge

    MATH  Google Scholar 

  6. Demetrescu C, Italiano GF (2004) A new approach to dynamic all pairs shortest paths. J ACM 51(6):968–992. Announced at STOC, 2003

    Google Scholar 

  7. Even S, Shiloach Y (1981) An on-line edge-deletion problem. J ACM 28(1):1–4

    Article  MATH  MathSciNet  Google Scholar 

  8. Henzinger M, Krinninger S, Nanongkai D (2013) Dynamic approximate all-pairs shortest paths: breaking the O(mn) barrier and derandomization. In: FOCS, Berkeley

    Google Scholar 

  9. Henzinger M, Krinninger S, Nanongkai D (2014) Sublinear-time decremental algorithms for single-source reachability and shortest paths on directed graphs. In: STOC, New York

    Google Scholar 

  10. Roditty L, Zwick U (2012) Dynamic approximate all-pairs shortest paths in undirected graphs. SIAM J Comput 41(3):670–683. Announced at FOCS, 2004

    Google Scholar 

  11. Thorup M (2004) Fully-dynamic all-pairs shortest paths: faster and allowing negative cycles. In: SWAT, Humlebæk, pp 384–396

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Monika Henzinger .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer Science+Business Media New York

About this entry

Cite this entry

Henzinger, M., Krinninger, S., Nanongkai, D. (2015). Dynamic Approximate All-Pairs Shortest Paths: Breaking the O(mn) Barrier and Derandomization. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, Boston, MA. https://doi.org/10.1007/978-3-642-27848-8_565-1

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-27848-8_565-1

  • Received:

  • Accepted:

  • Published:

  • Publisher Name: Springer, Boston, MA

  • Online ISBN: 978-3-642-27848-8

  • eBook Packages: Springer Reference Computer SciencesReference Module Computer Science and Engineering

Publish with us

Policies and ethics