English

Semi-Streaming Algorithms for Hypergraph Matching

Data Structures and Algorithms 2025-07-09 v2

Abstract

We propose two one-pass streaming algorithms for the NP\mathcal{NP}-hard hypergraph matching problem. The first algorithm stores a small subset of potential matching edges in a stack using dual variables to select edges. It has an approximation guarantee of 1d(1+ε)\frac{1}{d(1+\varepsilon)} and requires O((nε)log2n)\mathcal{O}((\frac{n}{\varepsilon}) \log^2{n}) bits of memory, where nn is the number of vertices in the hypergraph, dd is the maximum number of vertices in a hyperedge, and ϵ>0\epsilon > 0 is a parameter to be chosen. The second algorithm computes, stores, and updates a single matching as the edges stream, with an approximation ratio dependent on a parameter α\alpha. Its best approximation guarantee is 1(2d1)+2d(d1)\frac{1}{(2d-1) + 2 \sqrt{d(d-1)}}, and it requires only O(n)\mathcal{O}(n) memory. We have implemented both algorithms and compared them with respect to solution quality, memory consumption, and running times on two diverse sets of hypergraphs with a non-streaming greedy and a naive streaming algorithm. Our results show that the streaming algorithms achieve much better solution quality than naive algorithms when facing adverse orderings. Furthermore, these algorithms reduce the memory required by a factor of 13 in the geometric mean on our test problems, and also outperform the offline Greedy algorithm in running time.

Keywords

Cite

@article{arxiv.2502.13636,
  title  = {Semi-Streaming Algorithms for Hypergraph Matching},
  author = {Henrik Reinstädtler and S M Ferdous and Alex Pothen and Bora Uçar and Christian Schulz},
  journal= {arXiv preprint arXiv:2502.13636},
  year   = {2025}
}