Question

Given any string w ∈ {0, 1}∗, let n0(w) = number of 0′s in w and...

Given any string w ∈ {0, 1}∗, let
n0(w) = number of 0′s in w and n1(w) = number of 1′s in w.

Prove, by using the pumping lemma, that the language {w | 0 ≤ n0(w) ≤ 2∗n1(w)+1.}

is not a regular language.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

For any regular language L, there exists an integer n, such that for all x ∈ L with |x| ≥ n, there exists u, v, w ∈ Σ∗, such that x = uvw, and
(1) |uv| ≤ n
(2) |v| ≥ 1
(3) for all i ≥ 0: uviw ∈ L

In simple terms, this means that if a string v is ‘pumped’, i.e., if v is inserted any number of times, the resultant string still remains in L.

​​​​​​​

Add a comment
Know the answer?
Add Answer to:
Given any string w ∈ {0, 1}∗, let n0(w) = number of 0′s in w and...
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
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