Question: This question is about the pumping lemma for context - free languages. ( a ) Let A = { a 2 n | n >

This question is about the pumping lemma for context-free languages.
(a) Let A ={a
2
n
| n >=0}.
Suppose you are trying to prove that A is not context-free using the pumping
lemma for context-free languages. Your proof starts (correctly) like this:
Suppose for a contradiction that A is context-free. Let p be the pumping length
given by the pumping lemma for context-free languages.
Now you have to choose string s. Give a good choice for s. You do not have to
explain your choice and you do not have to finish the proof. Simply give s.
(b) Let B ={ww | w in {a, b}
}.
Suppose you are trying to prove that B is not context-free using the pumping
lemma for context-free languages. Your proof starts (correctly) like this:
Suppose for a contradiction that B is context-free. Let p be the pumping length
given by the pumping lemma for context-free languages.
Now you have to choose string s. Give a good choice for s. You do not have to
explain your choice and you do not have to finish the proof. Simply give s.
(c) Let C ={w in {a, b, c, d}
| w has the same number of as as bs and w has the
same number of cs as ds}.
Suppose you are trying to prove that C is not context-free using the pumping
lemma for context-free languages. Your proof starts (correctly) like this:
Suppose for a contradiction that C is context-free. Let p be the pumping length
given by the pumping lemma for context-free languages.
Now you have to choose string s. Give a good choice for s. You do not have to
explain your choice and you do not have to finish the proof. Simply give s

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!