Approximating matching size from random streams

Michael Kapralov, Sanjeev Khanna, Madhu SudanSODA 2014

TL;DR

This paper presents the first streaming algorithm that can approximate the size of a maximum matching in a graph using only polylogarithmic space and a single pass over the edges, assuming the edges arrive in a random order. This is a significant improvement over previous algorithms that either required much more space or more passes.

What Problem Does This Paper Address?

The problem is to estimate the size of a maximum matching in a large, unweighted graph. A matching is a set of edges where no two edges share a vertex. A maximum matching is a matching with the largest possible number of edges. In the context of streaming algorithms, we have limited memory and can only make one or a few passes over the data. Traditionally, approximating the maximum matching size in a streaming setting has been challenging. While constant factor approximations are possible with linear space, and polylogarithmic approximations with more passes, achieving both polylogarithmic space and a polylogarithmic approximation factor in a single pass was an open problem. This paper tackles this challenge, specifically for graphs where edges arrive in a random order.

Methods

The core of the paper is a novel "local" algorithm that is then adapted for the streaming setting. The local algorithm works by iteratively "peeling" layers of vertices based on their degree in progressively smaller induced subgraphs. The idea is that if a graph has a large matching, one of these induced subgraphs will be "dense" in a specific way.

The adaptation to the streaming setting involves two main challenges:

  1. Estimating subgraph densities: Instead of exact counts, the algorithm uses random sampling to estimate the number of edges in these induced subgraphs. This relies heavily on the assumption of random edge arrival order.
  2. Handling probabilistic tests: The sampling-based tests for vertex membership in different layers are probabilistic. The analysis carefully handles these probabilities, even though the tests are interdependent due to the sampling process. They achieve this by first analyzing the algorithm in a hypothetical "i.i.d." (independent and identically distributed) sampling model and then reducing the real random permutation model to the i.i.d. case.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithms for general graphs.

Key Insights and Ideas

  • Local algorithms as a blueprint for streaming: The paper demonstrates how a carefully designed local algorithm can be transformed into a space-efficient streaming algorithm, even when the conversion is not straightforward.
  • The power of random order: The random arrival of edges is crucial. It allows for effective random sampling to estimate properties of subgraphs, which is key to achieving the polylogarithmic space bound.
  • Probabilistic analysis is key: The algorithm's correctness relies on sophisticated probabilistic arguments to handle the inherent uncertainty in sampling-based tests.
  • "Gap-Matching" as a building block: The problem is framed as a "Gap-Matching" problem, which is a decision problem (does a matching of size at least U exist, or is it at most U/g?). This framing simplifies the analysis and allows for constructing the approximation algorithm by solving multiple gap instances.

Key Results

  • A streaming algorithm that makes one pass over the edges of an unweighted graph.
  • The algorithm uses only polylogarithmic space.
  • It provides a polylogarithmic approximation to the size of the maximum matching.
  • This is achieved under the assumption that edges arrive in a random order.

Limitations and Future Work

  • Random order assumption: The current algorithm critically relies on the edges arriving in a random order. A significant open question is whether a similar result can be achieved for adversarial edge arrivals.
  • Approximation factor: While polylogarithmic approximation is a breakthrough, achieving a constant factor approximation in polylogarithmic space (even with more passes) remains an interesting challenge.
  • Generalizing to other graph problems: The techniques developed here might be applicable to other graph problems in the streaming model.

Summary updated

BibTeX
@inproceedings{kapralov2014approximating,
  author = {Michael Kapralov and Sanjeev Khanna and Madhu Sudan},
  title = {{Approximating matching size from random streams}},
  booktitle = {SODA},
  year = {2014},
  doi = {10.1137/1.9781611973402.55},
}
Figure