Dynamic Approximate Shortest Paths and Beyond: Subquadratic and Worst-Case Update Time

Consider the following distance query for an n-node graph G undergoing edge insertions and deletions: given two sets of nodes I and J, return the distances between every pair of nodes in I × J. %It generalizes several versions of the dynamic shortest paths problem such as Single-Source and All-Pairs Shortest Paths (SSSP and APSP). This query is rather general and captures several versions of the dynamic shortest paths problem. In this paper, we develop an efficient (1 + ε) -approximation algorithm for this query using fast matrix multiplication. Our algorithm leads to answers for some open problems for Single-Source and All-Pairs Shortest Paths (SSSP and APSP), as well as for Diameter, Radius, and Eccentricities. Below are some highlights. Note that all our algorithms guarantee worst-case update time and are randomized (Monte Carlo), but do not need the oblivious adversary assumption. Subquadratic update time for SSSP, Diameter, Centralities, ect.: When we want to maintain distances from a single node explicitly (without queries), a fundamental question is to beat trivially calling Dijkstra's static algorithm after each update, taking Θ(n^2) update time on dense graphs. A better time complexity was not known even with amortization. It was known to be improbable for exact algorithms and for combinatorial any-approximation algorithms to polynomially beat the Ω(n^2) bound (under some conjectures) [Roditty, Zwick, ESA'04; Abboud, V. Williams, FOCS'14]. Our algorithm with I={s} and J=V(G) implies a (1 + ε) -approximation algorithm for this, guaranteeing Õ(n^1.823/ε^2) worst-case update time for directed graphs with positive real weights in [1, W].^2 With ideas from [Roditty, V. Williams, STOC'13], we also obtain the first subquadratic worst-case update time for (5/3+ε) -approximating the eccentricities and (1.5 + ε) -approximating the diameter and radius for unweighted graphs (with small additive errors). We also obtain the first subquadratic worst-case update time for (1 + ε) -approximating the closeness centralities for undirected unweighted graphs. Worst-case update time for APSP: When we want to maintain distances between all-pairs of nodes explicitly, the Õ(n^2) amortized update time by Demetrescu and Italiano [STOC'03] already matches the trivial Ω(n^2) lower bound. A fundamental question is whether it can be made worst-case. The state-of-the-art algorithm takes Õ(n^2+2/3) worst-case update time to maintain the distances exactly [Abraham, Chechik, Krinninger, SODA'17; Thorup STOC'05]. When it comes to (1 + ε) approximation, this bound is still higher than calling the Õ(n^ω/ε) -time static algorithm of Zwick [FOCS'98], where ω≈ 2.373. Our algorithm with I=J=V(G) implies nearly tight bounds for this, namely Õ(n^2/ε^1 + ω) for undirected unweighted graphs and Õ(n^2.045/ε^2) for directed graphs with positive real weights. Besides this, we also obtain the first dynamic APSP algorithm with subquadratic update time and sublinear query time.

[1]  Uri Zwick,et al.  All pairs shortest paths in undirected graphs with integer weights , 1999, 40th Annual Symposium on Foundations of Computer Science (Cat. No.99CB37039).

[2]  Monika Henzinger,et al.  Decremental Single-Source Shortest Paths on Undirected Graphs in Near-Linear Total Update Time , 2018, J. ACM.

[3]  George Labahn,et al.  A deterministic algorithm for inverting a polynomial matrix , 2015, J. Complex..

[4]  Donald B. Johnson,et al.  Efficient Algorithms for Shortest Paths in Sparse Networks , 1977, J. ACM.

[5]  Aaron Bernstein,et al.  Fully Dynamic (2 + epsilon) Approximate All-Pairs Shortest Paths with Fast Query and Close to Linear Update Time , 2009, 2009 50th Annual IEEE Symposium on Foundations of Computer Science.

[6]  Aaron Bernstein,et al.  Deterministic Partially Dynamic Single Source Shortest Paths in Weighted Graphs , 2017, ICALP.

[7]  Piotr Sankowski,et al.  Shortest Paths in Matrix Multiplication Time , 2005, ESA.

[8]  Giuseppe F. Italiano,et al.  Trade-offs for fully dynamic transitive closure on DAGs: breaking through the O(n2 barrier , 2005, JACM.

[9]  Uri Zwick,et al.  All pairs shortest paths using bridging sets and rectangular matrix multiplication , 2000, JACM.

[10]  Jacob T. Schwartz,et al.  Fast Probabilistic Algorithms for Verification of Polynomial Identities , 1980, J. ACM.

[11]  Clifford Stein,et al.  Dynamic Matching: Reducing Integral Algorithms to Approximately-Maximal Fractional Algorithms , 2017, ICALP.

[12]  Raphael Yuster,et al.  Replacement Paths and Distance Sensitivity Oracles via Fast Matrix Multiplication , 2013, TALG.

[13]  Christian Wulff-Nilsen,et al.  Fully-dynamic minimum spanning forest with improved worst-case update time , 2016, STOC.

[14]  Liam Roditty,et al.  Improved dynamic algorithms for maintaining approximate shortest paths under deletions , 2011, SODA '11.

[15]  Mihalis Yannakakis,et al.  High-probability parallel transitive closure algorithms , 1990, SPAA '90.

[16]  Moses Charikar,et al.  Fully Dynamic Almost-Maximal Matching: Breaking the Polynomial Worst-Case Time Barrier , 2018, ICALP.

[17]  Ryan Williams,et al.  Finding paths of length k in O*(2k) time , 2008, Inf. Process. Lett..

[18]  Monika Henzinger,et al.  A Deamortization Approach for Dynamic Spanner and Dynamic Maximal Matching , 2018, SODA.

[19]  Monika Henzinger,et al.  Fully Dynamic Approximate Maximum Matching and Minimum Vertex Cover in O(log3 n) Worst Case Update Time , 2017, SODA.

[20]  Piotr Sankowski,et al.  Dynamic transitive closure via dynamic matrix inverse: extended abstract , 2004, 45th Annual IEEE Symposium on Foundations of Computer Science.

[21]  Thatchaphol Saranurak,et al.  Dynamic spanning forest with worst-case update time: adaptive, Las Vegas, and O(n1/2 - ε)-time , 2017, STOC.

[22]  Monika Henzinger,et al.  Decremental Single-Source Shortest Paths on Undirected Graphs in Near-Linear Total Update Time , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.

[23]  Liam Roditty,et al.  Fast approximation algorithms for the diameter and radius of sparse graphs , 2013, STOC '13.

[24]  Monika Henzinger,et al.  A Subquadratic-Time Algorithm for Decremental Single-Source Shortest Paths , 2014, SODA.

[25]  Mikkel Thorup,et al.  Worst-case update times for fully-dynamic all-pairs shortest paths , 2005, STOC '05.

[26]  Virginia Vassilevska Williams,et al.  Multiplying matrices faster than coppersmith-winograd , 2012, STOC '12.

[27]  Thatchaphol Saranurak,et al.  Sensitive Distance and Reachability Oracles for Large Batch Updates , 2019, 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS).

[28]  Liam Roditty,et al.  Towards tight approximation bounds for graph diameter and eccentricities , 2018, STOC.

[29]  Shimon Even,et al.  An On-Line Edge-Deletion Problem , 1981, JACM.

[30]  Giuseppe F. Italiano,et al.  A new approach to dynamic all pairs shortest paths , 2003, STOC '03.

[31]  Robert Krauthgamer,et al.  Orienting Fully Dynamic Graphs with Worst-Case Time Bounds , 2013, ICALP.

[32]  Fabrizio Grandoni,et al.  Improved Distance Sensitivity Oracles via Fast Single-Source Replacement Paths , 2012, 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science.

[33]  Uri Zwick,et al.  Dynamic approximate all-pairs shortest paths in undirected graphs , 2004, 45th Annual IEEE Symposium on Foundations of Computer Science.

[34]  François Le Gall,et al.  Powers of tensors and fast matrix multiplication , 2014, ISSAC.

[35]  Robert E. Tarjan,et al.  Better Approximation Algorithms for the Graph Diameter , 2014, SODA.

[36]  Monika Henzinger,et al.  Sublinear-time decremental algorithms for single-source reachability and shortest paths on directed graphs , 2014, STOC.

[37]  Ittai Abraham,et al.  Fully dynamic all-pairs shortest paths with worst-case update-time revisited , 2016, SODA.

[38]  Monika Henzinger,et al.  Fully dynamic biconnectivity and transitive closure , 1995, Proceedings of IEEE 36th Annual Foundations of Computer Science.

[39]  Aleksander Madry,et al.  Faster approximation schemes for fractional multicommodity flow problems via dynamic graph algorithms , 2010, STOC '10.

[40]  Ioannis Koutis,et al.  Faster Algebraic Algorithms for Path and Packing Problems , 2008, ICALP.

[41]  Bruce M. Kapron,et al.  Dynamic graph connectivity in polylogarithmic worst case time , 2013, SODA.

[42]  Christian Wulff-Nilsen,et al.  Dynamic Minimum Spanning Forest with Subpolynomial Worst-Case Update Time , 2017, 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS).

[43]  Keerti Choudhary,et al.  Diameter Spanner, Eccentricity Spanner, and Approximating Extremal Graph Distances: Static, Dynamic, and Fault Tolerant , 2018, ArXiv.

[44]  Monika Henzinger,et al.  Algorithms and Hardness for Diameter in Dynamic Graphs , 2018, ICALP.

[45]  Danupon Nanongkai,et al.  Distributed approximation algorithms for weighted shortest paths , 2014, STOC.

[46]  Christian Wulff-Nilsen,et al.  Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds , 2020, SODA.

[47]  Prabhakar Raghavan,et al.  Provably good routing in graphs: regular arrays , 1985, STOC '85.

[48]  David Eppstein,et al.  Fast approximation of centrality , 2000, SODA '01.

[49]  Sebastian Krinninger,et al.  Fully Dynamic Spanners with Worst-Case Update Time , 2016, ESA.

[50]  Ronald L. Rivest,et al.  Introduction to Algorithms, 3rd Edition , 2009 .

[51]  Piotr Sankowski,et al.  Subquadratic Algorithm for Dynamic Shortest Distances , 2005, COCOON.

[52]  Roberto Grossi,et al.  New Bounds for Approximating Extremal Distances in Undirected Graphs , 2016, SODA.

[53]  Piotr Sankowski,et al.  Algorithmic Applications of Baur-Strassen's Theorem: Shortest Cycles, Diameter and Matchings , 2012, 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science.

[54]  Virginia Vassilevska Williams,et al.  Faster replacement paths , 2010, SODA '11.

[55]  Piotr Indyk,et al.  Fast estimation of diameter and shortest paths (without matrix multiplication) , 1996, SODA '96.

[56]  Aaron Bernstein Maintaining Shortest Paths Under Deletions in Weighted Directed Graphs , 2016, SIAM J. Comput..

[57]  Amir Abboud,et al.  Popular Conjectures Imply Strong Lower Bounds for Dynamic Problems , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.

[58]  Monika Henzinger,et al.  Dynamic Approximate All-Pairs Shortest Paths: Breaking the O(mn) Barrier and Derandomization , 2013, 2013 IEEE 54th Annual Symposium on Foundations of Computer Science.

[59]  Uri Zwick,et al.  On Dynamic Shortest Paths Problems , 2004, Algorithmica.

[60]  Thatchaphol Saranurak,et al.  Dynamic Matrix Inverse: Improved Algorithms and Matching Conditional Lower Bounds , 2019, 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS).

[61]  J. Sherman,et al.  Adjustment of an Inverse Matrix Corresponding to a Change in One Element of a Given Matrix , 1950 .

[62]  François Le Gall,et al.  Improved Rectangular Matrix Multiplication using Powers of the Coppersmith-Winograd Tensor , 2017, SODA.

[63]  Shiri Chechik,et al.  Deterministic decremental single source shortest paths: beyond the o(mn) bound , 2016, STOC.

[64]  Monika Henzinger,et al.  Unifying and Strengthening Hardness for Dynamic Problems via the Online Matrix-Vector Multiplication Conjecture , 2015, STOC.