A machine can follow rules. 
Imagine a long strip of paper. This tape is like a very long road.
Imagine a long strip of paper. This strip is called a tape.
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.
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. 
How does this abstract machine work? It uses a long strip of paper called a tape. 
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. 
Alan Turing invented this idea in 1936.
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.
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. 
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.
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.
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. 
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. 
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.
🖼️ Images & Media (8)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
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.