retagged by
1,514 views

3 Answers

2 votes
2 votes
a w* bb where   wϵ (a+b)* and number of b's= number of a's+1  is the language produced by the grammer

It means any string having prefix a and suffix bb ,
edited by
1 votes
1 votes
S --> aSS / b
let us suppose the string is "aaabbbb"
S-->aSS
S-->aaSSS
S-->aaaSSSS
S-->aaabbbb

The language generated by this grammer is a^nb^m such that n<m
1 votes
1 votes
S --> aSS / b

The language generated by this grammer is

$ a^{*}(ab)^{*}a^{n}b^{m}$

where n<m and n>=0 and m>=1.
edited by

Related questions