Papers
Topics
Authors
Recent
Search
2000 character limit reached

Random Window Discriminators

Updated 6 February 2026
  • Random window discriminators are sliding-window branching programs (SWBPs) that use only the last t input bits to determine state transitions, ensuring memory-constrained computation.
  • They support the construction of pseudorandom generators with near-optimal seed lengths by employing extractor-based and combinatorial rectangle techniques to balance seed length and error.
  • Their design enables deterministic simulations of probabilistic models, such as cellular automata, thus advancing derandomization strategies in low-space algorithm design.

A random window discriminator, also known as a sliding-window branching program (SWBP), is a class of read-once branching program whose current state depends only on the last tt input bits seen, for a fixed window size tt. The SWBP formalism provides a structure for modeling sliding-window algorithms operating under space constraints, particularly when analyzing the construction and derandomization of low-space randomized algorithms. Pseudorandom generators (PRGs) for SWBPs offer near-optimal seed lengths and error resilience, enabling efficient deterministic simulations of probabilistic models such as sublinear-time cellular automata. These results connect the structural properties of SWBPs, PRG construction techniques, and applications to derandomization in computational complexity (Modanese, 2023).

1. Formal Definition and Structural Properties

A sliding-window branching program SS of window size tt, length nn, and width ww is a read-once (unanimity) branching program where, at each layer ii (1in)(1 \leq i \leq n), the transition function

Si:Q×{0,1}QS_i : Q \times \{0,1\} \rightarrow Q

depends only on the last tt inputs. More precisely, for iti \geq t and any states q,qQq, q' \in Q and input history y{0,1}ty \in \{0,1\}^t,

Si(q,y)=Si(q,y),S_i(q, y) = S_i(q', y),

meaning any two runs reading the identical length-tt suffix will synchronize in their next transition regardless of the prior state.

Acceptance in an SWBP is defined by unanimity: the SWBP accepts an input if and only if every state visited (across all nn steps) is marked accepting.

Structurally, an SWBP can be characterized via de Bruijn graphs of order tt. After layer tt, the state progression is determined only by the last tt bits, and the number of possible states ww is at most 2t2^t (excluding dead states). The state at layer ii is a function

αi(xit+1xi)\alpha_i(x_{i-t+1} \ldots x_i)

for iti \geq t and αi(x1xi)\alpha_i(x_1 \ldots x_i) for i<ti < t [(Modanese, 2023), Theorem 2.1].

2. Pseudorandom Generators for SWBPs: Construction and Analysis

Given a base PRG Gbase:{0,1}dbase{0,1}tG_\mathrm{base} : \{0,1\}^{d_\mathrm{base}} \to \{0,1\}^t that εbase\varepsilon_\mathrm{base}-fools width-ww, length-tt unanimity programs, the objective is to stretch this output to length ntn \gg t, preserving pseudorandomness against all width-ww, length-nn, window-tt SWBPs.

Construction G1G_1 (INW-style with extractor):

  • Seed Length:

d1=2dbase+O(log(n/t)log(1/εbase))d_1 = 2 d_\mathrm{base} + O(\log(n/t) \log(1/\varepsilon_\mathrm{base}))

  • Error:

ε1=εbase(n/t)O(1)\varepsilon_1 = \varepsilon_\mathrm{base} \cdot (n/t)^{O(1)}

  • Technique: Shatters the SWBP computation into m=n/tm = n/t blocks of length tt, separated by dedicated blocks, and uses an extractor (Goldreich–Wigderson) to re-seed the base PRG, allowing simultaneous fooling of $2m$ subprograms. Interleaved construction ensures global sliding-window property.

Construction G2G_2 (Combinatorial-rectangle PRG):

  • Seed Length:

d2=O(dbase+log(n/t)+(log(1/εbase))3/2)d_2 = O(d_\mathrm{base} + \log(n/t) + (\log(1/\varepsilon_\mathrm{base}))^{3/2})

  • Error:

ε2=O(εbasen/t)\varepsilon_2 = O(\varepsilon_\mathrm{base} n/t)

  • Technique: Concatenates r=n/tr = n/t independent outputs of the base PRG, using a combinatorial-rectangle PRG (e.g., Lu–Potukuchi or Gopalan–Yehudayoff) to reduce the cumulative seed length while controlling the error blowup.

A further optimized variant of G2G_2 using the Gopalan–Yehudayoff rectangle-PRG achieves

d2=O((dbase+loglog(n/t)+log(1/εbase))log(dbase+log(1/εbase)))d'_2 = O\left((d_\mathrm{base} + \log\log(n/t) + \log(1/\varepsilon_\mathrm{base})) \log(d_\mathrm{base} + \log(1/\varepsilon_\mathrm{base}))\right)

with ε2=O(εbasen/t)\varepsilon_2 = O(\varepsilon_\mathrm{base} n/t).

The table below summarizes the key differences between G1G_1 and G2G_2:

Generator Seed Length Error
G1G_1 (INW + extractor) 2dbase+O(log(n/t)log(1/εbase))2 d_\mathrm{base} + O(\log(n/t) \log(1/\varepsilon_\mathrm{base})) εbase(n/t)O(1)\varepsilon_\mathrm{base} (n/t)^{O(1)}
G2G_2 (Rectangle-PRG) O(dbase+log(n/t)+(log(1/εbase))3/2)O(d_\mathrm{base} + \log(n/t) + (\log(1/\varepsilon_\mathrm{base}))^{3/2}) O(εbasen/t)O(\varepsilon_\mathrm{base} n/t)

3. SWBP Derandomization Techniques

The construction of PRGs for SWBPs leverages two techniques:

  • Interleaving plus Extractor: Block-splits the program, enables low entropy loss via extractor-based re-seeding, and utilizes interleaving to match the sliding-window dependency.
  • Combinatorial Rectangle PRGs: Allows for compact multi-seeding of the base PRG across program blocks, employing combinatorial-rectangle generators to minimize seed length while maintaining error control.

A key lemma supporting the extractor-based approach states that, given a PRG that mm-simultaneously ε\varepsilon-fools tt-block subprograms, extension to $2m$ via extractor-split seeds can 3ε3\varepsilon-fool $2m$ blocks with marginal additional seed overhead.

Rectangle-PRG techniques asymptotically optimize the seed at the expense of a linear blowup in error by the number of subprograms, which is later controlled by parameter selection.

4. Applications to Probabilistic Cellular Automata

A probabilistic cellular automaton (PACA) is a one-dimensional automaton on nn cells, each updated stochastically at each timestep using two local rules δ0,δ1\delta_0, \delta_1. Each cell, per step, selects a rule based on a fair coin and applies it to its 3-neighborhood. The system accepts if, within TT steps, all cells reach an accepting state.

Any TT-step PACA can be simulated by a randomized sliding-window algorithm of window size O(T2)O(T^2) and space O(TlogQ)O(T \log|Q|), where Q|Q| is the cell alphabet size. This simulation, composed with an SWBP PRG, yields deterministic deciders for the PACA's accepted language.

  • One-sided error PACA (analogous to RP\mathsf{RP}): Any such process of runtime T(n)(logn)1.01T(n) \geq (\log n)^{1.01} is deterministically decidable in space O(T)O(T).
  • Two-sided error PACA (analogous to BPP\mathsf{BPP}): For any TT, deterministic decision is possible in space O~(T)+O(logn)\widetilde{O}(T) + O(\log n). This improves prior bounds for TlognT \ll \sqrt{\log n} relative to Armoni-PRG approaches.

Both results are achieved by exhaustive enumeration of PRG seeds, with total simulation space proportional to the requisite seed length.

5. Trade-offs and Implications

The two PRG constructions for SWBPs present trade-offs:

  • G1G_1 yields superior dependence on log(1/ε)\log(1/\varepsilon) in the seed length but incurs worse dependence in log(n/t)\log(n/t).
  • G2G_2 achieves better scaling in log(n/t)\log(n/t) but linearly inflates the error by n/tn/t.

Seed lengths are nearly optimal in logw\log w, log(1/ε)\log (1/\varepsilon), and logt\log t, outperforming general branching-program PRGs when tnt \ll n.

A plausible implication is that, for randomized low-space algorithms with strong sliding-window locality, these PRG constructions provide more efficient deterministic simulation strategies than previously possible for general branching programs. This suggests sliding-window constraints can be exploited to surpass traditional derandomization resource bounds for suitable computational classes (Modanese, 2023).

6. Connections to Broader Complexity Theory

Random window discriminators (SWBPs) embody structured memory-limited computation analogous to a class of sliding-window algorithms, allowing direct mapping to models such as probabilistic cellular automata. The overlay of PRGs with optimal seed complexity for SWBPs enables sublinear-space deterministic computation for problems previously tractable only via randomness under tight space budgets.

The explicit connection to de Bruijn graphs highlights the fundamental role of local-historical dependency in state-space growth and influences the analysis of algorithmic complexity within the sliding-window model.

The SWBP framework, as developed by Modanese, expands the toolbox for derandomization in streaming and automata contexts, with consequences for understanding the boundaries between probabilistic and deterministic small-space computation (Modanese, 2023).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Random Window Discriminators.