The class of languages accepted by nondeterministic one-counter automata:finite automata equipped with one nonnegative counter that can be incremented,decremented, and tested for zero. Equivalently, OCL is the class accepted bypushdown automata with a singleton stack alphabet, plus a bottom marker.
REG ⊊ OCL ⊊ CFL. As decision problems over strings, OCL ⊆ NL.
Examples include {a^n b^n : n ≥ 0} and the one-parenthesis Dyck language.The two-parenthesis Dyck language is CFL but not OCL.
Contains DOCL and PB-OCL. Contained in CFL and NL.
The deterministic subclass of OCL: languages accepted by deterministicone-counter automata, equivalently deterministic pushdown automata with asingleton stack alphabet plus bottom marker.
REG ⊊ DOCL ⊊ OCL and DOCL ⊆ DCFL. As decision problems over strings,DOCL ⊆ L.
Example: {a^n b^n : n ≥ 0} and the Dyck language. Another useful example is{a^i b^i a^j b^j : i,j ≥ 0}, which is deterministic one-counter but notpartially blind one-counter.
Language equivalence for deterministic one-counter automata is NL-complete.