421 views
1 votes
1 votes
Let $Σ$ = {$a, b$}. For each of the following languages, find a grammar that generates it.
(a) $L_1$ = {$a^nb^m : n ≥ 0, m > n$}.
(b) $L_2$ = {$a^nb^{2n} : n ≥ 0$}.
(c) $L_3$ = {$a^{n+2}b^n : n ≥ 1$}.
(d) $L_4$ = {$a^nb^{n−3} : n ≥ 3$}.
(e) $L_1 L_2$.
(f) $L_1 ∪ L_2$.
(g) $L_1^3$.
(h) $L_1^*$.
(i) $L_1-\bar{L}_4$.

1 Answer

Related questions

1 votes
1 votes
1 answer
2
0 votes
0 votes
2 answers
3