Question: grammar G over alphabet Sigma = { a , b } with start variable S: S - > TaU T - > VTa |

grammar G over alphabet \Sigma ={a, b} with start variable S:
S -> TaU
T -> VTa | a
V -> a | b
U -> aU | b
1. Provide a clear and concise description of the language of strings that can be derived from U and from T
2. State five strings that are in L(G), and five that are not. The strings should be over \Sigma .
3. Show that G is ambiguous by providing two distinct leftmost derivations of the same string.
4. Provide a grammar in Chomsky Normal Form that is equivalent to G.
5. Provide a CYK table for the string abbaa and the following grammar:
S -> TU
T -> VT | a
U -> a | b
V -> UU

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!