Skip to main content
QUICK REVIEW

[Paper Review] An Improved Randomized Data Structure for Dynamic Graph Connectivity

Zhengyu Wang|arXiv (Cornell University)|Oct 15, 2015
Complexity and Algorithms in GraphsComputer Science6 references13 citations
TL;DR

This paper presents a randomized dynamic graph connectivity data structure that improves worst-case update times by eliminating redundant randomness used in prior work. By introducing a novel invariant to maintain correctness with high probability—without requiring log n copies of the data structure—it achieves O(log³n) per edge insertion, O(log⁴n) per edge deletion, and O(log n / log log n) per query, outperforming the previous O(log⁴n) and O(log⁵n) bounds.

ABSTRACT

We present a randomized algorithm for dynamic graph connectivity. With failure probability less than $1/n^c$ (for any constant $c$ we choose), our solution has worst case running time $O(\log^3 n)$ per edge insertion, $O(\log^4 n)$ per edge deletion, and $O(\log n/\log\log n)$ per query, where $n$ is the number of vertices. The previous best algorithm has worst case running time $O(\log^4 n)$ per edge insertion and $O(\log^5 n)$ per edge deletion. The improvement is made by reducing the randomness used in the previous result, so that we save a $\log n$ factor in update time. Specifically, \cite{kapron2013dynamic} uses $\log n$ copies of a data structure in order to boost a success probability from $1/2$ to $1-n^{-c}$. We show that, in fact though, because of the special structure of their algorithm, this boosting via repetition is unnecessary. Rather, we can still obtain the same correctness guarantee with high probability by arguing via a new invariant, without repetition.

Motivation & Objective

  • To address the longstanding open problem of achieving polylogarithmic worst-case update time for dynamic graph connectivity in a deterministic setting.
  • To improve upon the state-of-the-art randomized algorithm by KKM13, which used log n copies of a data structure to boost success probability from 1/2 to 1 - 1/n^c.
  • To eliminate the need for repeated sampling by introducing a new structural invariant that ensures correctness with high probability without redundancy.
  • To reduce the worst-case update time for edge deletion from O(log⁵n) to O(log⁴n), and insertion from O(log⁴n) to O(log³n), while maintaining O(log n / log log n) query time.

Proposed method

  • Introduces a layered data structure where each layer maintains a spanning forest using dynamic trees, with probabilistic invariants governing tree merging.
  • Proposes a new invariant (Invariant 2) that ensures non-maximal trees on each layer are merged with partners with probability at least 1/2, maintaining correctness without repetition.
  • Replaces the prior approach of using log n independent copies of the data structure to amplify success probability, instead proving correctness via a probabilistic analysis of tree merging dynamics.
  • Employs a recursive update mechanism (Update(i,u)) that attempts to merge a tree with a partner in layer i, leveraging cutset queries to find reconnecting edges after deletions.
  • Uses Markov and Chernoff bounds to show that the number of non-maximal trees across layers decays exponentially, ensuring that the top layer F_ℓ is a spanning forest with high probability.
  • Applies a union bound over m = poly(n) operations to show that the outputs of the main algorithm and the layered simulation are identical with high probability.

Experimental results

Research questions

  • RQ1Can the success probability boost in randomized dynamic connectivity be achieved without using log n independent copies of the data structure?
  • RQ2Is there a structural invariant that can guarantee correctness with high probability while avoiding repeated sampling?
  • RQ3Can the worst-case update time for edge deletion be reduced from O(log⁵n) to O(log⁴n) using a more refined analysis?
  • RQ4Does a probabilistic invariant based on tree merging dynamics suffice to maintain correctness in the top layer without redundancy?
  • RQ5Can the dependency on repeated sampling be eliminated in the context of dynamic connectivity while preserving polylogarithmic worst-case bounds?

Key findings

  • The proposed algorithm achieves O(log³n) worst-case time per edge insertion, improving upon the prior O(log⁴n) bound.
  • The algorithm reduces worst-case edge deletion time to O(log⁴n), a significant improvement over the previous O(log⁵n) time.
  • Query operations are answered in O(log n / log log n) time, matching the best prior result.
  • The algorithm maintains correctness with failure probability less than 1/n^c for any constant c, without relying on log n copies of the data structure.
  • The key innovation is a new invariant that ensures high-probability correctness through structural properties rather than repetition, saving a log n factor in update time.
  • The analysis shows that the number of non-maximal trees across layers decays exponentially, leading to a spanning forest in the top layer with probability > 1 - 1/n^c.

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.