retagged by
812 views
0 votes
0 votes

L1 = {an bm | n ≤ m ≤ 2n}

L2 = {an bm│m≠n & m≠2n}

Which of the following is true?

A. Only L1 is CFG

B. Only L2 is CFG

C. Both are CFG

D. None of them is CFG

retagged by

Please log in or register to answer this question.

Related questions

2 votes
2 votes
4 answers
1
3 votes
3 votes
4 answers
2
Harit asked Apr 25, 2016
5,556 views
Consider the following grammar. How many back tracks are required to generate the string aab from the above grammar?S → aB | aAbA → bAb | aB → aB | ε