Concept:
The language
\[
\{0^n1^n2^n\}
\]
requires simultaneous counting of three symbol groups.
Step 1: Check regularity.
The language is not regular because equal counts must be maintained.
Step 2: Check context-freeness.
A PDA can compare only two groups conveniently using a stack.
The language
\[
0^n1^n2^n
\]
is not context free.
Step 3: Classify the language.
It is a standard example of a context-sensitive language.
\[
\boxed{L \in CSL}
\]
Was this answer helpful?
0
0
Top TS PGECET Computer Science & Information Technology Questions