Computing over Data Streams using Catalytic Space

Abstract

We introduce a streaming model with 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 k1, we give an exact four-pass algorithm for computing Fk using O(k m) clean space, where m is the stream length. We also present a (k+1)-pass algorithm with the same clean-space complexity that uses a factor of k less catalytic space than the four-pass algorithm. For small moments, we obtain stronger results. In particular, we show that F2 and F3 can be computed exactly in two and three passes, respectively, using only O( m) clean space. Additionally, we show that exact F0 computation reduces to computing Fk for a suitably chosen large value of k, resulting in an exact four-pass algorithm for F0 using only O( m) clean space. We further show how our frequency-moment algorithms can be used to exactly count induced occurrences of any fixed graph H in a graph stream, yielding a four-pass algorithm that uses OH( n) clean space, where n is the number of vertices in the graph. As a special case, we obtain an exact three-pass algorithm for triangle counting using O( 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 s bits of clean memory and catalytic space can be simulated in the standard streaming model, without catalytic memory, using O(s) space.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…