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 contextfree languages.
a Let A a
n
n
Suppose you are trying to prove that A is not contextfree using the pumping
lemma for contextfree languages. Your proof starts correctly like this:
Suppose for a contradiction that A is contextfree. Let p be the pumping length
given by the pumping lemma for contextfree 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 contextfree using the pumping
lemma for contextfree languages. Your proof starts correctly like this:
Suppose for a contradiction that B is contextfree. Let p be the pumping length
given by the pumping lemma for contextfree 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 contextfree using the pumping
lemma for contextfree languages. Your proof starts correctly like this:
Suppose for a contradiction that C is contextfree. Let p be the pumping length
given by the pumping lemma for contextfree 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
