473,395 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Pumping Lemma for CFLs

Hello,

I need to show the following language is NOT context-free, using the
pumping lemma for context-free languages.

L = {wwdouble(w) | w is an element of {a,b}*}, where double(w) is
derived from w by doubling each symbol, e.g. for w = aba, double(w) =
aabbaa.
Now I know I can use the pumping lemma directly on this language, but
then there are too many cases. I was wondering if anyone knows how I
can show this using the pumping lemma in conjunction with closure
properties for CFLs (i.e. using the pumping lemma to show a simpler
language K is not context free. And then showing that if K is not
context free then, L cannot be context free).

e.g. Assume L is context-free

Let G be some CFL.

Then L?G = K should be context free, but we showed it is not using
pumping lemma => contradiction, thus L cannot be context free.

(where ? is some CFL closure property)

I am having trouble on figuring out which closure property to use and
which language K to use. Any help is appreciated.

Thanks in advance.
Jul 17 '05 #1
1 2523
On 5 Nov 2003, Jack Smith wrote:
I need to show the following language is NOT context-free, using the
pumping lemma for context-free languages.

I am having trouble on figuring out which closure property to use and
which language K to use. Any help is appreciated.


Since you say that you need to show the language is CF *using the
pumping lemma*, don't bother with the closure properties.
Plus, what do all the closure properties tell you? You had condition 1
and condition 2, then something is CF. Do you know of any closure property
which concludes that something is NOT CF?
You say your pumping lemma proof has "too many cases," but it is usually
quite easy to group many cases into one and just deal with 3 or 4... I
haven't tried with wwdouble(w), but I don't think this should be too hard.
Why don't you try giving us your cases? Or at least what string you are
trying to pump on.

J

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: yawnmoth | last post by:
say i have a for loop that would iterate through every character and put a space between every 80th one, in effect forcing word wrap to occur. this can be implemented easily using a regular...
1
by: Jack Smith | last post by:
Hello, I have the following problem. I have an idea of how to prove it, but any other help is appreciated. Let doubleswap(L) be the language obtained from L by replacing each a by bb and each...
24
by: Runic911 | last post by:
Does anyone know how i can fix my Palindrome program? s = raw_input('Enter a String: ') punctuation = '%$!*.,-:? ;()\'\"\\' i = 0 h = 0 t = 0 p = '' z = 0 while s!= ' ':
38
by: Steve Kirsch | last post by:
I need a simple function that can match the number of beginning and ending parenthesis in an expression. Here's a sample expression: ( ( "john" ) and ( "jane" ) and ( "joe" ) ) Does .NET have...
111
by: Jordan Abel | last post by:
Is this defined or not? Some people in ##c are saying that it has to result in x being set to 11, i'm saying it's undefined. Who's right?
2
by: Bill Nguyen | last post by:
below is the error message I received when about 2/3 of the process is done. Where in my code I sould look for? Thanks Bill --------- The CLR has been unable to transition from COM context...
2
by: Robert Speck | last post by:
Hi there, Does anyone have a "standard" solution for the following "standard" problem. If thread 1 invokes "MessageBox()" and thread 2 then comes along and invokes some method on thread 1 (via...
6
by: =?iso-8859-1?q?C=E9dric_Lucantis?= | last post by:
Le Thursday 26 June 2008 15:53:06 oyster, vous avez écrit : The construct does not match a whole word but only one char, so means "any char which is not t, a, b, l or e". Anyway the inside...
6
by: jimmuel001 | last post by:
pls help me fo my assignment that will allow the user to input infinite equations in infix type. and will output in postfix. thanks!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.