what is the size of the smallest data structure maintaining the answer to the Boolean query "is the word in $L$?"
Karp (67): consider infinite automata, the size is
$$n \mapsto \textrm{ number of states reachable by reading at most } n \textrm{ letters}$$
language
deterministic online space complexity
regular
constant
$\{w \mid |w|_a = |w|_b\}$
linear
$\{w \mid |w|_a = |w|_b = |w|_c\}$
quadratic
$\{w w \mid w \in A^*\}$
exponential
Myhill-Nerode point of view
The size of the minimal deterministic automaton for $L$ is
the number of left quotients:
$$u^{-1} L = \{v \mid uv \in L\}$$
The deterministic OSC is
$$n \mapsto \textrm{ number of left quotients of order } n$$
Theorem (Hartmanis and Shank 1969): Prime does not have subexponential deterministic OSC
Theorem: there exists a probabilistic automaton which does not have subexponential deterministic OSC
$$L = \left\{ u \sharp v \left| \mathrm{bin}(u) \cdot \mathrm{bin}(v) > \frac{1}{2}\right.\right\}$$
After reading $u 1 \sharp$ and $u' 1 \sharp$, the two states must be different:
Indeed, there exists $v$ such that
$$\begin{cases} \mathrm{bin}(u 1) \cdot \mathrm{bin}(v) < \frac{1}{2} \\ \mathrm{bin}(u' 1) \cdot \mathrm{bin}(v) > \frac{1}{2} \end{cases}$$
Alternating Online Space Complexity
$$\delta : Q \times A \to \mathbb{B}^+(Q)$$
The size is
$$f : n \mapsto \textrm{ number of states reachable by reading at most } n \textrm{ letters}$$
language
online space complexity
regular
constant
$\{u \sharp v \mid u \neq v\}$
non-deterministic linear
FreeGroup
alternating linear
Lower Bounds using Lattices of Languages
Consider an alternating automaton of size $f$ recognising $L$
Theorem: The family of left quotients of order $n$ is contained in a latticed generated by $f(n)$ languages
The Query Table method
Consider an alternating automaton of size $f$ recognising $L$
Theorem: The query table of order $n$ has size at most $2^{f(n)}$
The Rank method
A language is $L : A^* \to \{0,1\} \subseteq \mathbb{R}$
Consider an alternating automaton of size $f$ recognising $L$
Theorem: The lattice of left quotients of order $n$ has rank at most $2^{f(n)} - 1$
Theorem: The Polynomial Alternating Hierarchy of OSC is Infinite
Theorem: Prime does not have sublinear alternating OSC