Turing Machines and Chocolate Computing
- 53Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is a Turing machine, and what does it model?
53 questions
- 1
What is a Turing machine, and what does it model?
Model answer
A Turing machine is a simple mathematical model of computation. It captures basic features of how computation works.
Explanation
It can be understood as a very simple theoretical computer whose operations follow explicit instructions.
- 2
Who created the idea of the Turing machine, and what was its original purpose?
Model answer
Alan Turing created it to explore what computers could possibly do, before actual computers existed.
Explanation
The machine began as a mathematical idea for investigating computation and its possibilities.
- 3
Why was a Turing machine originally a theoretical idea rather than a particular physical device?
Model answer
It was defined mathematically before computers existed, and there was no fixed requirement for what it had to be made from.
Explanation
Its essential properties are defined by its symbols and rules, not by its physical material.
- 4
How did Turing imagine people might operate a Turing machine?
Model answer
A person would follow the machine’s instructions step by step, moving and changing symbols as directed.
Explanation
In this conception, a human computer carries out the mechanical operations of the model.
- 5
What does it mean to say that an individual Turing machine has a fixed job?
Model answer
Its finite instruction table is built in, so that particular machine performs the task specified by that table.
Explanation
A basic machine is like a device with an embedded program; a universal Turing machine is a different design that can simulate many such machines.
- 6
Why can computation be described as symbol manipulation rather than as an activity exclusive to silicon computers?
Model answer
A computation consists of manipulating symbols according to rules, and the symbols can be represented using many different materials.
Explanation
Chocolate buttons, figures, or marks can represent symbols just as zeros and ones can.
- 7
What does the physical-material flexibility of a Turing machine demonstrate?
Model answer
The material is unimportant as long as the symbols and rules are clearly defined and used consistently.
Explanation
The same computation can be carried out with different physical representations of its symbols.
- 8
How does a Turing machine relate to a computer’s input, processing, and output?
Model answer
The initial tape is the input, the machine’s operations process it, and the final tape or stopping state can provide the output.
Explanation
This describes a Turing machine as a simple input/output model of computation.
- 9
What is the function of the tape in a Turing machine?
Model answer
The tape stores symbols and acts as the machine’s memory.
Explanation
The head reads and can change the symbol at its current tape position.
- 10
Why is a Turing machine’s tape treated as infinite?
Model answer
A computation may need more tape space than can be predicted in advance, so the model provides unlimited space.
Explanation
The tape must be large enough for any computation the machine is performing, even when its eventual space requirement is unknown.
- 11
In which directions can a Turing machine’s tape be defined to extend?
Model answer
Depending on the version, it can extend infinitely in both directions or in just one direction.
Explanation
These are alternative conventions that do not change the basic idea of the model.
- 12
Which part of a Turing machine reads and writes symbols, and what does it do?
Model answer
The read/write head examines the symbol at its position, can replace it, and moves along the tape.
Explanation
The machine changes tape contents only at the position where the head is pointing.
- 13
What does the state register record?
Model answer
It records the machine’s current state.
Explanation
The current state helps determine which instruction applies to the symbol under the head.
- 14
What is the purpose of a Turing machine’s instruction table?
Model answer
It specifies what the machine should do for each relevant combination of current state and scanned symbol.
Explanation
An instruction can specify a symbol to write, a head movement, and a new state.
- 15
Which parts of a Turing machine must be finite, and which part is infinite?
Model answer
The sets of symbols and states and the instruction table are finite; the tape is the only infinite part.
Explanation
A particular machine uses a fixed, finite collection of states and rules while having an unbounded tape.
- 16
What must be specified about the symbols used by a Turing machine?
Model answer
The allowed tape symbols, which symbols may appear initially, and which symbol represents a blank must be specified.
Explanation
The initial tape may use all allowed symbols or only a subset of them.
- 17
What states must be designated when defining a Turing machine?
Model answer
A finite set of possible states must be specified, including a start state and a stopping state.
Explanation
The start state initializes the computation, and the designated stop state signals its completion.
- 18
How can the blank symbol be represented on a Turing machine’s tape?
Model answer
It can be represented by a designated symbol or by the absence of a symbol in a tape position.
Explanation
For example, an empty position can serve as the blank symbol.
- 19
Can a Turing machine use more than two tape symbols? Give examples of possible symbol sets.
Model answer
Yes. It can use symbols such as the decimal digits, colors, or different kinds of figures, provided the symbols are agreed upon.
Explanation
A two-symbol alphabet is just a convenient choice for some demonstrations, not a requirement.
- 20
What alternative can be used to describe the head moving along the tape?
Model answer
The tape can instead be viewed as sliding back and forth past a stationary head.
Explanation
These descriptions are equivalent ways to represent the relative movement of the head and tape.
- 21
How can an instruction table be interpreted as a collection of conditional rules?
Model answer
Each rule says that if the machine is in a specified state and reads a specified symbol, it should perform specified actions.
Explanation
The actions can include writing a symbol, moving the head, and changing the state.
- 22
What actions can a Turing machine instruction prescribe?
Model answer
It can specify a symbol to write, a direction for the head to move, and the next state.
Explanation
Together, these actions determine the machine’s next configuration.
- 23
What causes a Turing machine to stop?
Model answer
It stops when it enters its designated stop state or when no instruction applies to its current situation.
Explanation
In either case, the machine has no further action to carry out.
- 24
How does the current state help a machine choose an instruction?
Model answer
The machine matches both its current state and the symbol under its head to the conditions in the instruction table.
Explanation
A rule for the right symbol but a different state does not match the current situation.
- 25
How can a Turing machine’s instruction table also be represented as a state-transition diagram?
Model answer
States can be shown as nodes, with transitions labeled by the relevant conditions and actions.
Explanation
The diagram and table express the same rules in different forms.
- 26
Why is it important to update the state after an instruction when the machine’s situation changes?
Model answer
The state records the machine’s situation and helps select the correct rule for subsequent actions.
Explanation
Changing state can prevent an instruction from being repeated when the machine has moved into a different phase of its task.
- 27
How are sequence, selection, and repetition represented in Turing machine computation?
Model answer
Sequence occurs as instructions are carried out in turn, selection occurs when conditional rules choose actions, and repetition occurs when the machine revisits rules or states.
Explanation
These three programming structures are present in the operation of Turing machines.
- 28
What is unary representation, and how is the number five represented in it?
Model answer
Unary represents a number by a count of repeated marks; five is represented by five marks.
Explanation
If a particular tape symbol is used as the mark, the number of occurrences represents the value.
- 29
How could a shepherd use unary representation to count goats?
Model answer
The shepherd could add one mark for each goat, so the total number of marks gives the number of goats.
Explanation
This illustrates unary counting through a one-to-one correspondence between objects and marks.
- 30
How does unary representation compare with binary or decimal representation in the examples?
Model answer
Unary uses repeated marks, whereas binary uses two digit symbols and decimal uses ten symbols, from zero to nine.
Explanation
A Turing machine can be designed to operate on any of these representations.
- 31
How can two unary numbers be separated on a tape?
Model answer
A blank symbol can be placed between the two groups of unary marks.
Explanation
The separator makes it possible to distinguish where the first number ends and the next begins.
- 32
Describe an algorithm for adding two unary numbers by joining their marks.
Model answer
Erase one mark at the start of the first number and write a mark in the gap between the numbers, leaving the marks as one continuous group.
Explanation
Moving a mark from the first number into the separating gap preserves the total number of marks and joins the two groups.
- 33
If a tape contains unary two, a blank separator, and unary three, what result should the joining algorithm leave?
Model answer
It should leave five consecutive unary marks.
Explanation
The algorithm combines the two marks and three marks into a single group of five.
- 34
How can a Turing machine add two to a unary number?
Model answer
It scans to the end of the number and changes the next two blank positions into unary marks.
Explanation
Each added mark increases the represented value by one.
- 35
Why is adding numbers especially straightforward in unary representation?
Model answer
Adding unary numbers can be done by joining their marks, and adding a fixed amount can be done by appending that many marks.
Explanation
The quantity is represented directly by the number of marks, so addition does not require changing place values.
- 36
Describe an alternative unary-addition algorithm that preserves the starting position of the number.
Model answer
Erase the last mark of the second number, move left across the tape, and fill the gap between the numbers with a mark.
Explanation
This alternative changes where the machine performs its edits and requires a more complicated set of instructions.
- 37
How can a unary-addition machine return its head to the left-hand end of the number before stopping?
Model answer
After adding the marks, it can enter a return state that moves left across the number until it reaches the blank just before its beginning, then move right onto the first mark.
Explanation
Separate states can handle moving to the number’s end and returning to its beginning.
- 38
How can doubling a binary number be accomplished using the representation described?
Model answer
Scan to the end of the binary number and append a zero; this multiplies its value by two.
Explanation
In binary, shifting the digits one place to the left by appending a zero doubles the represented value.
- 39
After appending a zero to double a binary number, how can the head be repositioned as in the described procedure?
Model answer
The machine can move left across the digits and stop when it reaches a blank.
Explanation
The blank marks the boundary of the number during the return scan.
- 40
What is the difference between the program for a basic Turing machine and the data on its initial tape?
Model answer
The instruction table is the machine’s fixed program, while the initial tape contains the data to be processed.
Explanation
The machine applies its built-in rules to the input represented on the tape.
- 41
What is a universal Turing machine?
Model answer
It is a Turing machine that can simulate any other Turing machine by interpreting a description of that machine and its input.
Explanation
Unlike a basic machine designed for one fixed task, the universal machine can perform different tasks from encoded instructions on its tape.
- 42
How does a universal Turing machine represent the machine it is simulating?
Model answer
It stores an encoded instruction table, the simulated machine’s current state, and its simulated tape contents on its own tape.
Explanation
The encoded rules and configuration provide the information needed to carry out the simulation.
- 43
How does a universal Turing machine use the encoded instruction table?
Model answer
It scans the encoded rules to find one that matches the simulated state and scanned symbol, then applies the rule to the simulated tape.
Explanation
It updates the simulated tape, head position, and state, then repeats the interpretation process.
- 44
Why must a universal Turing machine keep track of the simulated head position?
Model answer
It needs to know which position on the simulated tape is being read or changed.
Explanation
The universal machine’s own head is interpreting the encoded computation, so the simulated head position must be represented separately.
- 45
What computing idea is illustrated when a machine’s program is encoded on its tape along with its data?
Model answer
It illustrates the stored-program idea: one machine can perform different tasks when given different encoded programs and data.
Explanation
The universal machine interprets the program representation rather than relying on a separate fixed instruction table for every task.
- 46
What is meant by the fetch-and-execute process in a universal Turing machine?
Model answer
The machine finds an applicable encoded instruction, carries it out on the simulated configuration, and then searches for the next applicable instruction.
Explanation
This repeated interpretation and execution allows it to simulate the encoded machine.
- 47
What practical limitation arises when simulating an infinite tape on a modern computer?
Model answer
A real computer has finite memory, so its simulated tape can only be made large enough for the computations being attempted.
Explanation
The theoretical tape is infinite, while a practical simulation uses a finite approximation.
- 48
What did Turing seek to understand about computation?
Model answer
He sought to determine what machines could compute and whether some problems were uncomputable.
Explanation
The Turing machine provided a model for investigating the limits of computation.
- 49
What does it mean to say that a Turing machine can perform any computation a computer can perform?
Model answer
Any computation possible for a computer can, in principle, be carried out by a suitable Turing machine, although it may be slower.
Explanation
This concerns computational capability, not equal speed or practical convenience.
- 50
How does the computational capability of modern computers compare with that of Turing machines?
Model answer
Modern computers can perform computations much faster, but they do not compute anything beyond what a Turing machine can compute.
Explanation
The difference described is speed rather than the range of computable tasks.
- 51
What does the existence of uncomputable problems imply about computers?
Model answer
There are problems that no computer can solve by computation.
Explanation
Turing’s work helped establish that computation has limits.
- 52
Why is a Turing machine useful for studying the limits of computation?
Model answer
It provides a simple formal model that can represent the computations of ordinary computers, allowing researchers to reason about what is and is not computable.
Explanation
A simple model makes it possible to investigate general properties of computation rather than the details of a particular device.
- 53
Why can different physical implementations, such as chocolate or figures, perform the same computation?
Model answer
They can perform the same computation when each physical item consistently represents a symbol and the same rules are followed.
Explanation
The computation depends on the structured manipulation of symbols, not on the material used to represent them.

Ask anything
We've read this whole study set, so questions about it get the best answers.