ArticleslgStudy

science

Turing machine examples

Turing machine examples is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Turing machine examples rather than just read about it. In short: The following are examples to supplement the article Turing machine. Turing's first example The following table is Turing's very first example (Turing 1937): "1.

Turing machine examples — main illustration
Turing machine examples — illustration

Key takeaways

  • Turing machine examples belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Turing machine examples to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Turing machine examples from memory before moving on to harder problems.

Reference excerpt

The following are examples to supplement the article Turing machine.

Turing's first example The following table is Turing's very first example (Turing 1937):

"1. A machine can be constructed to compute the sequence 0 1 0 1 0 1..." (0 <blank> 1 <blank> 0...)

With regard to what actions the machine actually does, Turing (1936) states the following:

"This [example] table (and all succeeding tables of the same kind) is to be understood to mean that for a configuration described in the first two columns the operations in the third column are carried out successively, and the machine then goes over into the m-configuration in the final column." He makes this very clear when he reduces the above table to a single instruction called "b", but his instruction consists of 3 lines. Instruction "b" has three different symbol possibilities {None, 0, 1}. Each possibility is followed by a sequence of actions until we arrive at the rightmost column, where the final m-configuration is "b":

As observed by a number of commentators including Turing (1937) himself, (e.g., Post (1936), Post (1947), Kleene (1952), Wang (1954)) the Turing instructions are not atomic — further simplifications of the model can be made without reducing its computational power; see more at Post–Turing machine. As stated in the article Turing machine, Turing proposed that his table be further atomized by allowing only a single print/erase followed by a single tape movement L/R/N. He gives us this example of the first little table converted:

Turing's statement still implies five atomic operations. At a given instruction (m-configuration) the machine:

observes the tape-symbol underneath the head based on the observed symbol goes to the appropriate instruction-sequence to use prints symbol Sj or erases or does nothing moves tape left, right or not at all goes to the final m-configuration for that symbol Because a Turing machine's actions are not atomic, a simulation of the machine must atomize each 5-tuple into a sequence of simpler actions. One possibility — used in the following examples of "behaviors" of his machine — is as follows:

(qi) Test tape-symbol under head: If the symbol is S0 go to qi.01, if symbol S1 go to qi.11, if symbol S2 go to qi.21, etc. (qi.01) print symbol Sj0 or erase or do nothing then go to qi.02 (qi.02) move tape left or right nor not at all then go to qm0 (qi.11) print symbol Sj1 or erase or do nothing then go to qi.12 (qi.12) move tape left or right nor not at all then go to qm1 (qi.21) print symbol Sj2 or erase or do nothing then go to qi.22 (qi.22) move tape left or right nor not at all then go to qm2 (etc — all symbols must be accounted for) So-called "canonical" finite-state machines do the symbol tests "in parallel"; see more at microprogramming. In the following example of what the machine does, we will note some peculiarities of Turing's models:

The convention of writing the figures only on alternate squares is very useful: I shall always make use of it. Thus when printing he skips every other square. The printed-on squares are called F-squares; the blank squares in between may be used for "markers" and are called "E-squares" as in "liable to erasure." The F-squares in turn are his "Figure squares" and will only bear the symbols 1 or 0 — symbols he called "figures" (as in "binary numbers"). In this example the tape starts out "blank", and the "figures" are then printed on it. For brevity only the table states are shown here:

The same "run" with all the intermediate tape-printing and movements is shown here:

A close look at the table reveals certain problems with Turing's own example—not all the symbols are accounted for. For example, suppose his tape was not initially blank. What would happen? The Turing machine would read different values than the intended values.

A copy subroutine This is a very important subroutine used in the "multiply" routine. The example Turing machine handles a string of 0s and 1s, with 0 represented by the blank symbol. Its task is to double any series of 1s encountered on the tape by writing a 0 between them. For example, when the head reads "111", it will write a 0, then "111". The output will be "1110111". In order to accomplish its task, this Turing machine will need only 5 states of operation, which are called {s1, s2, s3, s4, s5}. Each state does 4 actions:

Read the symbol under the head Write the output symbol decided by the state Move the tape to the left or to the right decided by the state Switch to the following state decided by the current state

Print Operation: Prints symbol S or Erases or does Nothing

A "run" of the machine sequences through 16 machine-configurations (aka Turing states):

The behavior of this machine can be described as a loop: it starts out in s1, replaces the first 1 with a 0, then uses s2 to move to the right, skipping over 1s and the first 0 encountered. s3 then skips over the next sequence of 1s (initially there are none) and replaces the first 0 it finds with a 1. s4 moves back to the left, skipping over 1s until it finds a 0 and switches to s5. s5 then moves to the left, skipping over 1s until it finds the 0 that was originally written by s1. It replaces that 0 with a 1, moves one position to the right and enters s1 again for another round of the loop. This continues until s1 finds a 0 (this is the 0 in the middle of the two strings of 1s) at which time the machine halts.

… excerpt ends here. Continue reading the full article.

Illustrations

Turing machine examples illustration
Turing machine examples illustration
Turing machine examples illustration

Worked examples

Example 1 — a first encounter with Turing machine examples

Start with the simplest possible case. Write down what Turing machine examples claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Turing machine examples before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Turing machine examples ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Turing machine examples

In research
Turing machine examples appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Turing machine examples in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Turing machine examples is common in secondary-school and first-year university syllabi. It links to neighbouring topics Turing machine, so understanding it makes those chapters shorter.
In everyday life
Look for Turing machine examples outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Turing machine examples” →

How to study Turing machine examples in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Turing machine examples means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Turing machine examples out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Turing machine examples in simple terms?

The following are examples to supplement the article Turing machine. Turing's first example The following table is Turing's very first example (Turing 1937): "1.

Why does Turing machine examples matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Turing machine examples?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Turing machine examples.

Tags

  • Turing machine

Keep exploring