Streaming Algorithms for Graph K-Matching with Optimal or Near-Optimal Update Time

Jianer Chen, Qin Huang, Iyad Kanj, Qian Li, Ge Xia

TL;DR

This paper introduces new streaming algorithms for the graph k-matching problem. These algorithms achieve optimal or near-optimal space complexity while significantly improving update times, making them highly efficient for processing large, dynamic graph data.

What Problem Does This Paper Address?

Graph matching is a fundamental problem in computer science with applications in areas like resource allocation and network analysis. The "k-matching" variant focuses on finding a matching of exactly k edges. In the context of streaming algorithms, data arrives sequentially, and algorithms must process it with limited memory and fast update times. Previous work had achieved good space complexity but struggled with slow update times, especially for dynamic graphs (where edges can be added or deleted) and weighted graphs. This paper aims to bridge this gap by developing algorithms that are both space-efficient and offer significantly faster updates, particularly for weighted graphs and dynamic streams.

Methods

The paper presents two main contributions:

  • Insert-Only Model: For finding a maximum weighted k-matching in a graph where edges are only added, they propose a one-pass randomized algorithm. The core idea is to identify a "compact subgraph" of size O(k²) that is guaranteed to contain the maximum weighted k-matching. This is achieved using universal hashing and a technique called "interleaving executions" to maintain the O(1) update time.
  • Dynamic Model: For graphs where edges can be added or deleted, they develop a more sophisticated algorithm. This involves a novel hashing scheme that maps vertices to a smaller range with high probability, enabling efficient handling of edge operations. They also leverage "l0-samplers" (algorithms for sampling elements with specific properties) and a many-to-many mapping technique to achieve near-optimal update times of O(polylog(n)) while maintaining near-optimal space complexity. This approach is extended to weighted graphs, where the space complexity depends on the number of distinct edge weights (W).

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • The "Compact Subgraph" Insight: Identifying a small, representative subgraph that preserves the essential information for finding the k-matching is crucial for achieving efficiency in the insert-only model.
  • Many-to-Many Hashing: Moving beyond traditional partitioning-based hashing, a many-to-many mapping scheme allows for more compact representations and higher success probabilities, which is key for the dynamic model.
  • l0-Samplers for Weighted Graphs: Adapting l0-samplers, which are typically for unweighted scenarios, to handle edge weights is a significant step towards efficient weighted graph streaming.
  • Trade-off Between Space and Weight Diversity: The paper highlights that for dynamic weighted graph matching, space complexity is inherently tied to the number of distinct edge weights (W), suggesting this is a fundamental limitation.

Key Results

  • Insert-Only Model: An algorithm with optimal O(k²) space and optimal O(1) update time for maximum weighted k-matching. This significantly improves upon previous O(log k) update times for unweighted graphs.
  • Dynamic Model (Unweighted): A streaming algorithm with near-optimal O(k² polylog(n)) space and near-optimal O(polylog(n)) update time.
  • Dynamic Model (Weighted): A streaming algorithm with O(k²W polylog(n)) space and O(polylog(n)) update time, where W is the number of distinct edge weights. This is shown to be near-optimal in terms of space.
  • Approximation Algorithm: A byproduct is a streaming approximation algorithm for weighted k-matching with a factor of (1-ε) of the optimal weight, achieving O(polylog(n)) update time.

Limitations and Future Work

  • Space Complexity Dependency on W: For weighted graphs in the dynamic model, the space complexity O(k²W polylog(n)) can be large if W is large. The authors prove that this dependency on W is unavoidable for randomized streaming algorithms.
  • Approximation for Weighted Graphs: While an approximation algorithm is provided, further work could explore closing the gap between upper and lower bounds for exact weighted matching in the dynamic model.
  • Optimal Update Time for Dynamic Model: The paper poses the question of whether O(1) update time is achievable for the p-MATCHING problem in the dynamic model, which remains an open challenge.
  • Generalizing Hashing Scheme: The novel hashing scheme developed could have broader applications in other streaming graph problems.

Summary updated

BibTeX
@inproceedings{chen2021streaming,
  author = {Jianer Chen and Qin Huang and Iyad Kanj and Qian Li and Ge Xia},
  title = {{Streaming Algorithms for Graph K-Matching with Optimal or Near-Optimal Update Time}},
  booktitle = {ISAAC},
  year = {2021},
  url = {https://openreview.net/forum?id=P1gmhWqcUn},
}
Figure