0% found this document useful (0 votes)
78 views23 pages

More Undecidable Problems: Deepak D'Souza

- Problem (f) asks if it is decidable whether a given Turing machine accepts the null string. This is undecidable, as it could be used to solve the halting problem. - Problem (j) asks if it is decidable whether a given Turing machine accepts a regular set. This is undecidable, as a reduction is given to the non-regular language {anbn| n≥0}. - Problem (l) asks if it is decidable whether a given Turing machine accepts a recursive set, which is undecidable in general.

Uploaded by

deepakk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views23 pages

More Undecidable Problems: Deepak D'Souza

- Problem (f) asks if it is decidable whether a given Turing machine accepts the null string. This is undecidable, as it could be used to solve the halting problem. - Problem (j) asks if it is decidable whether a given Turing machine accepts a regular set. This is undecidable, as a reduction is given to the non-regular language {anbn| n≥0}. - Problem (l) asks if it is decidable whether a given Turing machine accepts a recursive set, which is undecidable in general.

Uploaded by

deepakk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

More problems about Turing Machines

More undecidable problems

Deepak D’Souza

Department of Computer Science and Automation


Indian Institute of Science, Bangalore.

18 November 2019
More problems about Turing Machines

Outline

1 More problems about Turing Machines


More problems about Turing Machines

More decidable/undecidable problems

Problem (a)
Is it decidable whether a given Turing machine has at least 481
states? Assume that the TM is given using the encoding below:
n m k s t r u v p a q b p0 a0 q0 b0 p 00 a00 q 00 b 00
0 10 10 10 10 10 10 10 1 0 10 10 10 10 1 0 10 10 10 100 · · · 1 0 10 10 10 10.

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.


More problems about Turing Machines

More decidable/undecidable problems

Problem (a)
Is it decidable whether a given Turing machine has at least 481
states? Assume that the TM is given using the encoding below:
n m k s t r u v p a q b p0 a0 q0 b0 p 00 a00 q 00 b 00
0 10 10 10 10 10 10 10 1 0 10 10 10 10 1 0 10 10 10 100 · · · 1 0 10 10 10 10.

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Yes, it is.
We can give a TM N which given enc(M)
Counts the number of states in M upto 481.
Accepts if it reaches 481, rejects otherwise.
More problems about Turing Machines

More decidable/undecidable problems


Problem (b)
Is it decidable whether a given Turing machine takes more than
481 steps on input  without halting?

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.


More problems about Turing Machines

More decidable/undecidable problems


Problem (b)
Is it decidable whether a given Turing machine takes more than
481 steps on input  without halting?

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Yes, it is.
We can give a TM N which given enc(M)
Uses 4 tapes: On the 4th tape it writes 481 0’s.
Uses the first 3 tapes to simulate M on input , like the
universal TM U.
Blanks out a 0 from 4th tape for each 1-step simulation done
by U.
Rejects if M halts before all 0’s are blanked out on 4th tape,
accepts otherwise.
More problems about Turing Machines

More decidable/undecidable problems

Problem (c)
Is it decidable whether a given Turing machine takes more than
481 steps on some input without halting?

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.


More problems about Turing Machines

More decidable/undecidable problems

Problem (c)
Is it decidable whether a given Turing machine takes more than
481 steps on some input without halting?

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Yes, it is.
Check if M runs for more than 481 steps on some input x of length
upto 481. If so accept, else reject.
1 2 3 481 482

` a a b a b a a a [ [
More problems about Turing Machines

More decidable/undecidable problems

Problem (d)
Is it decidable whether a given Turing machine takes more than
481 steps on all inputs without halting?

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.


More problems about Turing Machines

More decidable/undecidable problems

Problem (d)
Is it decidable whether a given Turing machine takes more than
481 steps on all inputs without halting?

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Yes, it is.
Check if M runs for more than 481 steps on each input x of length
upto 481. If so accept, else reject.
1 2 3 481 482

` a a b a b a a a [ [
More problems about Turing Machines

More decidable/undecidable problems

Problem (e)
Is it decidable whether a given Turing machine moves its head
more than 481 cells away from the left-end marker, on input ?

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.


More problems about Turing Machines

More decidable/undecidable problems

Problem (e)
Is it decidable whether a given Turing machine moves its head
more than 481 cells away from the left-end marker, on input ?

00010000100101001000100010000 1 01000101000100 1 0100100100100 1 010101010.

Yes, it is.
Simulate M on  for upto m481 · 482 · k + 1 steps. If M visits the
482nd cell, accept, else reject.
1 2 3 481 482

` a a b a b a a a [ [
More problems about Turing Machines

More decidable/undecidable problems

Problem (f)
Is it decidable whether a given Turing machine accepts the
null-string ?
More problems about Turing Machines

More decidable/undecidable problems

Problem (f)
Is it decidable whether a given Turing machine accepts the
null-string ?

No.
If it were decidable, say by a TM N, then we could use N to decide
HP as follows: Define a new machine N 0 which given input M#x,
0
outputs the description of a machine MM,x which:
erases its input
writes x on its input tape
Behaves like M on x
Accepts if M halts on x.
N 0 then calls N with input MM,x
0 .
0 0
N accepts MM,x iff MM,x accepts  iff M halts on x.
More problems about Turing Machines

Turing machine M 0 for Problem (f)

A∗ if M halts on x

0
L(MM,x ) =
∅ if M does not halt on x.
More problems about Turing Machines

More decidable/undecidable problems

Problem (g)
Is it decidable whether a given Turing machine accepts any string
at all? That is, is L(M) 6= ∅?
More problems about Turing Machines

More decidable/undecidable problems

Problem (h)
Is it decidable whether a given Turing machine accepts all strings?
That is, is L(M) = A∗ ?
More problems about Turing Machines

More decidable/undecidable problems

Problem (i)
Is it decidable whether a given Turing machine accepts a finite set?
More problems about Turing Machines

More decidable/undecidable problems

Problem (j)
Is it decidable whether a given Turing machine accepts a regular
set?
More problems about Turing Machines

More decidable/undecidable problems

Problem (j)
Is it decidable whether a given Turing machine accepts a regular
set?
Given M and x, build a new machine M 0 that behaves as follows:
1 Saves its input y on tape 2.
2 writes x on tape 1.
3 runs as M on x.
4 if M gets into a halting state, then
M 0 takes back control,
Runs as MNR on y ,
(Here MNR is any TM that accepts a non-regular language
NR, say NR = {an b n | n ≥ 0}).
M 0 accepts iff MNR accepts.
More problems about Turing Machines

Turing machine M 0 for Problem (j)


0 NR if M halts on x
L(M ) =
∅ if M does not halt on x.
More problems about Turing Machines

More decidable/undecidable problems

Problem (k)
Is it decidable whether a given Turing machine accepts a CFL?
More problems about Turing Machines

More decidable/undecidable problems

Problem (l)
Is it decidable whether a given Turing machine accepts a recursive
set?

You might also like