Back to the 2021 paper

Module 2: Context-free languages and pushdown automata

20212m

The language {ambncm+nm,n1}\{a^mb^nc^{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