Log in Sign up
Back to Discover
🔢

Turing machine

math Maturity 7-9

A machine can follow rules.

Turing Machine Model Davey 2012.jpg
Turing Machine Model Davey 2012.jpg
It uses a long tape. It reads marks on the tape. It can write new marks too. This helps it do math. It works like a computer.
Turing machine 2a.svg
Turing machine 2a.svg
Can you follow a rule?

45 words

Imagine a long strip of paper. This tape is like a very long road.

Turing machine 2a.svg
Turing machine 2a.svg
A small machine moves along it. The machine has a head. This head reads marks on the tape. It can also write new marks.
Turing machine 2b.svg
Turing machine 2b.svg
The machine follows a list of rules. It looks at a mark and decides what to do. It might move left or right. It might change its state. Alan Turing made this idea in 1936. This simple machine can do anything a real computer does. It helps us learn about math and rules.

97 words

Imagine a long strip of paper. This strip is called a tape.

Turing machine 2a.svg
Turing machine 2a.svg
The tape is divided into many small cells. Each cell holds one symbol. A machine moves along this tape using a head. The head can read a symbol in a cell. It can also write a new symbol there.
Turing machine 2b.svg
Turing machine 2b.svg

Alan Turing created this idea in 1936. He called it an "a-machine." The machine follows a list of rules. These rules tell it what to do next. For example, a rule might say: "If you see a zero, write a one and move left." The machine also has a "state." This is like a state of mind. It helps the machine keep track of its work.

Even though it is simple, it is very powerful. A Turing machine can do any task a real computer can do. It can run any computer algorithm. But it has limits too. Some math problems are too hard for it. It cannot solve every problem. This helps us understand what computers can and cannot do.

178 words

Imagine a machine that can solve any puzzle. This is not a real machine made of metal. Instead, it is a mathematical model called a Turing machine.

Turing machine 2a.svg
Turing machine 2a.svg
It helps us understand how computers work. A computer uses a central processing unit to control data. This unit is like the brain of the machine. The Turing machine acts as an idealized version of that brain. It shows us how simple steps can lead to big results.
Model of a Turing machine.jpg
Model of a Turing machine.jpg

How does this abstract machine work? It uses a long strip of paper called a tape.

Turing machine 2b.svg
Turing machine 2b.svg
This tape is divided into small, separate cells. Each cell holds one symbol from a set called an alphabet. A part called the head sits over one cell at a time. The head can read the symbol in the cell. It can also write a new symbol there. Then, the head moves one step left or one step right.
Lego Turing Machine.jpg
Lego Turing Machine.jpg

The machine also has a "state." This is like a state of mind that tells the machine what to do. It follows a finite table of rules to make decisions. For example, a rule might say: "In state 42, if you see a 0, write a 1." The rules tell the machine which symbol to write and which way to move. It can even stop working once it reaches a certain goal. This is called halting.

Busy Beaver 3 State.png
Busy Beaver 3 State.png

Alan Turing invented this idea in 1936.

Turing machine 2a.svg
Turing machine 2a.svg
He originally called it an "a-machine," which stands for automatic machine. His teacher, Alonzo Church, later gave it the name we use today. Turing used this model to answer very hard math questions. He wanted to know if a machine could solve any problem. He proved that some problems are actually beyond the limits of math. These are called uncomputable problems.

Even though it is simple, the Turing machine is incredibly powerful. It can do anything a modern computer can do. This ability is called being Turing complete. Most programming languages are Turing complete today. However, the machine is very slow in real life. Real computers use something called random-access memory to work faster. The Turing machine is a way to study the rules of logic. It helps us see the limits of what machines can ever know.

392 words

A Turing machine is an idealized mathematical model of computation. It serves as a theoretical version of a central processing unit (CPU). In a modern computer, the CPU controls all data manipulation. The Turing machine simplifies this process into an abstract system. It uses a strip of tape to represent sequential memory. This model helps scientists understand the fundamental limits of what can be computed. Even though it is not a physical device, it can implement any computer algorithm.

Model of a Turing machine.jpg
Model of a Turing machine.jpg

The machine operates through a specific, step-by-step mechanism. It consists of a tape divided into discrete cells. Each cell contains a single symbol from a finite set called an alphabet. A component known as the head is positioned over one cell at a time. The machine also maintains a "state," which is one of a finite number of possible conditions. At each step, the head reads the symbol in its current cell. The machine then consults a finite table of instructions, often called a transition function. Based on the current state and the symbol read, the machine writes a new symbol into the cell. It then moves the head one step to the left or one step to the right. Some variations even allow the head to stay in the same position.

Turing machine 2a.svg
Turing machine 2a.svg

There are different ways to define the rules of this machine. Some models use 5-tuples to describe a single action. A 5-tuple specifies the current state, the symbol read, the new symbol to write, the direction to move, and the next state. Other models use 4-tuples, where writing a symbol and moving the head are treated as separate instructions. The machine's operation is fully determined by these elementary instructions. For example, a rule might dictate: "In state 42, if the symbol is 0, write a 1 and move right." The machine continues these steps until it reaches a special state where it halts. If no rule exists for a specific combination of state and symbol, the machine also halts.

Turing machine 2b.svg
Turing machine 2b.svg

Alan Turing invented this model in 1936. He originally referred to it as an "a-machine," which stands for an automatic machine. His doctoral advisor, Alonzo Church, later coined the term "Turing machine" during a review. Turing used this mathematical description to solve deep problems in logic. He wanted to know if a machine could determine if another machine was "circular," meaning it would freeze or fail to finish a task. He also investigated if a machine could determine if a specific symbol would ever be printed. Through this model, Turing proved that certain problems are uncomputable. This means they are beyond the theoretical limits of any mechanical computation.

Lego Turing Machine.jpg
Lego Turing Machine.jpg

The significance of the Turing machine lies in its concept of Turing completeness. A system is Turing complete if it can simulate a Turing machine. This means the system is capable of expressing any task a computer can perform. Nearly all modern programming languages are Turing complete, provided they have enough memory. However, the Turing machine is a minimalist design. It is far too slow for practical use in the real world. Real-world computers use random-access memory to access data quickly, rather than moving sequentially along a tape.

Busy Beaver 3 State.png
Busy Beaver 3 State.png

One fascinating aspect of these machines is the halting problem. This is the realization that it is generally impossible to decide if a machine will eventually stop or run forever. Because of this, some machines can enter an infinite loop. This discovery has major implications for the theoretical limits of computing. Another concept is the universal Turing machine (UTM). A universal machine is a specific type of Turing machine that can simulate any other Turing machine. This concept is a precursor to the idea of a general-purpose computer that can run different programs.

The study of Turing machines connects deeply to several mathematical fields. It provides the foundation for formal language theory and the study of recursively enumerable languages. In this context, a machine can be seen as a way to recognize valid strings of an alphabet. Turing's work also intertwined with the lambda calculus developed by Alonzo Church. Together, these ideas formed the Church–Turing thesis. This thesis suggests that these formalisms capture the true nature of any effective mathematical method. Today, studying these abstract properties provides vital insights into computer science, complexity theory, and computability theory.

State diagram 3 state busy beaver 2B.svg
State diagram 3 state busy beaver 2B.svg

738 words
🖼️ Images & Media (8)
File:Turing Machine Model Davey 2012.jpg
Turing Machine Model Davey 2012.jpg
File:Turing machine 2a.svg
Turing machine 2a.svg
File:Turing machine 2b.svg
Turing machine 2b.svg
File:Busy Beaver 3 State.png
Busy Beaver 3 State.png
File:State diagram 3 state busy beaver 2B.svg
State diagram 3 state busy beaver 2B.svg
File:Moves of a 3-state Busy Beaver.jpg
Moves of a 3-state Busy Beaver.jpg
File:Model of a Turing machine.jpg
Model of a Turing machine.jpg
File:Lego Turing Machine.jpg
Lego Turing Machine.jpg
Up Next
🔢
Turing's proof
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.