Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8716785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:10:13+00:00 2026-06-13T06:10:13+00:00

Let B be the language {0 n 1 n | n >= 0} i.e.

  • 0

Let B be the language {0n1n | n >= 0} i.e. 0 and 1 has to have the same length

Let s in B be the string 0p1p

Assume B is regular so s must be divisible to s = xyz where xyiz i>=0 is still in B (Condition 1 of three conditions of pumping lemma).

Consider the case xyiz where i = 2 so xyyz:
Pump y with all 0s
xyyz has more 0s and 1s so it cannot be in B. Therefore, B is not regular.

I am having a hard time understanding that if y is all 0s in xyyz, then # of 0s > # of 1s

Why can’t |xyy| = |z| which then it would have the same # of 0s and 1s?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:10:15+00:00Added an answer on June 13, 2026 at 6:10 am

    ‘Pump y with all 0s’ isn’t terribly clear, but an example of how this works out is as follows:

    Pick some value for y: let's say y = '0'.
    Pick some value for i: i = 1
    Then s = xyz.  We will assume this holds true for the moment.
    

    Now, since we assume B is regular, we know that – for any value of i – the string formed by xyiz should also be in B! Let’s try xyyz, like you suggest.

    …Uh-oh. You see the problem? We have to hold y constant, but doing so means we just made a string that has one more 0 than s, but doesn’t have an extra 1 to go with it! We just showed that y can’t be 0. Well, darn.

    Now consider: is there any value of y for which this won’t hold true? Adding 0s to y will only make the issue worse!

    This is a very informal walkthrough of the proof, but hopefully it helps understand why it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's imagine, I have two English language texts written by the same person. Is
Let's say I have a string in an RTL language such as Arabic with
Let L(R) be the language denoted by regular expression R. I'd really love your
Still having trouble with this language. Ok, let's say I have two objects. The
I have a plist with key values. Each key represent a language, let's say
Let's say I have a programming language where I can write: x = f(g(1),
Let's assume for the moment that C++ is not a functional programming language. If
This relates to the Java language. Let's say I have we have a super
If I have a month name in a certain language(let's say Albanian), how do
Let's say I have: class language_text{ protected $id; protected $keyword; protected $language; protected $text;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.