Question: Give an example of a language that is not context free but that acts like a CFL in the pumping lemma. Prove that your example

Give an example of a language that is not context free but that acts like a CFL in the pumping lemma. Prove that your example works. See the analogous example for regular languages in Problem 1.54.


Problem 1.54.

Consider the language F = {aibjck| i, j, k ≥ 0 and if i = 1 then j = k}.

a. Show that F is not regular.

b. Show that F acts like a regular language in the pumping lemma. In other words, give a pumping length p and demonstrate that F satisfies the three conditions of the pumping lemma for this value of p.

c. Explain why parts (a) and (b) do not contradict the pumping lemma.

Step by Step Solution

3.37 Rating (175 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Let L aibjck i j k 0 and i j a Show that L is not context free To show that L is not context free we can use the pumping lemma for contextfree languag... View full answer

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 Introduction theory computation Questions!