Question: 1. Consider the grammar G given by S ? ? | AB | XB T ? AB | XB X ? AT A ? a
1. 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 |
CKY Triangular Table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
