0

Is it decidable whether a Turing machine takes more than 481 steps for some input?

This was asked in one of the exams. I found some solutions but are not clear to me.

user55531
  • 309

1 Answers1

1

In $481$ steps the Turing machine can't look at more than the first $481$ positions on the input tape. Therefore, just simulate the first $481$ steps for each of the possibilities for the contents of those positions of the input tape...

Robert Israel
  • 448,999
  • There are $2^{481}$ possible contents. For each these input strings the Turing machine is simulated. If for some input it takes more than 481 steps , accept. Whats the rejection criterion? – user55531 Apr 03 '13 at 06:10
  • Reject if, after trying all possible inputs, you haven't accepted. – Robert Israel Apr 03 '13 at 07:16