Question: [3*5 = 15 Points] Consider the given grammars below. For each below, find out if the given CFG accepts the given string w using CYK

[3*5 = 15 Points] Consider the given grammars below. For each below, find out if the given CFG accepts the given string w using CYK Algorithm. You must show the triangular table. 

S → XY |YY

X → ZZ |XY |x

Y → YY |ZX |y

Z → YX |XX |y


String, w: xxyy



S → XY |YZ

X → YX |x

Y → ZZ|y

Z → XY |x


String, w: xxyxy



S → XY |SS|a

X → YS |ZT| b

Y → TT|b

Z → TR |a|b

T → a

R → SS

String, w: abaab


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Start rymbol S in ta means accept Hentring CF G 4 tij 13 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Engineering Questions!