Space Optimal Vertex Cover in Dynamic Streams

Kheeran K. Naidu, Vihan Shah

Abstract

This paper resolves a long-standing logarithmic space complexity gap for finding an $\alpha$-approximate minimum vertex cover ($\alpha$MVC) in dynamic graph streams. By integrating a modified "Match-or-Sparsify" framework with randomized vertex partitioning and constant-sized counters, the authors present a randomized algorithm that uses $O(n^2/\alpha^2)$ bits of space. This result matches the known theoretical lower bound up to constant factors, effectively closing the complexity gap for this fundamental problem.

Introduction

In the analysis of massive datasets, the graph streaming model has become a standard for processing large-scale networks. In this model, a graph is presented as a sequence of edge updates. The "dynamic" variant of this model is particularly challenging, as it allows for both edge insertions and deletions (the turnstile model). The primary objective is to compute graph properties—such as the Minimum Vertex Cover (MVC)—while maintaining a memory footprint significantly smaller than the size of the entire graph.

Finding the exact MVC is a classic NP-hard problem. Consequently, research focuses on finding an $\alpha$-approximation ($\alpha$MVC). Until recently, the most efficient algorithm for $\alpha$MVC in dynamic streams required $O(\frac{n^2}{\alpha^2} \cdot \log \alpha)$ bits of space. However, theoretical lower bounds suggested that $\Omega(n^2/\alpha^2)$ bits should be sufficient. This paper successfully eliminates that logarithmic overhead, providing a space-optimal solution.

Algorithmic Framework: Match-or-Sparsify

The authors achieve space optimality through a two-phased strategy that bifurcates graph instances into "easy" and "hard" cases based on the size of a greedy matching.

Phase 1: The Filter

The algorithm first attempts to identify a large matching—a set of edges that do not share any endpoints. This is done using a modified version of the "Match-or-Sparsify" technique.

  • The Easy Case: If the algorithm identifies a matching of size at least $n/8\alpha$, the problem becomes trivial. Since any vertex cover must include at least one endpoint from every edge in a matching, a large matching implies a large optimal vertex cover. In this scenario, simply returning the set of all $n$ vertices provides a valid $\alpha$-approximation.
  • The Hard Case: If a large matching cannot be found, the "Match-or-Sparsify" analysis guarantees that the remaining "residual" graph is sparse. This sparsity is the key structural property exploited in the second phase.

Phase 2: Randomized Partitioning and Constant-Sized Counters

To handle the sparse residual graph in the "hard" case, the authors employ a randomized partitioning strategy:

  1. Vertex Grouping: The $n$ vertices are partitioned into $n/\alpha$ distinct groups.
  2. Edge Counting: The algorithm maintains counters to track the number of edges existing between these groups.
  3. Space Optimization: In previous literature, these counters required $O(\log n)$ bits. However, the authors prove that in the "hard" case, the number of edges between any two groups is bounded by a small constant with high probability. This allows the use of constant-sized counters (storing values modulo a small constant), which removes the $O(\log \alpha)$ factor from the total space complexity.

Key Innovations

Neighborhood Edge Sampling

A critical technical contribution is the shift from uniform edge sampling to "neighborhood edge sampling." By sampling an edge incident to a randomly selected vertex, the algorithm introduces a bias away from high-degree vertices. This provides much stronger guarantees regarding the sparseness of the residual graph across the entire range of $\alpha$, which was a limiting factor in prior approaches.

Eliminating the Logarithmic Overhead

The transition from $O(\log n)$ bit counters to constant-sized counters represents the primary breakthrough in achieving the lower bound. By proving that the "hard" case residual graph is sufficiently sparse that group-to-group edge counts rarely exceed a small threshold, the authors demonstrate that the extra logarithmic bits were redundant information.

Results and Impact

The paper establishes a randomized algorithm for $\alpha$MVC using $O(n^2/\alpha^2)$ bits of space. This result is significant for several reasons:

  • Optimality: It matches the lower bound established by Dark and Konrad (2020), resolving the space complexity for the entire range of $\alpha \leq n^{1-\delta}$.
  • Robustness: The algorithm succeeds with high probability ($1 - 1/poly(n)$) and is fully compatible with the turnstile model, where edges are frequently deleted.
  • Theoretical Closure: It provides a definitive answer to the space requirements of one of the most studied problems in graph streaming.

Future Directions

While this work closes the gap for randomized algorithms, the authors note that the best deterministic algorithm still possesses a $\log \alpha$ overhead. Determining whether this gap is inherent to determinism remains an open question. Furthermore, the techniques developed here—specifically the use of constant-sized counters for sparse residual structures—may be applicable to other dynamic streaming problems such as Dominating Set or Spectral Sparsification, which currently still exhibit logarithmic gaps between their upper and lower bounds.

Summary updated

BibTeX
@inproceedings{naidu2022space,
  author = {Kheeran K. Naidu and Vihan Shah},
  title = {{Space Optimal Vertex Cover in Dynamic Streams}},
  booktitle = {APPROX/RANDOM},
  year = {2022},
  url = {https://openreview.net/forum?id=87kTC6LdOaS},
}
Figure