• recategorized by
7,019 views
19 19 votes
State whether the following statements are TRUE or FALSE:

The problem as to whether a Turing machine $M$ accepts input $w$ is undecidable.

5 Answers

Best answer
35 35 votes
Yes. The problem as to whether a Turing machine $M$ accepts input $w$ is undecidable which is the well known Halting Problem.

If string $w$ is going to loop then we can not determine if it will be eventually accepted by TM or not.
• edited by
5 5 votes

Consider a property P : w belongs to REL (Recursively Enumerable lang)

Now lets take a Set of All REL Langs and a Set of 0 and 1 , 0 shows the Lang do not accept the word and 1 shows it accepts the word.

Now according to the RICE Theorem : 

Rice theorem states that any non-trivial  property of a language which is recognized by a Turing machine is undecidable

This Property will be Non trivial as it could be the case that some REL will accept and some reject this word , So this Problem will become undecidable.

Hence its TRUE

RICE theorem : https://www.youtube.com/watch?v=qmXl4yflY5I&t=4s&pp=ygUTcmljZSB0aGVvcmVtIGluIHRvYw%3D%3D

1 1 vote

The problem of determining whether a given Turing machine $ M $ accepts a given input string $ w $ is undecidable.This problem is formally known as the Acceptance Problem for Turing Machines, and is denoted by:

$$
A_{\text{TM}} = \{ \langle M, w \rangle \mid M \text{ is a Turing machine and } M \text{ accepts } w \}.
$$

What Does “Undecidable” Mean?

A language $ L $ is *decidable* if there exists a Turing machine $ D $ (called a decider) such that for every input $ x $:

  • If $ x \in L $ (a member), then $ D $ halts and accepts.
  • If $ x \notin L $ (a non-member), then $ D $ halts and rejects.

If no such machine exists that is, if every Turing machine that correctly accepts all members must either loop or give an incorrect answer on some non-member then the language is undecidable.

Proof by Contradiction

Assume, for contradiction, that $ A_{\text{TM}} $ is decidable. Then there exists a decider $ D $ such that:

On input $ \langle M, w \rangle $:

  • $ D $ halts and accepts if $ M $ accepts $ w $.
  • $ D $ halts and rejects if $ M $ does not accept $ w $ (including cases where $ M $ rejects or loops on $ w $).

Using $ D $, we construct a new Turing machine $ R $ as follows:

Machine $ R $ on input $ \langle M \rangle $ (the encoding of a Turing machine):

  1. Run $ D $ on input $ \langle M, \langle M \rangle \rangle $.
  2. If $ D $ accepts, then rreject.
  3. If $ D $ rejects, then accept.

Now consider what happens when $ R $ is run on its own description $ \langle R \rangle $:

  • Suppose $ R $ accepts $ \langle R \rangle $. Then, by step 2, $ D $ must have rejected $ \langle R, \langle R \rangle \rangle $, which means $ R $ does not accept $ \langle R \rangle $. Contradiction.
  • Suppose $ R $ rejects $ \langle R \rangle $. Then, by step 3, $ D $ must have accepted $ \langle R, \langle R \rangle \rangle $, which means $ R $ does accept $ \langle R \rangle $. Contradiction.

Thus, the assumption that $ D $ exists leads to a logical impossibility. Therefore, no decider for $ A_{\text{TM}} $ exists, and $ A_{\text{TM}} $ is undecidable.

Behavior on Members vs. Non-Members

This result hinges on the fundamental asymmetry between members and non-members:

  • For members of $ A_{\text{TM}} $ (i.e., pairs $ \langle M, w \rangle $ where $ M $ eventually accepts $ w $), we can simulate $ M $ on $ w $. If the simulation halts in an accept state, we accept. Hence, $ A_{\text{TM}} $ is recursively enumerable (semi-decidable).
  • For non-members especially those where $ M $ loops forever on $ w $ any simulation will also run forever and never halt. Thus, we cannot construct a machine that halts on all non-members to reject them.

Because a decider must halt on every input, and we cannot algorithmically distinguish infinite loops from long but finite computations, no decider for $ A_{\text{TM}} $ can exist.

The acceptance problem $ A_{\text{TM}} $ is undecidable: there is no algorithm that, given arbitrary $ M $ and $ w $, always correctly determines whether $ M $ accepts $ w $.

0 0 votes

It is true it is simply because we don't know what TM will do to"w" , and this is  known as halting problem of TM

if w is finite or member of TM  we can immediately say it is decidable but since we don't even know what TM will do to "w",  we cannot say whether the TM will ever halt or not 

Even if $w$ is a perfectly valid member of the language $L(M)$ (meaning the machine will eventually accept it), you cannot know that ahead of time without running it. And running it is where the trap lies.

Answer:
Position:
Show:

Related questions

21 21 votes
5 answers 5 answers
6.9k
6.9k views
Misbah Ghaya asked Nov 9, 2016
6,905 views
State whether the following statement are TRUE or FALSE.$A$ is recursive if both $A$ and its complement are accepted by Turing machines.
27 27 votes
4 answers 4 answers
6.5k
6.5k views
Misbah Ghaya asked Nov 9, 2016
6,541 views
State whether the following statements are TRUE or FALSE:The intersection of two CFL's is also a CFL.
18 18 votes
2 answers 2 answers
4.8k
4.8k views
Misbah Ghaya asked Nov 9, 2016
4,773 views
State whether the following statements are TRUE or FALSE:All subsets of regular sets are regular.
22 22 votes
5 answers 5 answers
6.5k
6.5k views
Misbah Ghaya asked Nov 9, 2016
6,454 views
State whether the following statements are TRUE or FALSE:Regularity is preserved under the operation of string reversal.