levo

Theory of Computation

Turing machines

  • 2 things to know
  • Paper 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A driver is .
softwarehardwarestorage

Blank Blitz makes facts automatic

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

AThe integer 5 is 0101.
B0.75 is 1/2 + 1/4.
CThe fraction bits are 1100.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

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

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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