Sub topic 4
Multi-Tape and Nondeterministic Machines Are Equivalent in Power
Prerequisites and the meaning of “power”
Assume you know the formal model of a deterministic single-tape Turing machine, configurations, and language recognition. Here, “equivalent in power” means that two machine models recognize or decide exactly the same class of languages. It does not mean that they use the same amount of time or space.
A multi-tape Turing machine has several tapes, each with its own read-write head. A transition can read all current tape symbols, write new symbols, and move every head independently. This makes algorithms easier to describe.
A nondeterministic Turing machine can have several possible transitions for the same state and scanned symbol. Its computation forms a tree rather than a single path. The machine accepts an input if at least one branch reaches an accepting state.
Simulating multiple tapes with one tape
A single-tape machine can encode all multi-tape contents on one tape. Separators divide the encoded tapes, and special markings identify the position of each simulated head.
For example, an encoding might look like this:
... # 0 a [b] c # [X] Y # 1 [0] 1 ...
The brackets mark simulated head positions. To perform one simulated multi-tape step, the single-tape machine:
- Scans the complete encoding to find every head marker.
- Reads the symbols under those markers.
- Uses the multi-tape transition rule.
- Scans again to write symbols and move the markers.
This simulation may be much slower because one simulated step can require several complete sweeps. However, every computation of the multi-tape machine can still be reproduced by a single-tape machine.
The reverse direction is immediate. A multi-tape machine can simulate a single-tape machine by using one tape and ignoring the others.
| Machine model | Main benefit | Same language power? |
|---|---|---|
| Single-tape deterministic TM | Simplest formal model | Yes |
| Multi-tape deterministic TM | Easier and often faster algorithms | Yes |
| Nondeterministic TM | Can explore alternatives conceptually in parallel | Yes |
Simulating nondeterminism deterministically
A deterministic machine can simulate the computation tree of a nondeterministic machine. It must avoid following one infinite branch forever while another branch would accept.
The standard method is breadth-first search. The simulator examines all branches of depth 0, then all branches of depth 1, then depth 2, and so on. It accepts as soon as it finds an accepting configuration.
For language recognition, this preserves acceptance: an accepting branch is eventually reached. If no branch accepts, the simulator may continue forever, just as the original recognizer may.
For deciders, every branch must halt. Because each configuration has finitely many successors, a computation tree with no infinite branch has finite height. The deterministic simulator can therefore eventually examine the whole relevant tree and reject.
What equivalence does not guarantee
Multi-tape machines often give shorter or faster algorithms. Nondeterministic machines can also make search problems look simple. The equivalence theorem concerns which languages are computable, not practical efficiency.
This distinction matters in complexity theory. Polynomial-time nondeterministic computation is believed to be more powerful in efficiency than polynomial-time deterministic computation, although the equality of these classes is unresolved. In computability theory, both models still recognize the same languages.
Exercise
A nondeterministic TM has one accepting branch of depth 20 and another branch that never halts. Can a deterministic simulator recognize the input?
Show answer
Yes. A breadth-first simulator eventually reaches depth 20 and finds the accepting branch, even though another branch is infinite.