Question

5. Construct the CYK-table for the string aabb using the following grammar: S X Y Z A B + AY | 8 + AY + XZ|XB| b + XB | b → a

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

Answer- Cyk algorithm - FoЯ сак аlgoы +hm qa mая should be in chomiskey Normal Form (CNF). The given grammar given gor SAYIEStep-2 сак-table - x14- Х3 ТХ- X79 1793 | X34- хи Xo9 33 | Х44- First row variables- Input - aabb х = {A} 722 = {A} 733 Кв, ySecond row variables ratere- x 12 = X1,822 ={A} {A} ={AA } X 23 - X 92,433 = {A} {By, 2} = AB, AY, AZ) ={six} ¥34 733, 444 -Third now variables vatere X13=1*11, X23) U (X12, X33) = {A,} {S,x} u{0} {B,X,Z} = 1 AS, AX, BV, *24 = (492, X34) U (423, *44KAZILAY (BY,Z) By,Z} адь ь Therefore storing aabb E L(G).

Add a comment
Know the answer?
Add Answer to:
5. Construct the CYK-table for the string aabb using the following grammar: S X Y Z...
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