Optimal Offline Dynamic 2, 3-Edge/Vertex Connectivity

  • Richard Peng
  • Bryce SandlundEmail author
  • Daniel D. Sleator
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11646)


We give offline algorithms for processing a sequence of 2- and 3-edge and vertex connectivity queries in a fully-dynamic undirected graph. While the current best fully-dynamic online data structures for 3-edge and 3-vertex connectivity require \(O(n^{2/3})\) and O(n) time per update, respectively, our per-operation cost is only \(O(\log n)\), optimal due to the dynamic connectivity lower bound of Patrascu and Demaine. Our approach utilizes a divide and conquer scheme that transforms a graph into smaller equivalents that preserve connectivity information. This construction of equivalents is closely-related to the development of vertex sparsifiers, and shares important connections to several upcoming results in dynamic graph data structures, including online models.


  1. 1.
    Abboud, A., Dahlgaard, S.: Popular conjectures as a barrier for dynamic planar graph algorithms. In: IEEE 57th Annual Symposium on Foundations of Computer Science, pp. 477–486, Nov 2016Google Scholar
  2. 2.
    Abboud, A., Williams, V.V.: Popular conjectures imply strong lower bounds for dynamic problems. In: Proceedings of the 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, FOCS 2014, pp. 434–443 (2014)Google Scholar
  3. 3.
    Abboud, A., Williams, V.V., Yu, H.: Matching triangles and basing hardness on an extremely popular conjecture. In: Proceedings of the Forty-Seventh Annual ACM on Symposium on Theory of Computing, STOC 2015, pp. 41–50 (2015)Google Scholar
  4. 4.
    Abraham, I., Durfee, D., Koutis, I., Krinninger, S., Peng, R.: On fully dynamic graph sparsifiers. In: 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pp. 335–344, Oct 2016Google Scholar
  5. 5.
    Assadi, S., Khanna, S., Li, Y., Tannen, V.: Dynamic sketching for graph optimization problems with applications to cut-preserving sketches. In: FSTTCS (2015)Google Scholar
  6. 6.
    Bringmann, K., Kunnemann, M., Nusser, A.: Frechet distance under translation: conditional hardness and an algorithm via offline dynamic grid reachability. CoRR abs/1810.10982 (2018).
  7. 7.
    Dahlgaard, S.: On the hardness of partially dynamic graph problems and connections to diameter. In: 43rd International Colloquium on Automata, Languages, and Programming (2016)Google Scholar
  8. 8.
    Durfee, D., Gao, Y., Goranci, G., Peng, R.: Fully dynamic spectral vertex sparsifiers and applications. In: Proceedings of the thirtieth annual ACM symposium on Theory of computing, STOC 2019. ACM (2019)Google Scholar
  9. 9.
    Durfee, D., Kyng, R., Peebles, J., Rao, A.B., Sachdeva, S.: Sampling random spanning trees faster than matrix multiplication. In: Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pp. 730–742 (2017)Google Scholar
  10. 10.
    Eppstein, D.: Offline algorithms for dynamic minimum spanning tree problems. J. Algorithms 17(2), 237–250 (1994)MathSciNetCrossRefGoogle Scholar
  11. 11.
    Eppstein, D., Galil, Z., Italiano, G.F., Nissenzweig, A.: Sparsification-a technique for speeding up dynamic graph algorithms. J. ACM 44(5), 669–696 (1997)MathSciNetCrossRefGoogle Scholar
  12. 12.
    Eppstein, D., Galil, Z., Italiano, G.F., Spencer, T.H.: Separator-based sparsification II: edge and vertex connectivity. SIAM J. Comput. 28(1), 341–381 (2006)MathSciNetCrossRefGoogle Scholar
  13. 13.
    Fafianie, S., Hols, E.M.C., Kratsch, S., Quyen, V.A.: Preprocessing under uncertainty: matroid intersection. In: 41st International Symposium on Mathematical Foundations of Computer Science, MFCS 2016, vol. 58, pp. 35:1–35:14 (2016)Google Scholar
  14. 14.
    Fafianie, S., Kratsch, S., Quyen, V.A.: Preprocessing under uncertainty. In: 33rd Symposium on Theoretical Aspects of Computer Science, STACS 2016, vol. 47, pp. 33:1–33:13 (2016)Google Scholar
  15. 15.
    Goranci, G., Henzinger, M., Peng, P.: The power of vertex sparsifiers in dynamic graph algorithms. In: European Symposium on Algorithms (ESA), pp. 45:1–45:14 (2017)Google Scholar
  16. 16.
    Goranci, G., Henzinger, M., Peng, P.: Dynamic effective resistances and approximate schur complement on separable graphs. In: 26th Annual European Symposium on Algorithms, ESA 2018, vol. 112, pp. 40:1–40:15 (2018)Google Scholar
  17. 17.
    Goranci, G., Henzinger, M., Saranurak, T.: Fast incremental algorithms via local sparsifiers. CoRR (2018).
  18. 18.
    Holm, J., de Lichtenberg, K., Thorup, M.: Poly-logarithmic deterministic fully-dynamic algorithms for connectivity, minimum spanning tree, 2-edge, and biconnectivity. In: Proceedings of the thirtieth annual ACM symposium on Theory of computing, STOC 1998, pp. 79–89. ACM, New York (1998)Google Scholar
  19. 19.
    Holm, J., Rotenberg, E., Thorup, M.: Dynamic bridge-finding in \(\tilde{O}(\log ^2 n)\) amortized time. In: Symposium on Discrete Algorithms (SODA) (2018)Google Scholar
  20. 20.
    Holm, J., Rotenberg, E., Wulff-Nilsen, C.: Faster fully-dynamic minimum spanning forest. In: Bansal, N., Finocchi, I. (eds.) ESA 2015. LNCS, vol. 9294, pp. 742–753. Springer, Heidelberg (2015). Scholar
  21. 21.
    Hopcroft, J.E., Tarjan, R.E.: Dividing a graph into triconnected components. SIAM J. Comput. 2(3), 135–158 (1973)MathSciNetCrossRefGoogle Scholar
  22. 22.
    Huang, S.E., Huang, D., Kopelowitz, T., Pettie, S.: Fully dynamic connectivity in \(O(\log n(\log \log n)^2)\) amortized expected time. In: Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 510–520 (2017)Google Scholar
  23. 23.
    Kapron, B., King, V., Mountjoy, B.: Dynamic graph connectivity in polylogarithmic worst case time. In: SODA (2013)Google Scholar
  24. 24.
    Karczmarz, A., Łącki, J.: Fast and simple connectivity in graph timelines. In: Dehne, F., Sack, J.-R., Stege, U. (eds.) WADS 2015. LNCS, vol. 9214, pp. 458–469. Springer, Cham (2015). Scholar
  25. 25.
    Karger, D.R.: Minimum cuts in near-linear time. J. ACM 47(1), 46–76 (2000)MathSciNetCrossRefGoogle Scholar
  26. 26.
    Kopeliovich, S.: Offline solution of connectivity and \(2\)-edge-connectivity problems for fully dynamic graphs. Master’s thesis, Saint Petersburg State University (2012)Google Scholar
  27. 27.
    Kratsch, S., Wahlstrom, M.: Representative sets and irrelevant vertices: New tools for kernelization. In: Proceedings of the 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science, FOCS 2012, pp. 450–459 (2012)Google Scholar
  28. 28.
    Li, H., Patterson, S., Yi, Y., Zhang, Z.: Maximizing the number of spanning trees in a connected graph. CoRR abs/1804.02785 (2018).
  29. 29.
    Li, H., Zhang, Z.: Kirchhoff index as a measure of edge centrality in weighted networks: nearly linear time algorithms. In: Symposium on Discrete Algorithms (SODA), pp. 2377–2396 (2018)CrossRefGoogle Scholar
  30. 30.
    Łącki, J., Sankowski, P.: Reachability in graph timelines. In: ITCS (2013)Google Scholar
  31. 31.
    Molina, A., Sandlund, B.: Personal communicationGoogle Scholar
  32. 32.
    Patracscu, M., Demaine, E.D.: Lower bounds for dynamic connectivity. In: Proceedings of the thirty-sixth annual ACM symposium on Theory of computing, STOC 2004, pp. 546–553. ACM, New York (2004)Google Scholar
  33. 33.
    Peng, R., Sandlund, B., Sleator, D.D.: Offline dynamic higher connectivity. CoRR abs/1708.03812 (2017).
  34. 34.
    Thorup, M.: Near-optimal fully-dynamic graph connectivity. In: Proceedings of the Thirty-Second Annual ACM Symposium on Theory of omputing, STOC 2000, pp. 343–350, ACM, New York (2000)Google Scholar
  35. 35.
    Tsin, Y.H.: Yet another optimal algorithm for 3-edge-connectivity. J. Discrete Algorithms 7(1), 130–146 (2009)MathSciNetCrossRefGoogle Scholar
  36. 36.
    Wulff-Nilsen, C.: Fully-dynamic minimum spanning forest with improved worst-case update time. In: Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, STOC, pp. 1130–1143 (2017)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  • Richard Peng
    • 1
  • Bryce Sandlund
    • 2
    Email author
  • Daniel D. Sleator
    • 3
  1. 1.School of Computer ScienceGeorgia Institute of TechnologyAtlantaUSA
  2. 2.Cheriton School of Computer ScienceUniversity of WaterlooWaterlooCanada
  3. 3.Department of Computer ScienceCarnegie Mellon UniversityPittsburghUSA

Personalised recommendations