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, 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