Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 pumping lemma help!
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
cwarrior




PostPosted: Thu Mar 12, 2009 9:23 pm   Post subject: pumping lemma help!

Can somebody help me understand how the pumping lemma works?
I am having a hard time understanding it. Like i have seen examples and definitions but i just get lost and it doesn't get through my head.
Sponsor
Sponsor
Sponsor
sponsor
Brightguy




PostPosted: Thu Mar 12, 2009 11:29 pm   Post subject: Re: pumping lemma help!

Well, you might have to be a little more specific, but I'll try to give you a high-level flavour.

Let L be a regular language. The pumping lemma says that any really long word in L can be split into three parts such that the middle part can be duplicated as many times as you want and the new word is still in L.

So if w is a sufficiently long word in L then there is some decomposition w=xyz (x, y, z are strings and y is not empty) so that xyyz, xyyyz, xyyyyz, xyyyyyz, etc. are also in L (and xz too).

You can also strengthen that statement and say that in the xyz decomposition the string xy can't be too long.

This makes sense if you consider finite automaton. Since they have a finite number of states, a state must be repeated during the processing of any string with more symbols than there are states in the automaton. And if you were able to get a DFA to repeat a state once you can get it to repeat as many times as you want by feeding it the same symbols that got it to repeat the first time.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: