English

Weighted Matching in a Poly-Streaming Model

Data Structures and Algorithms 2025-07-21 v1 Distributed, Parallel, and Cluster Computing

Abstract

We introduce the poly-streaming model, a generalization of streaming models of computation in which kk processors process kk data streams containing a total of NN items. The algorithm is allowed O(f(k)M1)O\left(f(k)\cdot M_1\right) space, where M1M_1 is either o(N)o\left(N\right) or the space bound for a sequential streaming algorithm. Processors may communicate as needed. Algorithms are assessed by the number of passes, per-item processing time, total runtime, space usage, communication cost, and solution quality. We design a single-pass algorithm in this model for approximating the maximum weight matching (MWM) problem. Given kk edge streams and a parameter ε>0\varepsilon > 0, the algorithm computes a (2+ϵ)\left(2+\epsilon\right)-approximate MWM. We analyze its performance in a shared-memory parallel setting: for any constant ε>0\varepsilon > 0, it runs in time O~(Lmax+n)\widetilde{O}\left(L_{\max}+n\right), where nn is the number of vertices and LmaxL_{\max} is the maximum stream length. It supports O(1)O\left(1\right) per-edge processing time using O~(kn)\widetilde{O}\left(k\cdot n\right) space. We further generalize the design to hierarchical architectures, in which kk processors are partitioned into rr groups, each with its own shared local memory. The total intergroup communication is O~(rn)\widetilde{O}\left(r \cdot n\right) bits, while all other performance guarantees are preserved. We evaluate the algorithm on a shared-memory system using graphs with trillions of edges. It achieves substantial speedups as kk increases and produces matchings with weights significantly exceeding the theoretical guarantee. On our largest test graph, it reduces runtime by nearly two orders of magnitude and memory usage by five orders of magnitude compared to an offline algorithm.

Keywords

Cite

@article{arxiv.2507.14114,
  title  = {Weighted Matching in a Poly-Streaming Model},
  author = {Ahammed Ullah and S. M. Ferdous and Alex Pothen},
  journal= {arXiv preprint arXiv:2507.14114},
  year   = {2025}
}

Comments

40 pages, ESA 2025

R2 v1 2026-07-01T04:08:17.033Z