Context Free Grammars questions

Q35

GATE CS 2018 CSContext Free LanguagesMCQ2 marks−2/3 if wrong
Consider the following languages:

I. {ambncpdq∣m+p=n+q, where m,n,p,q≥0}\{a^m b^n c^p d^q \mid m + p = n + q, \text{ where } m, n, p, q \ge 0\}
II. {ambncpdq∣m=n and p=q, where m,n,p,q≥0}\{a^m b^n c^p d^q \mid m = n \text{ and } p = q, \text{ where } m, n, p, q \ge 0\}
III. {ambncpdq∣m=n=p and p≠q, where m,n,p,q≥0}\{a^m b^n c^p d^q \mid m = n = p \text{ and } p \neq q, \text{ where } m, n, p, q \ge 0\}
IV. {ambncpdq∣mn=p+q, where m,n,p,q≥0}\{a^m b^n c^p d^q \mid mn = p + q, \text{ where } m, n, p, q \ge 0\}

Which of the languages above are context-free?
Show answer without attempting

Answer: B

0/10 correct0 marks

Related topics in Context Free Languages