Question

1. (20 points) Given the following Grammar G,

S->ASB

A -> aAS | a | λ

B -> SbS | A|bb

(a) Identify and remove the λ-productions.

(b) Identify and remove unit-productions from the result of (a).

(c) Convert it to Chomsky Normal Form.1. (20 points) Given the following Grammar G, S->ASB A -> AS | a 1a B -> Sbs | Albb (a) Identify and remove the -productions.

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

Sole To conveat the CFG to CNE Geren Grammare S ASB AaAsalx B SIS | Albb 3 identify and renove the null productions . The nul

sule 2: AaAs lasla Replace à with Y Replace As with a A → Y2 lysla CNF Yta Add 2 rules 2→AS sule 3: B~ 365 / bb la As/as/a

please upvote and comment for doubts

Add a comment
Know the answer?
Add Answer to:
1. (20 points) Given the following Grammar G, S->ASB A -> aAS | a | λ...
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