Question

b. Describe the language accepted by the following grammar: S→ Sa B B → B E
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given grammer:

S → aSa | B

B → bB | E

Here E is ϵ

Answer:

Given grammer accepts all strings which contains even number of a's and any number of b's in middle position of a's string

For example:

aaaa

aabaa

aabbaa

aabbbaa

means number of a's is divisible by 2 and all b's are in center of a's.

Add a comment
Know the answer?
Add Answer to:
b. Describe the language accepted by the following grammar: S→ Sa B B → B E
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT