Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Assess three steps in the selection process.

Answered: 1 week ago

Question

Identify the steps in job analysis.

Answered: 1 week ago