Welcome! Log In Create A New Profile

Advanced

2007 Q3

Posted by Rey 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar
Rey
2007 Q3
October 30, 2010 10:53AM
Question 3 (2007)

Aaarghh my favorite again, pumping lemmings with length

So lets assume that the L is context free, then by Pumping lemma with length there is some word of sufficient length such that it can be split into five parts uvxyz and can be pumped.

a2p-1b2p+2a2p

should be long enough for us to pump. So by rule one length(vxy) <=2p we can have the following two cases
1) vxy consists of only a's or b's
If we pump the first set a2p-1 it will be longer than the following b's
If we pump the second set b2p+2 it will become longer than the first set of a's and following set of b's
If we pump the third set a2p then it will become longer than the first set of a's and second set of b's
None of these words are in the Language

2) vxy consists of a's and b's or b's and a's
If we pump the first set of a's and b's it will grow longer than the remaining a's
If we pump the send set of b's and third set of a's they will become longer than the first set of a's
None of these words are in the Language

Therefore proof by contradiction the language L is NOT context free.
Sorry, only registered users may post in this forum.

Click here to login