Nepedia
Back to Discover
Fluent Reader
💻

Abstract machine

technology Maturity 11-13 Next article →

An abstract machine is a special model used in computer science. It is not a physical object made of metal or wires. Instead, it is a set of rules used to study how computer systems work. These models are very useful for scientists. They help people understand how a computer might function without needing real hardware. An abstract machine works like a mathematical function. It takes in information called input. Then, it follows rules to create a result called output.

The structure of an abstract machine
The structure of an abstract machine

These machines work through a step-by-step way of doing things. Most abstract machines have a memory and an interpreter. The memory is used to store data and programs. The interpreter is the part that actually carries out the instructions. To work, the machine must handle different tasks. It processes basic data like numbers or strings of text. It also uses sequence control to decide which instruction comes next. It manages data transfers to move information in and out of memory. Finally, it uses memory management to decide how much space to use.

The structure of an abstract machine
The structure of an abstract machine

Scientists group these machines into two main types. The first type is called a deterministic abstract machine. This machine is very predictable. If you give it the same input, it will always give the same output. There is no randomness involved. The second type is a non-deterministic abstract machine. This machine can take different paths. It might give different outputs even if the input is the same. This is very helpful when finding a perfect answer is too hard or takes too much time.

2-state 3-symbol Turing Machine
2-state 3-symbol Turing Machine

One of the most famous examples is the Turing machine. This machine is a fundamental model in computer science. It uses a long tape filled with symbols. The machine has a pointer that moves along the tape. It can change the symbols it sees or move the pointer left or right. For example, a simple machine might have one command to turn a symbol into a number and move right. Other important machines include the SECD machine from 1964. There is also the Warren Abstract Machine, or WAM, which was made in 1983.

Machine de Krivine
Machine de Krivine

Abstract machines help bridge the gap between human ideas and real computers. When people write code in a programming language, they use instructions. An abstract machine can act as a middle step. This helps turn high-level language into something a real machine can understand. We can build these machines in different ways. They can be built directly into hardware using circuits. They can also be built using software. When an abstract machine is built with software, it is called a virtual machine.

A hierarchy of abstract machines
A hierarchy of abstract machines
435 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:2-state 3-symbol Turing Machine.png
2-state 3-symbol Turing Machine.png
File:Machine de Krivine.jpg
Machine de Krivine.jpg
File:The_structure_of_an_abstract_machine.png
The_structure_of_an_abstract_machine.png
File:A_hierarchy_of_abstract_machines.png
A_hierarchy_of_abstract_machines.png
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.