Question

Using the CYK algorithm, determine whether the word “abbaa” can be generated by the following grammar:...

Using the CYK algorithm, determine whether the word “abbaa” can be generated by the following grammar:

S ⟶ XY

X ⟶ SY

Y ⟶ SS

X ⟶ a | bb

Y ⟶ aa

What are all the producing nonterminals for the substring "bb"?

What are all the producing nonterminals for the substring "baa"?

What are all the producing nonterminals for the substring "abb"?

What are all the producing nonterminals for the substring "bbaa"?

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

First of all the given grammar is not in CNF normal form. Since for CYK algorithm the CNF form of the grammar is required.

Here I have implement the CYK algorithm in Table filling Form. Here

Xi j  contain all the non terminals which generate string ai ai+1 ai+2 .... aj.

means if X1n contains start symbol of the grammar then the string a1 a2 a3 .......an  .

The full solution is attached as image form. there is three images numbered as 1, 2, 3.

Add a comment
Know the answer?
Add Answer to:
Using the CYK algorithm, determine whether the word “abbaa” can be generated by the following grammar:...
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