Adding a Tape Makes All the Difference

So let’s take a step back and ask, what is a Turing machine?

A Turing machine is just an extension of a finite state machine. Just like an FSM, a Turing machine has a finite set of states and a state relation that defines how it moves between them based on its input. The difference is that its inputs come on a strip of tape, and the machine can both read and write symbols on that tape, something like this:

images/pdf/turingmachine.png
Figure 16. A Turing machine: A Turing machine is a finite state machine that can read and write a tape.

The basic idea of the Turing machine is simple. Take a finite state machine. Instead of feeding ...

Get Good Math now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.