(Created page with "If L and L' are both recursively enumerable, then L is recursive. Why? ===Solution=== Given L is RE. So there is a TM, which accepts and halts for all words in L. Now, if ...")
 
Line 5: Line 5:
  
 
Given L is RE. So there is a TM, which accepts and halts for all words in L.  
 
Given L is RE. So there is a TM, which accepts and halts for all words in L.  
Now, if L' is RE=> there is a TM, which accepts and halts for all words not in L.
+
Now, if L' is RE, then there is a TM, which accepts and halts for all words not in L.
So, if a word is given from L or not from L, give it to both those TMs. If its from L, the first TM will halt and we say it belongs to L. If its not from L, the second one will halt and we say it doesn't belong to L. Thus L becomes recursive..
+
So, if a word, from L or not from L,is given, give it to both those TMs. If its from L, the first TM will halt and we say it belongs to L. If its not from L, the second one will halt and we say it doesn't belong to L. Thus L becomes recursive.
 
 
 
 
  
  

Revision as of 16:32, 12 December 2013

If L and L' are both recursively enumerable, then L is recursive. Why?

Solution

Given L is RE. So there is a TM, which accepts and halts for all words in L. Now, if L' is RE, then there is a TM, which accepts and halts for all words not in L. So, if a word, from L or not from L,is given, give it to both those TMs. If its from L, the first TM will halt and we say it belongs to L. If its not from L, the second one will halt and we say it doesn't belong to L. Thus L becomes recursive.







blog comments powered by Disqus

If L and L' are both recursively enumerable, then L is recursive. Why?

Solution[edit]

Given L is RE. So there is a TM, which accepts and halts for all words in L. Now, if L' is RE=> there is a TM, which accepts and halts for all words not in L. So, if a word is given from L or not from L, give it to both those TMs. If its from L, the first TM will halt and we say it belongs to L. If its not from L, the second one will halt and we say it doesn't belong to L. Thus L becomes recursive..








blog comments powered by Disqus