Question

Question 2 (20%) Convert the following CFG into an equivalent CFG in Chomsky normal form using...

Question 2 (20%) Convert the following CFG into an equivalent CFG in Chomsky normal form using the procedure discussed in the textbook. Show every step in the conversion.

A → ABC

A → a | ε

B → b

C → c

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

Chomsky normal form every production in the for of A->XY or A->a

here A,X,Y are variables and 'a' is terminal

i)A->ABC is written as

A->AX

X->BC

ii)A->a this is in cnf

A->ε this is also in cnf

B → b this is also in cnf

C → c this is also in cnf

answer is)

A->AX

X->BC

A → a | ε

B → b

C → c

here variables are {A,B,C,X}

terminals are {a,b,c,ε}

start symbol is {A}

Add a comment
Know the answer?
Add Answer to:
Question 2 (20%) Convert the following CFG into an equivalent CFG in Chomsky normal form using...
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