Question

Consider a grammar : S --> a | aS | bSS | SSb | SbS, Where T={a,b} V={S }.

a. Show that the grammar is ambiguous.

b. What is the language generated by this grammar?

2. (20 points) Consider a grammar: S -->a | aS | SS | Ssb | Sbs, Where T={a,b} V={S}. a. Show that the grammar is ambiguous.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

2016 August 15 Monday Güven the language is Salas loss Iss 6 | sbs terminals. Here ab are s is non terminal a to show given G2016 August Monday 22 S S ^ S sbs A s b. 1 S S a a b a o > aaba - a aba. Tuesday 23 the be derived in Con I ways So grammar S2016 st nesday L=şa, aa, bat, atb, at bat ? this is the language generated by the grammar CS Scanned with CamScanner

This is the language generated by the grammar.

THANK YOU

Add a comment
Know the answer?
Add Answer to:
Consider a grammar : S --> a | aS | bSS | SSb | SbS, Where...
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