中文

Computing over Data Streams using Catalytic Space

数据结构与算法 2026-07-09 v1

摘要

We introduce a streaming model with \emph{catalytic memory}, an auxiliary workspace that must be returned to its initial state at the end of the computation. We show that catalytic space yields dramatic space savings for data stream algorithms. We first study the exact computation of frequency moments in insertion-only data streams. For every k1k\ge1, we give an exact four-pass algorithm for computing Fk\mathbb{F}_{k} using O(klogm)O(k\log m) clean space, where mm is the stream length. We also present a (k+1)(k+1)-pass algorithm with the same clean-space complexity that uses a factor of kk less catalytic space than the four-pass algorithm. For small moments, we obtain stronger results. In particular, we show that F2\mathbb{F}_{2} and F3\mathbb{F}_{3} can be computed exactly in two and three passes, respectively, using only O(logm)O(\log m) clean space. Additionally, we show that exact F0\mathbb{F}_{0} computation reduces to computing Fk\mathbb{F}_{k} for a suitably chosen large value of kk, resulting in an exact four-pass algorithm for F0\mathbb{F}_{0} using only O(logm)O(\log m) clean space. We further show how our frequency-moment algorithms can be used to exactly count induced occurrences of any fixed graph HH in a graph stream, yielding a four-pass algorithm that uses OH(logn)O_H(\log n) clean space, where nn is the number of vertices in the graph. As a special case, we obtain an exact three-pass algorithm for triangle counting using O(logn)O(\log n) clean space. All of our algorithms are multi-pass. We complement these algorithmic results with a matching limitation showing that catalytic memory does not provide additional power in the single-pass setting. Specifically, we prove that every randomized or deterministic single-pass streaming algorithm using ss bits of clean memory and catalytic space can be simulated in the standard streaming model, without catalytic memory, using O(s)O(s) space.

引用

@article{arxiv.2607.08559,
  title  = {Computing over Data Streams using Catalytic Space},
  author = {Ripley Becker and Sourav Chakraborty and Debarshi Chanda and A. Pavan and N. V. Vinodchandran},
  journal= {arXiv preprint arXiv:2607.08559},
  year   = {2026}
}