Back to the 2021 paper

Module 3: Context-Sensitive Languages

20212m

The language:

L={ambncm+nm,n1} L = \{ a^m b^n c^{m+n} \mid m,n \ge 1 \}

is:

(i) regular
(ii) context-free but not regular
(iii) context-sensitive but not context-free
(iv) type-0 but not context-sensitive

Similar questions