ArticleslgStudy

science

Decider (Turing machine)

Decider (Turing machine) 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 Decider (Turing machine) rather than just read about it. In short: In computability theory, a decider is a Turing machine that halts for every input. A decider is also called a total Turing machine as it represents a total function.

Key takeaways

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

Reference excerpt

In computability theory, a decider is a Turing machine that halts for every input. A decider is also called a total Turing machine as it represents a total function. Because it always halts, such a machine is able to decide whether a given string is a member of a formal language. The class of languages that can be decided by such machines is the set of recursive languages. Given an arbitrary Turing machine, determining whether it is a decider is an undecidable problem. This is a variant of the halting problem, which asks for whether a Turing machine halts on a specific input.

Functions computable by total Turing machines

In practice, many functions of interest are computable by machines that always halt. A machine that uses only finite memory on any particular input can be forced to halt for every input by restricting its flow control capabilities so that no input will ever cause the machine to enter an infinite loop. As a trivial example, a machine implementing a finitary decision tree will always halt. It is not required that the machine be entirely free of looping capabilities, however, to guarantee halting. If loops are restricted to be of a predictably finite size, with the number of iterations fixed on entry to the loop, all of the primitive recursive functions can be expressed. Examples of such machines are provided by the LOOP language of Meyer and Ritchie (1967) and by Hofstadter's BlooP (1979). Programming languages can also be designed so that even more sophisticated functions are guaranteed to halt. For example, the Ackermann function, which is not primitive recursive, is nevertheless a total computable function, computable by a term rewriting system with a reduction ordering on its arguments. Despite the above examples of programming languages which guarantee termination of the programs, there exists no programming language that captures exactly the total recursive functions, i.e. the functions that can be computed by a Turing machine that always halts. This is because existence of such a programming language would be a contradiction to the non-semi-decidability of the problem of whether a Turing machine halts on every input.

Relationship to partial Turing machines A general Turing machine will compute a partial function. Two questions can be asked about the relationship between partial Turing machines and total Turing machines:

Can every partial function computable by a partial Turing machine be extended (that is, have its domain enlarged) to become a total computable function? Is it possible to change the definition of a Turing machine so that a particular class of total Turing machines, computing all the total computable functions, can be found? The answer to each of these questions is no. The following theorem shows that the functions computable by machines that always halt do not include extensions of all partial computable functions, which implies the first question above has a negative answer. This fact is closely related to the algorithmic unsolvability of the halting problem.

Indeed, if g were a total computable function extending f then g would be computable by some Turing machine; fix e as the index of such a machine. Build a Turing machine M, using Kleene's recursion theorem, that on input 0 first simulates the machine with index e running on an index nM for M (thus the machine M can produce an index of itself; this is the role of the recursion theorem). By assumption, this simulation will eventually return an answer. Then M adds 1 and terminates, so that if g(nM) = m then the return value of M is ⁠m+1⁠. Thus f(nM), the true return value of M on input 0, will not equal g(nM). Hence g does not extend f. The second question asks, in essence, whether there is another reasonable model of computation that computes only total functions and computes all the total computable functions. Informally, if such a model existed then each of its computers could be simulated by a Turing machine. Thus if this new model of computation consisted of a sequence M1,M2,… of machines, there would be a recursively enumerable sequence T1,…T2,… of Turing machines that compute total functions and so that every total computable function is computable by one of the machines Ti. This is impossible, because a total machine T could be constructed such that on input i the machine T returns Ti(i)+1. This machine cannot be equivalent to any machine T on the list: suppose it were on the list at index j. Then Tj(j)=Tj(j)+1, a contradiction. This shows that the second question has a negative answer.

The set of indices of total Turing machines

The decision problem of whether the Turing machine with index e will halt on every input is not decidable. In fact, this problem is at level Π20 of the arithmetical hierarchy. Thus this problem is strictly more difficult than the halting problem, which asks whether the machine with index e halts on input 0. Intuitively, this difference in unsolvability is because each instance of the "total machine" problem represents infinitely many instances of the halting problem.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Decider (Turing machine)

Start with the simplest possible case. Write down what Decider (Turing machine) 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 Decider (Turing machine) 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 Decider (Turing machine) 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 Decider (Turing machine)

In research
Decider (Turing machine) 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 Decider (Turing machine) 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
Decider (Turing machine) 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 Decider (Turing machine) 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 “Decider (Turing machine)” →

How to study Decider (Turing machine) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Decider (Turing machine) 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 Decider (Turing machine) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Decider (Turing machine) in simple terms?

In computability theory, a decider is a Turing machine that halts for every input. A decider is also called a total Turing machine as it represents a total function.

Why does Decider (Turing machine) 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 Decider (Turing machine)?

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 Decider (Turing machine).

Tags

  • Turing machine

Keep exploring