Turing Machine simulation in Java |
maintained by Andrew Hodges | Alan Turing home page | Scrapbook index | Short Biography | Bibliography | My Books |
A Turing Machine Applet
This Applet is powerful enough to run any Turing machine with reasonable storage requirements, but at the moment it is only being used on this page to present a very particular, rather trivial Turing machine which performs unary addition. It has the effect of composing two groups of 1's placed on its tape into a single group of 1's, much the same as the machine described on pages 98-99 of my book Alan Turing: the Enigma. But this is enough to illustrate the basic features of the Turing's concept -- the atomic elements, out of which any possible computation, however complicated, can be composed. Running the machine in the Applet will illustrate these general features of Turing machines:-
Note: In this simulation, the tape moves to left or right through a fixed scanning head, rather than the head moving to right or left along the tape. |
|
|
A more interesting exampleThe same Applet as you have already downloaded is used on another pageto show a Turing machine testing the divisibility of one integer by another.
More JavaIf you are interested in Java, try this Applet for factorisation which can test numbers up to 9223372036854775807. |
My Main Page |
Continue Scrapbook |
Alan Turing Home Page |
Bibliography |
My Book |
Last updated 27 April 2000.
I am always grateful for feedack and suggestions for new links: andrew@synth.co.uk