levo

Theory of Computation

Turing machines

  • 2 things to know
  • Paper 1
Start revising · £5/month

Overview

Recall questions on the tape, start and halting states, the transition function and its diagram, and hand-tracing a machine over a given input.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Process

How does a transition function relate to a state transition diagram?

Key term

What happens if a Turing machine is in a state and reads a symbol for which the transition function has no rule?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a Turing machine?

    Model answer

    A Turing machine is a theoretical model of computation: a machine running one fixed program, expressed as a finite set of states drawn as a state transition diagram, together with a finite alphabet of the symbols it may read and write, an endless tape divided into squares, and a sensing read-write head that examines one square at a time and can travel along the tape. Each step reads the symbol beneath the head and, on the basis of the current state, writes a symbol, shifts the head one square left or right, and enters a new state.

  2. 2

    List the four components a Turing machine's fixed program is expressed with.

    Model answer

    Its program is given by four things: the states, finite in number and normally drawn as a state transition diagram; the alphabet, also finite, of symbols that may appear on the tape; the tape itself, endless and marked off into squares; and a sensing read-write head that examines the square it rests on and moves one square at a time along the tape.

  3. 3

    Describe the tape of a Turing machine as it is used in examination questions.

    Model answer

    One tape only, infinite in one direction. It is divided into squares, each holding a single symbol from the machine's alphabet, with blank squares represented by a special blank symbol that is part of the alphabet. The input is written on the tape at the start, the head begins at a specified square, and the tape serves as both the input, the working store and the output — whatever remains on it when the machine halts is the result.

  4. 4

    What is the start state, and what is a halting state?

    Model answer

    The start state is the one the machine occupies before it has read anything, so computation begins there. A halting state is one from which no transition leads: on reaching it the machine has no rule left to apply and therefore stops. A machine that never arrives at such a state simply carries on forever.

  5. 5

    What is the transition function of a Turing machine?

    Model answer

    The transition function is the machine's rules written as a mapping. It takes the current state together with the symbol currently under the head, and gives the next state, the symbol to write in that square and the direction to move the head, left or right. It is commonly written as δ(current state, symbol read) = (next state, symbol written, direction), for example δ(S0, 1) = (S1, 0, R).

  6. 6

    How does a transition function relate to a state transition diagram?

    Model answer

    They are two ways of writing down the very same set of rules, and each converts mechanically into the other. A single line of the transition function, δ(Sa, x) = (Sb, y, D), becomes a single arrow in the diagram: it runs from Sa to Sb and carries the label x/y, D — read x, write y, then move in direction D. Nothing can be stated in one form that cannot be stated in the other. The tabular form makes it easy to confirm that every combination of state and input symbol has been given a rule; the diagram makes the loops and the machine's overall shape visible at a glance.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Fundamentals of Programming
Fundamentals of Data Structures
Fundamentals of Algorithms
Theory of Computation

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A driver is .
softwarehardwarestorage

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Head means the first single element of a non-empty list.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Theory of Computation, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.