Question

In: Computer Science

Show that the language F={M| M is a Turing machine , and L(M) contains infinite elements}...

Show that the language F={M| M is a Turing machine , and L(M) contains infinite elements} is not Turing recognizable.

Solutions

Expert Solution

Let us assume LL is RE. So, we have a TM NN which will say "yes" if given an encoding of a TM whose language is infinite. Now using NN we try to solve the non-halting problem as follows:

A non-halting problem is given as follows: Given an encoding of TM 〈H〉〈H〉 and a word w,w, whether HH does not halt on w.w. That is, we have to decide if HH does not halt on w.w. This problem is proved to be not RE and so no TM can not even say "yes" for "yes" cases of the problem.

Now, given a non-halting problem (〈H〉,w),(〈H〉,w), we proceed as follows: We make a new TM say M,M, which on input x,x, just simulates HH on ww for |x||x| steps. If HH halts on w,w, MM goes to reject state. Otherwise, it accepts. So, L(M)=Σ∗L(M)=Σ∗ if HH does not halt on ww and L(M)=L(M)= a finite set if HH halts on w.w. (If HH halts for w in say kk steps, any string with length greater than |k|,|k|, would certainly be not in LL (as we are running for only |x||x| steps for input x),x), making LL a finite set).

Now, we just give the encoding of MM to our assumed TM N.N. If NN says "accept", we have that L(M)L(M) is infinite => HH does not halt on w => we solved "yes" case of the non-halting problem, which is not possible. Hence, our initial assumption of LL is RE is false. LL is not RE.

Proving L′L′ is not RE is easy.
L′={〈M〉∣L(M)L′={〈M〉∣L(M) is finite}}

L(M)L(M) is finite is a non-monotonic property of TM. Because we can take TM TyesTyes with L(Tyes)=ϕL(Tyes)=ϕ and TnoTno with L(Tno)=Σ∗L(Tno)=Σ∗. Here, TyesTyes satisfies the property (of being finite) and TnoTno does not satisfy the property and L(Tyes)⊂L(Tno)L(Tyes)⊂L(Tno), making this a non-monotonic property of TM. And hence this becomes not RE as per Rice's theorem second part.

So, both LL and L′L′ are not RE


Related Solutions

Let INFINITE PDA = {<M>|M is a PDA and L(M) is an infinite language}. Show that...
Let INFINITE PDA = {<M>|M is a PDA and L(M) is an infinite language}. Show that INFINITE PDA is decidable.
Prove that the language L={(M, N): M is a Turing machine and N is a DFA...
Prove that the language L={(M, N): M is a Turing machine and N is a DFA with L(M) =L(N)} is undecidable. You need to derive a reduction from Atm={(M, w)|Turing machine M accepts w} to L. (In layman's terms please, no other theorems involved)
i)Show that infinite decidable language has infinite decidable subset ? ii)Show that any infinite decidable language...
i)Show that infinite decidable language has infinite decidable subset ? ii)Show that any infinite decidable language L has an infinite decidable subset J with the property that L − J is also infinite. ​ iii. Does the statement in part i of this problem still true if L is only recognizable ? Show or Counter example. No Spam please.
Show that the following problem i undecidable: Input: A Turing machine M. Output: Yes if M...
Show that the following problem i undecidable: Input: A Turing machine M. Output: Yes if M eventually halts when started on a blank tape, no otherwise Input: A Turing machine M and a tape symbol a. Output: Yes if M eventually writes a when started on an blank tape, no otherwise. Input: A Turing machine M. Output: Yes if M ever writes a nonblank symbol when started on a blank tape, No otherwise. Input: A Turing machine M and a...
Define a Turing machine TM3 that decides language L3 = { w | w ∈ Σ*,...
Define a Turing machine TM3 that decides language L3 = { w | w ∈ Σ*, #a(w) = #b(w) } over the alphabet Σ = {a, b}. IMPLEMENT USING JFLAP NO PAPER SOLUTION
A 6.0 L waste solution in the lab contains F- at a concentration of 0.1045 M,...
A 6.0 L waste solution in the lab contains F- at a concentration of 0.1045 M, but the disposal concentration limit for this anion is 1.3 mM. To reduce the concentration to the legal limit you decide to precipitate most of the fluoride by the addition of MgCl2 (molar mass=95.21 g/mol). A) what will be the equilibrium molar concentration of Mg2+ needed to reduce the [F-] concentration to 1.3 mM? B) what total mass of MgCl2 is needed to precipice...
Show that a set S has infinite elements if and only if it has a subset...
Show that a set S has infinite elements if and only if it has a subset U such that (1) U does not equal to S and (2) U and S have the same cardinality.
Give turing Machine for L= a*i b*2j a*i b*2j where i,j>=0. Also provide the logic, show...
Give turing Machine for L= a*i b*2j a*i b*2j where i,j>=0. Also provide the logic, show 1 or 2 strings for accept, reject .
Can you give me a turing machine for the language c* n b*2n a* n+2 for...
Can you give me a turing machine for the language c* n b*2n a* n+2 for n>=0 . Please give the entire diagram with states, transition function, alphabet. Can use either one-tape or two-tape (both infinite). Describe the logic used to build the machine. Run the TM that accepts for any string of length > 1. Also run for string cbba.
Design a Turing Machine to construct the function f(n) = 4 [1/4 n] + 2, (that...
Design a Turing Machine to construct the function f(n) = 4 [1/4 n] + 2, (that is, 2 more than 4 times the integer part of 1/4 n) for n Element N. Do not just produce a TM, but also describe briefly how it works. There is a TM in the Cooper notes that does something similar. You may modify it to produce the required TM, or produce a machine totally independently.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT