edited by
855 views
0 votes
0 votes
$L1= \left \{ a^m b^n c^n d^m | m \neq n \right \}$

$L2=   \left \{a^i b^j c^k | (i<=j)or (j<=i), j=k  \right \}$

$L3=  \left \{a^i b^j c^k| i=j, j<k  \right \}$

The number of the above languages that are context free are ?
edited by

1 Answer

1 votes
1 votes
In L2

i>=j or j>=i ---> So we can ignore i value here i.e. L2={a^i b^j c^j}   .Which is context free.

But I cannot find any such way for L1 or L3.

Conclusion:

So only L2 is CFL
edited by

No related questions found