1

How is it possible to set a turing machine in infinite loop by putting a string that doesn't belong to input language even if it has a reject state?

krhitesh
  • 777
  • 9
  • 14

1 Answers1

1

Consider the TM that does the following:

  1. Read a tape cell. If 0, halt accept. If 1, write 1, move right, and enter state 2.
  2. Read a tape cell. If 0, halt reject If 1, write 1, move left, and enter state 1.

This machine accepts strings 0* + 10*. It does not accept anything in 11* but it will loop forever on such a string.

Patrick87
  • 27,682
  • 3
  • 38
  • 73