reshown by
568 views
1 votes
1 votes
L = {a^nb^m : n >= m+3}

below context grammer is correct??

S ==> aA | Aa

A ==> aAb | bAa | abA | baA | aa
reshown by

1 Answer

0 votes
0 votes
Your grammar is not correct as we are able to generate "aabaa".

CFG can be :-

A -> aAb /  aaaC
C -> aC / epsilon.
edited by

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
practicalmetal asked Mar 15, 2023
517 views
Is the following language context free:The set of all strings with number of a’s equal to number of b’s and the sum of a’s and b’s to be divisible by 3.
0 votes
0 votes
1 answer
3
moe12leb asked Jan 21, 2023
280 views
S→ aS | bS | epsilonwhat is the language generated by this grammar ?
0 votes
0 votes
2 answers
4
moe12leb asked Jan 21, 2023
275 views
what is the langauge generated by this grammar ?S >aS | aSbS | ε what is the language