,
Nimrod Kaplan
,
Haim Kaplan
Creative Commons Attribution 4.0 International license
We introduce a streaming model that uses both catalytic and regular memory. In this model, we show how to exactly compute the frequency moments using a logarithmic number of bits of regular memory and a polynomial number of bits of catalytic memory. More generally, we show how to compute arbitrary polynomials of the item frequencies exactly within the same space bounds. As an application, we obtain catalytic streaming algorithms that exactly compute the number of distinct elements in a stream, count the number of triangles (or any other small subgraph) in a graph whose edges arrive in a stream, and identify heavy hitters. Our algorithms for frequency moments perform a constant number of passes over the stream, and for polynomial evaluation, we require one more pass than the degree of the polynomial. In particular, for the second moment, we perform three passes over the stream. By relating our catalytic streaming model to the catalytic communication model introduced in [Pyne et al., 2025], we show that catalytic memory is not useful for any one pass streaming algorithms. For lower bounds on multi pass streaming algorithms, the impossibility results of [Pyne et al., 2025] are not strong enough. However, using a different technique, we show that computing the second frequency moment cannot be achieved by a two pass catalytic streaming algorithm that satisfies certain natural assumptions.
@InProceedings{kaplan_et_al:LIPIcs.ESA.2026.70,
author = {Kaplan, Tamara and Kaplan, Nimrod and Kaplan, Haim},
title = {{Streaming with Catalytic Memory}},
booktitle = {34th Annual European Symposium on Algorithms (ESA 2026)},
pages = {70:1--70:21},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-445-1},
ISSN = {1868-8969},
year = {2026},
volume = {388},
editor = {Bille, Philip and Pettie, Seth and Storandt, Sabine},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ESA.2026.70},
URN = {urn:nbn:de:0030-drops-272060},
doi = {10.4230/LIPIcs.ESA.2026.70},
annote = {Keywords: Catalytic memory, streaming algorithms, frequency moments, space complexity, polynomial evaluation}
}