|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
#11 (permalink) | |
|
I JUST got here.
Join Date: Oct 2007
Posts: 13
![]() |
Quote:
thank you very much, R0jkumar ![]() |
|
|
|
|
|
|
#12 (permalink) |
|
I JUST got here.
Join Date: Oct 2007
Posts: 23
![]() |
I solved #66 in a not entirely rigorous way.
We are given that L1 contains L as a substring. Since we know L is regular, by Pumping Lemma, we can split L into xy^nz where we can n can be any integer and xy^nz will still be regular. Since every string in L1 contains L as a substring, we can have a situation like this: (w1)L(w2) where w1 and w2 are strings. Even here, we can write L1 = (w1)xy^nz(w2) and pump n. Therefore, if L is regular, then by Pumping Lemma, L1 is regular. therefore, I) is true Using similar logic, we can show II) is true If we look at the options, if I and II are both true, the answer can only be E) I, II, III are true. Thus, we would not need to evaluate III. Incidentally, I do not know how to prove or disprove that statement. Can anyone help? |
|
|
|
|
|
#13 (permalink) | |
|
I JUST got here.
Join Date: Oct 2007
Posts: 18
![]() |
Quote:
The pumping lemma says that is a language is regular then it can be pumped. It does not say that a language that can be pumped has to be regular. A simple counter example: Take any undecidable language L over {a,b}. Let LP = { uvc^n | uv is in L }. LP can be pumped, but is in no way regular. G. |
|
|
|
|
|
|
#14 (permalink) |
|
I JUST got here.
Join Date: Oct 2009
Posts: 8
![]() |
L1 is the set of words which have some word/words of L as a subset.
Let L = {a,b} - just 2 words. So, L is regular and context-free and recursive. Let L1 = {a^nb^n,n>0}. L1 is the set of words {ab,aabb,aaabbb,...} where each word has the word {a} as a subset. Isn't this a counter-example to: (I) If L is regular, L1 is regular ? Rojkumar said that 'you have to show the converse as well'. But do we have to ? 'L1={w|w contains some x belonging to L as a substring'} This does not mean that Every word in L should be a substring of some word in L1. It is enough if Any word in L is a substring of all words in L1. Also there is no restriction that the substring should be somewhere in the middle. |
|
|
|
Contact TestMagic TestMagic Forums Archive Privacy Statement
TestMagic Locations
Legal
Privacy
SEO by vBSEO 3.2.0
Copyright © 2009 TestMagic
Ad Management by RedTyger