Turing machine

From WikiMD.com Medical Encyclopedia

Mathematical model of computation



Turing machine[edit | edit source]

A Turing machine is a mathematical model of computation that defines an abstract machine. The Turing machine manipulates symbols on a strip of tape according to a table of rules. Despite its simplicity, a Turing machine can be adapted to simulate the logic of any computer algorithm, and is particularly useful in explaining the functions of a CPU inside a computer.

A model of a Turing machine

History[edit | edit source]

The concept of the Turing machine was introduced by Alan Turing in 1936, in his paper "On Computable Numbers, with an Application to the Entscheidungsproblem." Turing's machine was designed to be a simple yet powerful model of computation that could be used to explore the limits of what can be computed.

Description[edit | edit source]

A Turing machine consists of:

  • A tape divided into cells, one next to the other. Each cell contains a symbol from a finite alphabet.
  • A head that can read and write symbols on the tape and move the tape left and right one cell at a time.
  • A state register that stores the state of the Turing machine, one of a finite number of states.
  • A finite table of instructions that, given the current state and the symbol the head is reading, tells the machine what symbol to write, how to move the tape (left or right), and what the next state of the machine is.
Diagram of a Turing machine

Functionality[edit | edit source]

The Turing machine operates by reading the symbol on the tape at the current head position, consulting the table of instructions, and then performing the specified action. This action may involve writing a new symbol on the tape, moving the head left or right, and changing the state of the machine. The process continues until the machine reaches a halting state, if such a state exists.

Variants[edit | edit source]

There are many variants of the Turing machine, including the universal Turing machine, which can simulate any other Turing machine. Other variants include the multi-tape Turing machine, which has multiple tapes and heads, and the non-deterministic Turing machine, which can make multiple moves at once.

Applications[edit | edit source]

Turing machines are used in theoretical computer science to understand the limits of what can be computed. They are also used in the study of computational complexity to classify problems based on the resources required to solve them.

Busy Beaver[edit | edit source]

The Busy Beaver is a Turing machine that is designed to produce the maximum number of 1s on its tape before halting, given a specific number of states. The Busy Beaver function is non-computable, meaning there is no algorithm that can determine the maximum number of 1s for any given number of states.

Example of a 3-state Busy Beaver

Related pages[edit | edit source]

References[edit | edit source]

  • Turing, A. M. (1936). "On Computable Numbers, with an Application to the Entscheidungsproblem." Proceedings of the London Mathematical Society, 2(42), 230-265.
  • Davis, M. (2000). "The Universal Computer: The Road from Leibniz to Turing." W. W. Norton & Company.
WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD