Question

John Doe claims that the language L, of all strings over the alphabet Σ = {...

John Doe claims that the language L, of all strings over the alphabet Σ = { a, b } that contain an even number of occurrences of the letter ‘a’, is not a regular language. He offers the following “pumping lemma proof”. Explain what is wrong with the “proof” given below.

“Pumping Lemma Proof”

We assume that L is regular.

Then, according to the pumping lemma, every long string in L (of length m or more) must be “pumpable”.

We choose the specific string w = a2m .   Clearly w is in L, and | w | >= m, so this w must be “pumpable”.

That means that the string w consist of 3 substrings, x, y, and z. In other words w = xyz. We choose y = a.

Then if we “pump up” to produce the string xy2z , this string should also be in the language L, according to the Pumping Lemma.

But xy2z = a2m+1 ,    and clearly xy2z is NOT in L, since this new string has an odd number of a’s.

Therefore our original assumption that L is regular was incorrect.      Q.E.D.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
John Doe claims that the language L, of all strings over the alphabet Σ = {...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the application of the Pumping Lemma to prove that the language over Σ = {a,b,c}...

    Consider the application of the Pumping Lemma to prove that the language over Σ = {a,b,c} shown below is not regular: L = {aibjck: i ≥ j ≥ k ≥ 0} First, we choose an input string w = apbpcp=xyz, 1|xy| p, |y|=k≥1, where p is the critical length. Next, create another string w´ L  to produce a contradiction. Which of the following string will produce a contradiction? e) w´ = xz f) w´ = xyz g) w´ = xy2z h)...

  • Give regular expressions for the following languages: (a) The language of all strings over {a,b} except...

    Give regular expressions for the following languages: (a) The language of all strings over {a,b} except the empty string. (b) The language of all strings over {a,b} that contain both bab and bba as substrings. (c)L k = {w ∈ {a,b} * | w contains a substring having 3 more b’s than a’s}. (d) The language of all strings over {a,b} that have a b in every odd position (first symbol is considered position 1; empty string should be accepted)...

  • Let ?= (a, b). The Language L = {w E ?. : na(w) < na(w)) is...

    Let ?= (a, b). The Language L = {w E ?. : na(w) < na(w)) is not regular. (Note: na(w) and nu(w) are the number of a's and 's in tw, respectively.) To show this language is not regular, suppose you are given p. You now have complete choice of w. So choose wa+1, Of course you see how this satisfies the requirements of words in the language. Now, answer the following: (a) What is the largest value of lryl?...

  • 3.   These languages are not regular.   For each, list three strings that would work in a...

    3.   These languages are not regular.   For each, list three strings that would work in a Pumping Lemma proof.   Then, use one of them to show the language is not regular. But not a. a.    L = {ww | w Î {a, b}*} b.    L = {anba2n | n >= 0} c.     {w Î S* | w contains more a’s than b’s}.

  • 1(a)Draw the state diagram for a DFA for accepting the following language over alphabet {0,1}: {w...

    1(a)Draw the state diagram for a DFA for accepting the following language over alphabet {0,1}: {w | the length of w is at least 2 and has the same symbol in its 2nd and last positions} (b)Draw the state diagram for an NFA for accepting the following language over alphabet {0,1} (Use as few states as possible): {w | w is of the form 1*(01 ∪ 10*)*} (c)If A is a language with alphabet Σ, the complement of A is...

  • Find a regular expression for the following language over the alphabet Σ = {a,b}. L = {strings th...

    Find a regular expression for the following language over the alphabet Σ = {a,b}. L = {strings that begin and end with a and contain bb}.

  • Give a DFA for the following language over the alphabet Σ = {0, 1}: L={ w...

    Give a DFA for the following language over the alphabet Σ = {0, 1}: L={ w | w starts with 0 and has odd length, or starts with 1 and has even length }. E.g., strings 0010100, 111010 are in L, while 0100 and 11110 are not in L.

  • Pumping lemma s. (7+5 points) Pumping lemma for regular languages. In all cases, -a,b) a) Consider...

    Pumping lemma s. (7+5 points) Pumping lemma for regular languages. In all cases, -a,b) a) Consider the following regular language A. ping length p 2 1. For each string s e pumping lemma, we can write s -xy, with lyl S p, and s can be pumped. Since A is regular, A satisfies the pumping lemma with pum A, where Is] 2 p, by the a) Is p 3 a pumping length for language 4? (Yes/No) b) Show that w...

  • (d) Let L be any regular language. Use the Pumping Lemma to show that In >...

    (d) Let L be any regular language. Use the Pumping Lemma to show that In > 1 such that for all w E L such that|> n, there is another string ve L such that lvl <n. (4 marks) (e) Let L be a regular language over {0,1}. Show how we can use the previous result to show that in order to determine whether or not L is empty, we need only test at most 2" – 1 strings. (2...

  • Let L be the language over {a, b, c} accepting all strings so that:

    1. Let L be the language over {a, b, c} accepting all strings so that: 1. No b's occur before the first c. 2. No a's occur after the first c. 3. The last symbol of the string is b. 4. Each b that is not the last symbol is immediately followed by at least two d's. Choose any constructive method you wish, and demonstrate that L is regular. You do not need an inductive proof, but you should explain how your construction accounts for...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT