Dynamic Graph Stream Algorithms in $o(n)$ Space

Zengfeng Huang, Pan Peng

TL;DR

This paper breaks the long-standing $\Omega(n)$ space barrier for graph algorithms in the dynamic streaming model. By combining vertex sampling with linear sketching, the authors provide the first $o(n)$ space algorithms for estimating connected components and MST weights, as well as for approximate testing of fundamental graph properties like connectivity and bipartiteness.

What Problem Does This Paper Address?

In the world of "Big Data," graphs like social networks or web links are often too massive to store in memory. Researchers use the streaming model, where an algorithm sees a sequence of edges one by one and must maintain a tiny "sketch" of the graph. In the dynamic version of this model, edges can be both inserted and deleted.

For years, the gold standard for these algorithms was "semi-streaming," which uses $\tilde{O}(n)$ space (where $n$ is the number of vertices). While this is better than storing all $n^2$ possible edges, it is still prohibitively expensive when $n$ is in the billions or when the graph is very sparse. Many researchers believed $\Omega(n)$ space was a fundamental floor for most useful graph problems. This paper asks: can we do better? Can we solve meaningful graph problems using sublinear space in the number of vertices ($o(n)$)?

Methods

The authors achieve these space savings by shifting the goal from exact answers to approximations and property testing. Their approach relies on two main pillars:

  1. Vertex Sampling Framework: Instead of looking at the whole graph, the algorithm samples a subset of vertices $S$. If a connected component is small, there is a good chance all its vertices will be sampled.
  2. Linear Sketching: To handle edge deletions, the authors use sophisticated mathematical tools like AGM sketches (to find spanning forests) and AMS sketches (to check if a set of vertices has any edges connecting to the rest of the graph).

The core logic is clever: the algorithm first finds connected components within the sampled subgraph $G[S]$. It then uses a second set of sketches to verify if these sampled components are "isolated" in the original graph $G$. By counting these small, isolated components, they can estimate global properties of the entire graph.

Datasets

As a theoretical computer science paper, this work does not use empirical datasets. Instead, the authors provide rigorous mathematical proofs of their algorithms' performance and use reductions from the Boolean Hidden Hypermatching (BHH) problem to establish space lower bounds.

Key Insights and Ideas

  • Small Components are Key: To estimate the number of connected components with an additive error of $\varepsilon n$, you only really need to count the small components (size $\leq 1/\varepsilon$). Large components are rare enough that they don't swing the total count significantly.
  • Approximate Property Testing: The authors initiate the study of "approximate" testing in dynamic streams. Instead of asking "Is this graph connected?", they ask "Is this graph connected, or is it $\varepsilon$-far from being connected?" (meaning you'd have to add many edges to fix it). This relaxation is what makes $o(n)$ space possible.
  • The $\varepsilon$ Trade-off: The space complexity typically looks like $\tilde{O}(n^{1-\varepsilon})$. This shows a direct trade-off: if you want a very accurate answer (small $\varepsilon$), you need more space, but you can always stay below the $O(n)$ barrier for any constant $\varepsilon > 0$.

Key Results

The paper provides a suite of new algorithms that beat the $O(n)$ space barrier. The most significant results are summarized in the table below:

Upper and lower bounds of streaming testers.
  • Connected Components: They provide an algorithm to estimate the number of components within an additive error of $\varepsilon n$ using $o(n)$ space.
  • Minimum Spanning Tree (MST): For graphs with bounded edge weights, they achieve a $(1+\varepsilon)$-approximation of the MST weight in $o(n)$ space, improving upon previous $O(n)$ methods.
  • Property Testing: They show that properties like $k$-edge connectivity, cycle-freeness, and bipartiteness (for planar graphs) can all be tested in roughly $\tilde{O}(n^{1-\varepsilon})$ space.
  • Lower Bounds: They prove that the dependence on $\varepsilon$ is necessary; you cannot achieve these results without using space that grows as $\varepsilon$ shrinks.

Limitations and Future Work

While groundbreaking, the $o(n)$ approach has specific constraints:

  • Additive vs. Multiplicative Error: Estimating connected components with small multiplicative error still requires $\Omega(n)$ space, as it's essentially as hard as exact connectivity testing.
  • Weight Constraints: The MST result only holds for graphs where the ratio between the maximum and minimum edge weights is bounded. If weights can be arbitrarily large (e.g., $\log n$), $\Omega(n)$ space is still required.
  • Graph Types: The sublinear bipartiteness tester is currently limited to planar graphs. Extending this to general graphs remains an open challenge.

Summary updated

BibTeX
@article{huang2019dynamic,
  author = {Zengfeng Huang and Pan Peng},
  title = {{Dynamic Graph Stream Algorithms in $o(n)$ Space}},
  journal = {Algorithmica},
  year = {2019},
  doi = {10.1007/s00453-018-0520-8},
}
Figure