A single tape Turing Machine has two states and , of which is the starting state. The tape alphabet of is and its input alphabet is . The symbol is the blank symbol used to indicate end of an input string. The transition function of is described in the following table.
The table is interpreted as illustrated below.
The entry in row and column signifies that if is in state and reads on the current page square, then it writes on the same tape square, moves its tape head one position to the right and transitions to state .
Which of the following statements is true about ?
View worked solution
Answer: A
To determine the behavior of the Turing Machine , let us trace its execution on simple non-empty input strings:
Case 1: Input string is "0" (Tape: with head at in state )
- writes , moves , transitions to . Tape: , state .
- writes , moves , transitions to . Tape: , state .
- writes , moves , transitions to . Tape: , state .
Steps 2 and 3 repeat indefinitely. Thus, does not halt on "0".
Case 2: Input string is "1" (Tape: with head at in state )
- writes , moves , transitions to . Tape: , state .
- writes , moves , transitions to . Tape: , state .
This also results in an infinite loop.
General Analysis:
- If encounters a in state , it writes , moves left, and transitions to . In state , it reads that same , writes , moves right, and transitions back to . This creates an immediate infinite loop between these two adjacent cells.
- If reaches the end of the input string (blank symbol ) in state , it writes , moves left, and transitions to (where it reads ). From reading , it moves right to in state , creating an infinite loop at the boundary.
Thus, never halts on any non-empty string, meaning it does not halt on any string in . Note that halts on the empty string (since ), which belongs to , making option B false.
Free practice · Your answers on this page are not saved.
