Question: 1 3 ( 1 0 marks ) Recall that the Pumping Lemma for context - free languages states: If L is a context - free

13(10 marks)
Recall that the Pumping Lemma for context-free languages states:
If L is a context-free language, then there is a positive integer n, such that
AAwinL, where |w|n
EEu,v,x,y,z where w=uvxyz, such that:
|vxy|n
|vy|1iev and y are not both empty
,uvixyinL for all i0
Use this Pumping Lemma to show that the following language on {a,b} is not context-free:
L={(ab)kakbk:k>0}
You should ensure that all cases are clearly identified, and that you show how each leads to a
contradiction.
14(5 marks)
Consider the following CFG, and note that it obeys the constraints of Chomsky Normal Form:
SxY
Y0|1
xxx|0
Use the CYK algorithm to show:
(a)[2 marks] that 1010 is not in the language generated by the grammar;
(b)[3 marks] that 0001 is in that language.
You should show the full tables constructed as you apply the algorithm.
 13(10 marks) Recall that the Pumping Lemma for context-free languages states:

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!