retagged by
1,850 views

1 Answer

Best answer
2 votes
2 votes
RegExp for Language $L = \big \{a^nb^m, n \ge 2, m\ge 3 \big \}$ is $aaa^*bbbb^*$

So,one of the Right Linear Grammar can be ::

$S \rightarrow aaB $
$ B \rightarrow aB\;|\;bC $
$ C \rightarrow bbD$
$D \rightarrow bD\;|\;\epsilon$

And one of the Left linear Grammar Can be :

$S \rightarrow Bbbb$
$B \rightarrow Bb\;|\;Aaa$
$A \rightarrow Aa\;|\;\epsilon$
selected by

Related questions

1 votes
1 votes
0 answers
1
mehul vaidya asked Sep 1, 2018
1,977 views
is this correct approach for converting RLG to LLG ?Is this correct only for this example , or is it a general approach ?
3 votes
3 votes
2 answers
3
Shreya Roy asked Nov 18, 2016
1,061 views
Let L = {xy | xwy L1, |x| = |w| = |y|}. Then L is(L1 is regular)(A). Regular(B). Non regular(C). May be regular(D). None
4 votes
4 votes
1 answer
4
Shreya Roy asked Nov 14, 2016
957 views
Which of the following is not regular?(A). {/n>=0 and input alphabet is {a,b}} (B). where i+j+k>100 & k>50(C). where i+j+k>100 & j+k>50 (D). None...