Streaming algorithms give one-way protocols #
A streaming algorithm with b bits of memory turns into a one-way protocol: Alice runs it on her
part u x of the stream and sends the b-bit encoding of the memory state, and Bob decodes the
state, runs the algorithm on his part v y and announces the answer
(Cslib.Streaming.Algorithm.toProtocol). So if the answer on u x ++ v y determines f x y,
then f has communication complexity at most b + 1, deterministically
(Cslib.Streaming.Algorithm.ecomplexityFun_le_of_spaceLE) and, for randomized streaming
algorithms, with public coins and the same error
(Cslib.Streaming.Randomized.ecomplexityFun_le_of_spaceLE). This is the reduction behind the
streaming lower bounds of Alon, Matias and Szegedy [AlonMatiasSzegedy1999, Section 3]. Only the
memory reachable on Alice's streams needs an encoding; Bob's decoder inverts it on these states.
Main definitions #
Cslib.Streaming.Algorithm.toProtocol: the one-way protocol simulating a streaming algorithm.
Main results #
Cslib.Streaming.Algorithm.depth_toProtocol_le,Cslib.Streaming.Algorithm.run_toProtocol: it sendsb + 1bits and answers as the streaming algorithm.Cslib.Streaming.Algorithm.ecomplexityFun_le_of_spaceLE,Cslib.Streaming.Randomized.ecomplexityFun_le_of_spaceLE: streaming memory bounds deterministic and public-coin communication.
References #
The one-way protocol in which Alice runs A on the stream u x, sends the b-bit encoding
of its memory state, and Bob decodes it, continues the run on v y and announces d of the
answer. Bob decodes by inverting enc on the states reachable on streams of at most m items.
When enc is injective on the states reachable on streams of at most m items and Alice's
stream has at most m items, the simulating protocol answers as the streaming algorithm on the
concatenated stream.
Streaming space bounds communication (deterministic): if a streaming algorithm with b
bits of memory on streams of length at most m decides f x y from its answer on the stream
u x ++ v y, whenever u x has length at most m, then f has a deterministic protocol with
b + 1 bits.
Streaming space bounds communication (public coins): if a randomized streaming algorithm
μ whose algorithms use at most b bits of memory on streams of length at most m decides
f x y with error ε from its answer on u x ++ v y, whenever u x has length at most m, then
f has a public-coin protocol with error ε and b + 1 bits.