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
  • 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...

  • Let Σ {0, 1, 2} Use the Pumping Lemma to show that the language L defined...

    Let Σ {0, 1, 2} Use the Pumping Lemma to show that the language L defined below is not regular L-(w: w Σ*, w is a palindrome} Note that a palindrome is a word, number, or other sequence of characters which reads the same backward as forward, such as mom or eye.

  • 1. (15) Let L be the language over {a,b,c} accepting all strings so that: 1. No...

    1. (15) 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 c's. Choose any constructive method you wish, and demonstrate that is regular. You do not need an inductive proof, but you should explain how your...

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
ADVERTISEMENT