Why does giving a Turing machine extra work tapes not change what it can compute, only how fast?
answer
- convenience, not power
- one head sees one cell
- k tapes become interleaved tracks
- each simulated step sweeps the region
- region grows with t, so cost squares
basics
~20 sExtra tapes are convenience, not power: one tape can hold all of them as interleaved tracks with a marker per head, and reproduce every step. Each simulated step then sweeps the used region, turning t steps into roughly t squared.
solid answer
~40 sA k-tape machine reads k cells at once and writes and moves k heads independently, which makes many algorithms easy to state. A single-tape machine can hold the same information by dividing each cell into `2k` tracks — one content track per tape plus one marker track per head — over a larger but still finite alphabet. To reproduce one k-tape step it sweeps the used region once to collect the k scanned symbols, consults its table, then sweeps back writing the new symbols and shifting each marker one cell. After t simulated steps the used region is proportional to t, so the per-step sweep costs order t and the whole run costs order t squared. Every result is identical; only the step count grows.
code
pseudocode · 14 lines# one cell of the simulating tape is a record of 2k fields:
# content[1..k] and marker[1..k], marker[i] set where tape i's head sits
simulate_one_step():
sweep right over the used region:
for each cell, for each i:
if marker[i] is set: remember sym[i] = content[i]
(next_state, write[1..k], dir[1..k]) = table[state][sym[1..k]]
sweep left back over the used region:
for each cell, for each i:
if marker[i] is set:
content[i] = write[i]
clear marker[i], set it on the neighbour in dir[i]
state = next_statego deeper
Remember the headline: more tapes make a machine easier to describe and faster to run, but never able to compute something a single tape could not. The extra tapes are working space, not new abilities.
Explain the flattening: each cell carries one content track and one head marker per simulated tape, and a step becomes a sweep out to read the marked cells and a sweep back to write and move them.
Carry the arithmetic. After t steps the touched region is proportional to t, so a sweep per step sums to order t squared, and be clear that this is a statement about the number of steps and not about what results are reachable.
Watch for the argument that a design is acceptable because it is equivalent to a simpler model. Equivalence settles feasibility only; any claim about latency or throughput has to be made in the model the work will really run in.
## What a multi-tape machine adds A k-tape Turing machine has one finite control and k tapes, each with its own head. A single entry of its table reads all k scanned symbols at once and prescribes, for each tape, a symbol to write and a one-cell move — the heads move independently, so one may go left while another goes right or a third stays in place as far as the algorithm cares. That is a real convenience. Copying a block from one place to another, comparing two blocks symbol by symbol, or keeping a counter beside a scan are all straightforward with a second tape and painful with one, where the head must shuttle back and forth between the two regions it is relating. ## The simulation One tape reproduces k by **interleaving tracks**. Each cell of the simulating tape is treated as a small record with `2k` fields: for each simulated tape, one field holding that tape's symbol at this position, and one field holding a marker that is set only where that tape's head currently sits. If the simulated alphabet has `a` symbols, each cell now draws from an alphabet of `(2a)^k` values — larger, and crucially still finite, so this is a legal tape alphabet and not a smuggled-in unbounded one. One simulated step becomes: 1. Sweep right across the used region, noting the symbol found under each of the k markers, and carry those k symbols in the finite control — which can hold them, because k is fixed. 2. Consult the table entry for the current state together with those k symbols. 3. Sweep back across the region, and at each marker write the prescribed symbol into that track and shift that marker one cell in the prescribed direction. 4. Adopt the next state. ## Where the quadratic factor comes from Let `n` be the input length and `t` the number of steps the k-tape machine takes. Each head moves at most one cell per step, so after t steps the region that has been touched is at most about `n + 2t` cells wide — proportional to t once t is at least n. The simulator pays a sweep of that width for each simulated step, so the cost is the sum of a linear quantity over t steps, which is of order t squared. | | k-tape machine | single-tape simulation | |---|---|---| | one step | reads k cells, writes k, moves k heads | two sweeps of the used region | | cost of one simulated step | one | order t, growing as the region spreads | | total for t steps | t | order t squared | | tape alphabet | a symbols | `(2a)^k` symbols, still finite | | results produced | the same outputs on the same inputs | the same outputs on the same inputs | ## What this does and does not say - It says the extra tapes buy **no new computational power**: every computation the k-tape machine performs, the one-tape machine performs, reaching the same result on the same input. - It says the extra tapes buy **speed and legibility**: a two-tape copy that is linear becomes noticeably worse when flattened, and the flattened table is much harder to read. - It does **not** say the two machines are interchangeable in any practical sense. A quadratic factor is a real cost, and 'same power' is a statement about what is reachable in principle, not about what fits a budget. - It does **not** rescue a non-halting computation, and it does not condemn a halting one: the simulation halts exactly when the simulated machine halts, only later in step count. - The multiplied alphabet is also a cost in the other direction: the table grows with the number of distinct symbol combinations, so a many-tape machine flattened this way has a large table even though it is a finite one. The practical lesson for anyone writing specifications is to use the convenient model for describing the algorithm and to remember that a claim of the form 'this is just a machine with a few more tapes' settles feasibility and nothing about cost. Any argument that turns on how long something takes has to be made in the model the work will actually be done in.
- If extra tapes add no power, why specify a machine with several of them at all?Because the specification is for human readers and for honest step counts of the algorithm being described. A two-tape copy or comparison reads as the operation it is, while the one-tape version buries the idea under shuttling. You describe the algorithm in the convenient model and treat the flattening as an existence argument, not as the implementation.
- Does the simulation need an alphabet that grows with the input?No, and that is what makes it legal. Each cell holds k content fields and k marker fields, giving an alphabet of size (2a)^k where a is the simulated alphabet size and k the number of tapes. Both are fixed before the machine ever runs, so the alphabet is finite and independent of input length.
- Where exactly does the quadratic factor come from?The simulated heads drift apart, so collecting the k scanned symbols means crossing the whole stretch of tape that has been touched. After t steps that stretch is proportional to t, so a single simulated step costs order t, and summing that cost over t steps gives order t squared.
saying these in an interview costs you the question
- Says extra tapes let a machine compute something one tape cannot
- Claims the flattening costs only a constant factor
- Thinks the simulating tape needs an alphabet that grows with input
- Assumes one head can read several cells in a single step
- Treats the quadratic slowdown as changing what is computable