4.6.13 · D1Theory of Computation

Foundations — Turing machines — formal definition, computation, configurations

2,295 words10 min readBack to topic

Before you can read the parent note (topic note), you need to see every symbol it throws at you. We build them one at a time, each on top of the last. Nothing is used before it is drawn.


0. The two things everything sits on: a set and a string

Two words appear on every line of the parent note, so let us pin them down first.

The parent note needs these because a Turing machine's whole job is to read and rewrite strings built from an alphabet.


1. The tape — the infinite strip

Figure — Turing machines — formal definition, computation, configurations

Why infinite? Because we want no memory limit. A finite automaton has a fixed brain; a real computer runs out of RAM. The tape's endlessness is what makes the model able to compute anything computable.


2. The blank symbol


3. Two alphabets: and

Figure — Turing machines — formal definition, computation, configurations

The symbol means "is a subset of" — every member of the left set is also in the right set. So says: whatever you may type as input, the machine can also write on the tape.


4. States and the head — the "mood" and the "finger"

Figure — Turing machines — formal definition, computation, configurations

Three named states matter specially:


5. Direction


6. The transition function — the rulebook

Figure — Turing machines — formal definition, computation, configurations

Now the biggest symbol. Everything above was nouns; is the verb.


7. Putting all seven together


8. The configuration string

This is the notation that trips people up most, so we earn it slowly.


9. The "yields" arrow

The parent note's yield rules (move-right, move-left, left-edge) are just this one idea spelled out for each direction. You now have every symbol needed to read them.


10. Language, recognize, decide


Prerequisite map

Set and membership

Alphabet and string

Blank symbol

Two alphabets Sigma and Gamma

Infinite tape and cells

States Q and head

Direction L or R

Transition function delta

The 7 tuple M

Configuration u q v

Yields arrow

Computation and language

Turing machine topic 4.6.13

Where does this all lead? These same foundations power the whole neighbourhood: Finite Automata and Pushdown Automata are weaker cousins, Multitape Turing Machines and Nondeterministic Turing Machines are equal-power variants, and the Church-Turing Thesis claims this simple picture captures all of computation.


Equipment checklist

Self-test: cover the right side and answer before revealing.

What does mean?
is a member of the set .
What is a string over an alphabet ?
A finite row of symbols each taken from .
What does denote?
The set of all strings (any length, including empty) over .
What is the blank symbol for?
It marks an empty cell, letting the machine detect the end of real input.
Why are there two alphabets and ?
is input-only; adds blank and scratch markers for bookkeeping.
State the containment relation between them.
and but .
What is a "state" in plain words?
The machine's current mood — what it's in the middle of doing.
Why must ?
Otherwise "yes" and "no" would be the same state and answers would be meaningless.
What are the only two head moves?
(one cell left) or (one cell right).
What does tell the machine to do?
In state reading : go to state , write , move in direction .
Why is a function and not just a relation?
A function gives exactly one output per input, making the machine deterministic.
In , what symbol is the head reading?
The first symbol of (blank if is empty).
What does mean?
is what you get by applying once to .
What is a language?
A set of strings.
Recognizable vs decidable — the one-word difference?
A decider always halts; a recognizer may loop forever on non-members.