allZeros and allOnes: single-symbol languages #
The strings consisting entirely of 0s (resp. 1s), including the empty
string. Decided by a 3-state scannerTM instance: the scan state is a
single Bool tracking "every bit so far equals target".
Main definitions #
Language.allZeros,Language.allOnes.TM.allSymbolTM target—scannerTMspecialized totarget : Bool.
Main results #
allZeros_in_DTIME,allOnes_in_DTIME— both inDTIME(n + 2).allZeros_mem_P,allOnes_mem_P.
Scanner for "all input bits equal target". Scan state: a Bool
encoding "all bits seen so far equal target".
Equations
- One or more equations did not get rendered due to their size.
Instances For
allZeros ∈ DTIME(n + 2).
allOnes ∈ DTIME(n + 2).