Theory of Computation & Computer Graphics β Turing Machine, NEC licence examination syllabus (Nepal Engineering Council).
TM with Multiple Tracks
One tape, several parallel lanes β a notational convenience that costs nothing.
π Where this lives: The multi-track idea is exactly how a computer packs several fields into one machine word. A processor's status register holds a dozen independent flags in a single word, and a graphics pipeline packs red, green, blue and alpha into one 32-bit integer. In each case a composite symbol from a larger alphabet stands in for several parallel symbols from smaller ones β the same trick this topic uses to fit k tracks onto one tape. Search "bit packing composite data types processor status register".
The construction
A MULTI-TRACK TURING MACHINE HAS ONE TAPE DIVIDED INTO k
PARALLEL TRACKS. THE HEAD READS ALL k TRACKS OF A CELL AT ONCE
AND WRITES ALL k AT ONCE.
βββββ¬ββββ¬ββββ¬ββββ¬ββββ
β a β b β a β b β B β β track 1
βββββΌββββΌββββΌββββΌββββ€
β X β B β B β Y β B β β track 2
βββββΌββββΌββββΌββββΌββββ€
β 0 β 1 β 1 β 0 β B β β track 3
βββββ΄ββββ΄ββββ΄ββββ΄ββββ
β²
ONE head, reading all three
ββ THE KEY POINT βββββββββββββββββββββββββββββββββββββββββββ
THERE IS ONLY ONE HEAD, AND IT READS AND WRITES A WHOLE
COLUMN.
This is what distinguishes multi-TRACK from multi-TAPE, which
is the next topic. A multi-tape machine has INDEPENDENT heads
that can be at different positions; A MULTI-TRACK MACHINE'S
TRACKS ARE ALWAYS ALIGNED, because there is one head serving
all of them.
CONFUSING THE TWO IS THE COMMONEST ERROR IN THIS PART OF THE
SYLLABUS.
ββ THE EQUIVALENCE βββββββββββββββββββββββββββββββββββββββββ
A k-TRACK TURING MACHINE IS EXACTLY EQUIVALENT TO A
SINGLE-TRACK TURING MACHINE β with NO loss of power and NO
loss of speed.
THE PROOF IS ONE SENTENCE: TAKE THE TAPE ALPHABET TO BE
TUPLES.
Ξ_single = Ξβ Γ Ξβ Γ β¦ Γ Ξ_k
A single symbol of the new alphabet IS a whole column of the
old machine. Reading it reads all tracks at once; writing it
writes all tracks at once.
SO MULTI-TRACK IS NOT A DIFFERENT MACHINE AT ALL β IT IS A
DIFFERENT WAY OF DRAWING THE SAME MACHINE, with the tape
alphabet factored into components.
THE ALPHABET GROWS MULTIPLICATIVELY:
2 tracks over a 3-symbol alphabet β 3Β² = 9 symbols
3 tracks over a 3-symbol alphabet β 3Β³ = 27 symbols
2 tracks over a 5-symbol alphabet β 5Β² = 25 symbols
A FINITE ALPHABET STAYS FINITE HOWEVER MANY TRACKS ARE USED,
which is all the definition requires. THE SIZE IS
IRRELEVANT TO COMPUTABILITY β only finiteness matters.
AND CRUCIALLY: THERE IS **NO TIME PENALTY**. Each step of the
k-track machine is one step of the single-track machine. This
is unlike the multi-tape case, where the simulation costs a
quadratic slowdown β the difference being that here nothing
needs to be searched for, since the tracks are already
aligned under one head.
ββ WHAT TRACKS ARE USED FOR ββββββββββββββββββββββββββββββββ
1. KEEPING THE INPUT INTACT.
Track 1 holds the original input, untouched; track 2 holds
the working marks. The machine can therefore re-read the
input after modifying its workspace β impossible on a
single track without destroying data.
2. MARKING WITHOUT CHANGING THE ALPHABET.
Instead of introducing marked symbols X and Y into Ξ, put a
marker on a second track directly above the symbol.
CLEANER, because the input alphabet is left alone.
3. CARRYING A COUNTER.
One track holds the data, another holds a binary counter
that the machine increments as it works.
4. BINARY ARITHMETIC.
Adding two binary numbers: track 1 holds the first number,
track 2 the second, track 3 the running carry and result.
The head sweeps right to left performing the addition
column by column, EXACTLY AS ONE DOES BY HAND β which is
the natural way to program it and impossible to arrange on
a single track.
5. IMPLEMENTING THE TWO-WAY INFINITE TAPE, below.
ββ THE TWO-WAY INFINITE TAPE SIMULATION ββββββββββββββββββββ
A standard and elegant use, and a likely exam question.
PROBLEM: some definitions give the machine a tape infinite in
BOTH directions; the standard definition gives one infinite
only to the right. Show they are equivalent.
SOLUTION β FOLD THE TAPE AT THE ORIGIN ONTO TWO TRACKS:
two-way tape: β¦ cββ cββ cββ [cβ] cβ cβ cβ β¦
becomes track 1: cβ cβ cβ cβ β¦ (right half)
track 2: # cββ cββ cββ β¦ (left half,
reversed)
A special marker # in the first cell of track 2 identifies
the fold point.
THE MACHINE KEEPS AN EXTRA BIT OF STATE recording which
track it is currently "on". WHEN IT IS ON TRACK 2, THE
DIRECTIONS ARE REVERSED β moving left on the original tape
means moving right along track 2.
REACHING THE FOLD SWITCHES TRACKS.
SO A ONE-WAY INFINITE TAPE WITH TWO TRACKS SIMULATES A
TWO-WAY INFINITE TAPE EXACTLY, step for step. THE
"INFINITE IN BOTH DIRECTIONS" VARIANT ADDS NOTHING.
Place in the robustness argument
ββ WHY THESE EQUIVALENCE RESULTS MATTER ββββββββββββββββββββ
Multi-track is the first of a series of variants, each shown
equivalent to the basic model:
MULTIPLE TRACKS no cost at all
TWO-WAY INFINITE TAPE no cost (via two tracks)
STAY-PUT option no cost (replace S by R then L)
LARGER TAPE ALPHABET no cost
MULTIPLE TAPES quadratic time cost
NON-DETERMINISM exponential time cost
MULTIPLE HEADS polynomial cost
TWO-DIMENSIONAL TAPE polynomial cost
NONE CHANGES WHAT CAN BE COMPUTED.
THE ARGUMENT THIS BUILDS TOWARD IS THE CHURCH-TURING THESIS.
Each result says "this apparently more powerful machine is
really the same machine". After enough such results, the claim
that the model captures computation in general becomes
difficult to resist β not because it is proved, but because
every attempt to exceed it has failed in the same way.
ββ THE PRACTICAL VALUE IN CONSTRUCTIONS ββββββββββββββββββββ
In an exam or a proof, MULTI-TRACK MACHINES ARE USED FREELY
WITHOUT APOLOGY, exactly as one uses subroutines when writing
a program. The equivalence proof licenses this: describe the
machine in whichever form is clearest, and the reader knows a
single-track machine exists.
A WORKED ILLUSTRATION β COMPARING TWO BINARY NUMBERS:
"Track 1 holds x, track 2 holds y, aligned at the right.
Sweep left to right. At the first column where the bits
differ, the number with 1 there is larger β record the
answer in the state and halt."
ON A SINGLE TRACK this would require repeatedly walking
between the two numbers, marking positions to remember where
one had got to β dozens of states and a quadratic number of
steps. ON TWO TRACKS IT IS A SINGLE LEFT-TO-RIGHT SWEEP.
THE COMPUTATION IS IDENTICAL IN POWER AND ENORMOUSLY
SIMPLER TO DESCRIBE, which is the whole point of the
variant.
ββ THE DISTINCTION RESTATED ββββββββββββββββββββββββββββββββ
MULTI-TRACK MULTI-TAPE
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
number of tapes ONE k
number of heads ONE k, INDEPENDENT
head positions all tracks share each head moves
one position separately
simulation cost NONE β relabel the QUADRATIC in time
alphabet
what it gives parallel DATA at parallel data at
the SAME position DIFFERENT positions
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
THE LAST ROW IS THE ESSENTIAL DIFFERENCE, and it explains the
cost difference too. TRACKS ARE FREE BECAUSE NOTHING HAS TO BE
SEARCHED FOR; TAPES COST TIME BECAUSE THE SINGLE SIMULATING
HEAD MUST TRAVEL BETWEEN THE POSITIONS THE INDEPENDENT HEADS
OCCUPY.
The last row explains the cost difference: tracks are free because nothing has to be searched for β they are already aligned under one head β while tapes cost time because a single simulating head must travel between the positions that independent heads occupy.
π Go further: Notice the shape of the argument this topic contributes to. Each variant β multiple tracks, a two-way tape, a stay-put option, a bigger alphabet β is shown to be the basic machine in disguise. None of these results is individually deep; the multi-track proof is literally one sentence about alphabets. Their cumulative weight is what matters: after enough failed attempts to build something stronger, the claim that this model captures computation in general becomes hard to resist. The Church-Turing thesis is not proved by any one of these results but is supported by all of them together, which is an unusual kind of scientific evidence in mathematics. Search "Turing machine variants robustness Church-Turing evidence".
π‘ Exam angle: draw a multi-track tape and stress that there is one head reading a whole column. Give the equivalence proof in its one-sentence form β Ξ = Ξβ Γ β¦ Γ Ξ_k, so a composite symbol is a column β and note there is no time penalty. Be able to describe the uses: keeping the input intact, marking on a separate track, and binary arithmetic. The two-way infinite tape simulation by folding onto two tracks is a standard question, so know the reversed second track, the # marker and the extra state bit. Above all, distinguish multi-track from multi-tape clearly.
Syllabus points
Multi-track TM concept
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.