Question: Consider the grammar G given by S ? ? | AB | XB T ? AB | XB X ? AT A ? a B
Consider the grammar G given by
S ? ? | AB | XB
T ? AB | XB
X ? AT
A ? a
B ? b
Is w = aaabbb in L(G)? Using CKY Algorithm to decide if w is in L(G). A CKY Triangular Table is shown in Table 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| a | a | a | b | b | b |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
