retagged by
294 views
0 votes
0 votes

Consider the languages given below.

  1. $L1 =$ {$a$^$n$ $b$^$m$ $c$^$m$ $d$^$n$ $|n >= 1$ and $m >= 1$}
  2. $L2 =$ {$a$^$n$ $b$^$n$ $|n >= 1$}
  3. $L3 =$ {$a$^$n$ $b$^$n$ $c$^$n$ $|n>=0$ }

Find the correct statement from the following:

  1.   $L1, L2$ and $L3$  are context Free languages
  2.   $L1, L2$ are but not $L3$, are context free Languages
  3.   $L2, L3$ are context free but not $L1$
  4.   Only $L2$  is context free
retagged by

1 Answer

Best answer
1 votes
1 votes
The equivalent context free grammar for L1 is, S -> aSd|aAd,  A -> bAc | bc
selected by
Answer:

Related questions