Question: a) Consider the following Context Free Grammar G ((A, B, C), (a, $), P, S): P: S AB | BC A BA |CCA| a B

a) Consider the following Context Free Grammar G ((A, B, C), (a, $), P, S):

P:

S AB | BC

A BA |CCA| a

B CC |$

C AB | a

Using CYK algorithm find out whether the string a$a$ is a member of the language L(G) or not?

b) Consider the following Context Free Grammar G ((A, B, C), (x, -), P, S):

P:

S AB | BC

A BA | x

B CC |ABC| -

C AB | x

String x-x-x is a member of the language L(G). Is the statement True or False? Justify your answer with the help of CYK algorithm.

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 Databases Questions!