Library

2PDA · Recursively enumerable

aⁿbⁿcⁿ — beyond one stack

The language that defines the limit of context-free: equal runs of a, b, and c. Stack 1 matches a's to b's while stack 2 matches b's to c's — two stacks reach Turing power.

count aa vs bb vs cacc
The machine as drawn — 4 states, 7 transitions.

The author’s examples, run

abc → acceptaabbcc → acceptaaabbbccc → acceptaabbc → rejectabcc → rejectacb → reject