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 708235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:22:06+00:00 2026-05-14T04:22:06+00:00

I know this isn’t directly related to programming, but I was wondering if anyone

  • 0

I know this isn’t directly related to programming, but I was wondering if anyone know how to apply the pumping lemma to the following proof:

Show that L={(a^n)(b^n)(c^m) : n!=m} is not a context free language

I’m pretty confident with applying pumping lemmas, but this one is really irking me. What do you think?

  • 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-05-14T04:22:06+00:00Added an answer on May 14, 2026 at 4:22 am

    Edit: I was totally leading you down the wrong track. That’s what happens when I try to help out when I haven’t completely solved the problem myself.

    Ogden’s Lemma

    Suppose L is context free. By Ogden’s lemma, there exists an integer p that has the following properties:

    Given a string w in L at least p symbols long, where at least p of those symbols are “marked”, w can be represented as uvxyz, which satisfy:

    1. x has at least one marked symbol,
    2. either u and v both have marked symbols or y and z both have marked symbols,
    3. vxy has at most p marked symbols, and
    4. u vi x yi z is in L for i >= 0

    That’s Ogden’s lemma. Now, let q be an integer divisible by every positive integer no greater than p. Let w = ap+q bp+q cp. Mark every c. By #2, u or v must contain at least one c. If either u or v contains any other symbol, then #4 fails, so u and v must contain only c. But then #4 fails when i = q/|uv|. We know q is divisible by |uv| because p > |uv| > 0, and q is divisible by all positive integers less than p.

    Note that Ogden’s lemma turns into the pumping lemma when you mark all symbols.

    Pumping Lemma

    Suppose L is context free. By the pumping lemma, there is a length p (not necessarily the same p as above) such that any string w in L can be represented as uvxyz, where

    1. |vxy| <= p,
    2. |vy| >= 1, and
    3. u vi x yi z is in L for i >= 0.

    Given a string w in L, either m > n or m < n. Suppose p = 2.

    Suppose that m > n. (Note that Λ denotes the empty string.)

    • Let u = an bn cm-1
    • Let v = c
    • Let x = Λ
    • Let y = Λ
    • Let z = Λ

    Suppose that n > m.

    • Let u = an-1
    • Let v = a
    • Let x = Λ
    • Let y = b
    • Let z = bn-1 cm

    This demonstrates that no string from L provides a counterexample using the pumping lemma to the supposition that L is a context free language (even though it is context sensitive).

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

Sidebar

Related Questions

I know this isn't directly programming related, but at the same time... Mac Excel
I know this isn't exactly programming related per se, but programmers are the most
I know this isn't strictly a programming question, but it is related to git.
I know this isn't a programming question but I would really like the users
I know this isn't a direct programming question, but's it's kinda relevant as I'm
I know this isn't exactly a programming question, but there may be some libraries/algorithms
I know this isn't exactly a programming question per se, but rather a settings
I know this isn't strictly a programming question but y'all must have experienced this.
Okay; sorry I know this isn't a programming question as such, but it was
I know this isn't a programming question but it is a programming tool question.

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.