Nondeterministic multi-pass streaming algorithms give covers #
A nondeterministic multi-pass streaming algorithm
(Cslib.Streaming.Nondeterministic.Algorithm σ α β) reads the stream several times from left to
right, like a deterministic one (Cslib.Streaming.MultiPass), but each update and each transition
at the end of a pass may lead to any of a set of memory states. Its memory is measured as in the
deterministic case: A.SpaceLE p m b says that the states held between items by some computation
during p passes over streams of at most m items have an injective b-bit encoding.
A function f is decided with answer z when, on the stream u x ++ v y, f x y = z holds
exactly when some computation of p passes ends in a state whose answer d maps to z. For
z = true this is a nondeterministic algorithm, which accepts when some computation accepts; for
z = false it is a co-nondeterministic one, which rejects when some computation rejects.
Computations that get stuck (an empty set of successors) neither accept nor reject, as usual for
nondeterministic machines; so $N^0(f)$ is $N^1$ of the negation of f.
Covers. For $p \ge 1$ passes, a computation on u x ++ v y is determined, as far as the two
players are concerned, by the $2p-1$ memory states at the boundaries between u x and v y: the
state after Alice's part of each pass, and the state at the start of each later pass. For a guess of
these states, the inputs x whose parts of the passes connect them form a set, and so do the inputs
y; their product is a rectangle on which f is z, and every pair with f x y = z lies in the
rectangle of the boundary states of an accepting computation. So f has a z-cover by
$2^{(2p-1)b}$ rectangles, and nondeterministic complexity at most $(2p-1)b$
(Cslib.Streaming.Nondeterministic.Algorithm.ecomplexityFun_le_of_spaceLE). Unlike the
deterministic simulation (Cslib.Streaming.MultiPass.ecomplexityFun_le_of_spaceLE), no final bit is
needed: the cover is checked, not computed. This adapts the one-pass reduction of Alon, Matias and
Szegedy [AlonMatiasSzegedy1999, Section 3] to p passes and to nondeterministic algorithms, with
nondeterministic communication complexity defined by covers as in
Cslib.Communication.Nondeterministic. For one pass, Das, Fraigniaud, Paz and Rosén give the
corresponding bound for streaming certification schemes, in which the algorithm receives a
certificate before the stream [DasFraigniaudPazRosen2025, Lemma 7].
Main definitions #
Cslib.Streaming.Nondeterministic.Algorithm: nondeterministic multi-pass streaming algorithms, withCslib.Streaming.Nondeterministic.Algorithm.passes(the states afterkpasses) andCslib.Streaming.Nondeterministic.Algorithm.answers.Cslib.Streaming.Nondeterministic.Algorithm.reachable,Cslib.Streaming.Nondeterministic.Algorithm.SpaceLE: the states reached duringppasses, and memory bounds.
Main results #
Cslib.Streaming.Nondeterministic.Algorithm.mem_passes_iff_exists_chain: the states afterkpasses overs ++ tare those reached through a chain of boundary states.Cslib.Streaming.Nondeterministic.Algorithm.ecomplexityFun_le_of_spaceLE:p-pass nondeterministic streaming memorybbounds nondeterministic communication by $(2p-1)b$.
References #
A nondeterministic multi-pass streaming algorithm over items of type α with answers in
β: memory states σ, an initial state, the possible states after reading one more item, the
possible states at the start of the next pass given the state at the end of a pass, and an answer
for each state.
Boundary states. A state is possible after k passes over s ++ t exactly when it ends a
chain of states st 0 = init, mid 0, st 1, …, mid (k - 1), st k in which each mid j is possible
after reading s from st j, and each st (j + 1) after finishing the pass on t from
mid j.
The memory states reachable during p passes over streams of length at most m: the states
possible between items during each pass, from its start to its end (before endPass).
Nondeterministic multi-pass streaming space bounds nondeterministic communication: if, for
$p \ge 1$, a nondeterministic p-pass streaming algorithm with b bits of memory on streams of
length at most m decides f with answer z on the streams u x ++ v y, which have length at
most m, that is, f x y = z exactly when some computation ends in a state whose answer d maps
to z, then the z-nondeterministic complexity of f is at most $(2p-1)b$. For z = true the
algorithm is nondeterministic and the bound is on N¹; for z = false it is co-nondeterministic
and the bound is on N⁰.