Nepedia
Back to Discover
Independent Reader
💻

Nondeterministic Turing machine

technology Maturity 11-13 Next article →

A Turing machine is a model of a simple computer.

Difference between deterministic and Nondeterministic
Difference between deterministic and Nondeterministic

It works by reading and writing marks on a long tape. Most computers are deterministic. This means they follow one set of rules for every step. If a computer sees a certain mark, it does only one thing. It might change the mark and move left or right. This creates a single path of steps.

A nondeterministic Turing machine, or NTM, is different. Its rules can allow more than one action for one situation. For example, it might see a mark and choose to move left. Or, it might choose to move right instead. This creates many possible paths. These paths look like a computation tree with many branches.

An NTM wins if just one path leads to an "accept" state. This is a special state that means the answer is correct. Scientists use NTMs to study the limits of computers. They also use them to think about the P versus NP problem. This is a famous question in computer science. It asks if a regular computer can do these tasks as fast as an NTM.

BQP complexity class diagram
BQP complexity class diagram

This chart shows how different types of computers solve problems.

196 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:Difference_between_deterministic_and_Nondeterministic.svg
Difference_between_deterministic_and_Nonde...
File:BQP complexity class diagram.svg
BQP complexity class diagram.svg
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.