Question

Automata theory Q1: Assume S = {a, b}. Build a CFG for the language of all...

Automata theory

Q1:

Assume S = {a, b}.

Build a CFG for the language of all strings with a triple a in them. Give a regular expression for the same language. Convert the CFG into CNF grammar.

Q2:

Assume S = {a, b}.

Build a CFG for the language defined by (aaa+b)*. Convert the CFG into CNF grammar.

Q3:

Explain when a CFG is ambiguous. Give an example of an ambiguous CFG.

give vedio link also

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

ol) cFo CF fr the lo have aaain hm 6 CFS. Regulas Eyprebion s oducion lowing type Not CNE h 6つしmver ting t CNF Aa, b mere an ne fice for tomc string: b ceし ab e e a b oub ab

Add a comment
Know the answer?
Add Answer to:
Automata theory Q1: Assume S = {a, b}. Build a CFG for the language of all...
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