Home » Theory of Computation » Theory of computation miscellaneous » Question

Theory of computation miscellaneous

Theory of Computation

  1. Define languages L0 and L1 as follows
    L0 = {< M, W, 0 > |M halts on W}
    L1 = {| M does not halts on W}
    Here < M, W, i > is a triplet, whose first component, M is an encoding of a turing machine, second component W is a string and third component i is a bit.
    Let L = L0 ∪ L1 . Which of the following is true?
    1. L is recursively enumerable, but L is not
    2. L is recursively enumerable, but L is not
    3. Both L and L are recursive
    4. Neither L nor L is recursively enumerable
Correct Option: A

If L0 ∪ L1 is recursively enumerable, it means we can find out for all W ∈ ∑*, where M halts or does not halt. This means that if L0 ∪ L1 is recursively enumerable, the halting problem would be decidable. But we know, the halting problem is undecidable.
Therefore L = L0 ∪ L1 is not RE.
Since, L = (L0 ∪ L1)c = L0c ∩ L1c = φ which is regular language and hence is RE.
Therefore, L is RE. So, correct option is (b), which is L is RE but L is not.



Your comments will be displayed only after manual approval.