Wednesday, November 17, 2010

Polynomial Reduction Example

Show that WRITE_ONETM = {M : M is a Turing machine that writes a 1 on its tape } is undecidable.

Let us assume that WRITE_ONETM is decidable. Then there exists a Turing machine WRITE_ONETM,  which can tell you if a given Turing Machine M will write a 1 on its tape on input z.

Let us look at how WRITE_ONETM  works.
M is the input to WRITE_ONETM .
If M writes a 1 on its tape , WRITE_ONETM  accepts.  – Yes instance
If M does not write a 1 on its tape, WRITE_ONETM  rejects. – No instance.

If M writes a 1 on its tape at any time of its computation, WRITE_ONETM decides yes. It does not matter what M does before it writes 1 on its tape.

 M might have 10000 transitions before it writes 1 on its tape. Still WRITE_ONETM should be able to decide whether M will write 1 on its tape.

M might compute what is 5+7 before it writes 1 on its tape. Still WRITE_ONETM should be able to decide whether M will write 1 on its tape.

M can watch a youtube video and then write a 1 on its tape. Still WRITE_ONETM should be able to decide whether M will write 1 on its tape.
( just kidding)

M might simulate another Turing Machine and then write a 1 on its tape. Still WRITE_ONETM should be able to decide whether M will write a1 on its tape.

Suppose M is simulating another machine T on input w on M’s tapes and if T accepts w, M is writing a 1 on its tape. Still WRITE_ONETM should be able to decide whether M will write a1 on its tape.

Did you hear that?
Isn’t that a solution to decidability of ATM. Whenever you have to decide if a TM T will accept or reject w, all you have to do is:
Construct a new TM, M such that
·        It simulates T on input w on M’s tape
·        If T accepts w, write a 1 on M’s tape.
·        Feed M to WRITE_ONETM
·        If WRITE_ONETM decides yes, T accepts w.
    
But we already know that ATM is undecidable. So it is not possible that WRITE_ONETM  can be decidable if it can solve ATM.

Hence WRITE_ONETM  is undecidable.



    





  

No comments:

Post a Comment