Skip to main content
QUICK REVIEW

[Paper Review] Faster Worst Case Deterministic Dynamic Connectivity

Casper Kejlberg-Rasmussen, Tsvi Kopelowitz|arXiv (Cornell University)|Jul 21, 2015
Complexity and Algorithms in GraphsComputer Science23 references8 citations
TL;DR

This paper presents a deterministic dynamic connectivity data structure for undirected graphs with worst-case update time $ Oig( esizebox{\textwidth}{\!}{\displaystyle\sqrt{\frac{n(\log\log n)^2}{\log n}}}\big) $ and constant query time, improving upon the longstanding $ O(\sqrt{n}) $ bound from Frederickson (1983) and Eppstein et al. (1997). The approach uses a novel hierarchical decomposition with compressed adjacency matrices and efficient word-level operations to achieve faster worst-case performance without amortization or randomization.

ABSTRACT

We present a deterministic dynamic connectivity data structure for undirected graphs with worst case update time $O\left(\sqrt{\frac{n(\log\log n)^2}{\log n}} ight)$ and constant query time. This improves on the previous best deterministic worst case algorithm of Frederickson (STOC 1983) and Eppstein Galil, Italiano, and Nissenzweig (J. ACM 1997), which had update time $O(\sqrt{n})$. All other algorithms for dynamic connectivity are either randomized (Monte Carlo) or have only amortized performance guarantees.

Motivation & Objective

  • To close the long-standing gap in worst-case deterministic dynamic connectivity by improving the $ O(\sqrt{n}) $ update time bound established in 1983 and 1997.
  • To provide a deterministic solution with worst-case performance guarantees, avoiding the pitfalls of randomized algorithms such as false negatives or high space usage.
  • To achieve sub-$ \sqrt{n} $ update time for dynamic connectivity while maintaining constant query time and deterministic operation.
  • To design a data structure that is suitable for online applications requiring bounded latency per operation, unlike amortized structures.
  • To extend the applicability of dynamic connectivity to dense graphs using sparsification and word-level compression techniques.

Proposed method

  • The data structure uses a hierarchical decomposition of the graph into superchunks, each managing a subset of edges via compressed adjacency matrices.
  • Adjacency matrices between clusters are encoded using row-major order with fields storing row and column indices, packed efficiently using $ O(\log h) $-bit fields per word.
  • Operations on the compressed matrices—such as checking edge existence, setting rows to zero, or incrementing row indices—are performed in $ O(\log h) $ time via binary search and bit manipulation on packed words.
  • Transposition of adjacency matrices is achieved by swapping row and column indices in each field and sorting the fields using Batcher’s bitonic sort, with time complexity $ O(x(\log^2(w/\log h) + \log x \log(w/\log h))) $ for $ x $ words.
  • Splitting and joining superchunks are handled by converting matrices to row-major order, then performing operations in $ O(K\log h + J + (Kh/w)\log h) $ time, where $ K $ is the number of chunks and $ J $ the number of clusters.
  • Optimal parameters are set via trade-off analysis: $ h = \log n $, $ K = \sqrt{\hat{m}/(\log n (\log\log n)^2)} $, yielding $ O\big(\sqrt{\hat{m}(\log\log n)^2 / \log n}\big) $ update time.

Experimental results

Research questions

  • RQ1Can the worst-case deterministic update time for dynamic connectivity be improved beyond the $ O(\sqrt{n}) $ bound from 1983 and 1997?
  • RQ2Is it possible to achieve sub-$ \sqrt{n} $ worst-case update time for dynamic connectivity using only deterministic operations and standard word operations?
  • RQ3Can a deterministic dynamic connectivity structure maintain constant query time while achieving faster update times than previous deterministic algorithms?
  • RQ4How can adjacency matrices be compressed and operated on efficiently at the word level to reduce update time in dynamic connectivity?
  • RQ5Can the space usage be kept within $ O(m) $ while achieving improved worst-case update time, avoiding the $ \Omega(n\log^2 n) $ space of prior randomized algorithms?

Key findings

  • The paper achieves a worst-case update time of $ O\big(\sqrt{\frac{n(\log\log n)^2}{\log n}}\big) $, which is asymptotically faster than the previous best deterministic bound of $ O(\sqrt{n}) $.
  • The query time is constant, matching the best previous results, while maintaining worst-case guarantees without amortization or randomization.
  • The improvement holds for all graph densities, including dense graphs, via the sparsification technique of Eppstein et al. (1997).
  • The data structure uses only standard $ AC^0 $ operations (shifts, bitwise operations, additions) and does not assume unit-time multiplication.
  • The algorithm avoids the false negative and witness disclosure problems of prior randomized algorithms, such as those by Kapron et al. (2013).
  • The space complexity is linear in the number of edges, $ O(m) $, avoiding the superlinear $ \Omega(n\log^2 n) $ space of previous randomized algorithms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.