| ||||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Below is the simplest of Turing Machines, one that simply adds one to a number. A number is represented as a series of 0s and 1s. It is represented in a continually stream of 1s with padding zeros around them. For example, 3 is 0011100, 8 is 001111111100. The type of representation is called unary notation. The padding zeros just make it easier for the program to add, because if there is no cell to write to, it won't create one. All we need to create f(x) = x+1 are two states, arbitarily called "State A" and "State B". These are indicated below with checkboxes, the one checked is the state the machine is in. These are the rules for the machine:
Submitted: 06/01/2000 Article content copyright © James Matthews, 2000.
|
|
|||||||||||||
All content copyright © 1998-2007, Generation5 unless otherwise noted.
- Privacy Policy - Legal - Terms of Use -