Quick Start! Turing Machine Emulation


Follow the steps below, easy as 1,2,3!

1. Copy the green line below into a text file in your own account. Let us say that the name of your file is "quick". This should be the only line in that file. (Note that there is a space before the first 1.)
<0> 111

2. Use the Edit feature at the top left of this window to Copy the red text below.
(Move the cursor to the beginning of the first red line. Hold down the left mouse button and drag down to below the last red line, then release. The red text will be highlighted. Move the cursor to the word "Edit" near the upper left corner of your window. Hold down the left mouse button, and drag down until "Copy" is highlighted, then release.)

Yp:s/</<live:/
:s/<live:h>/<h>/
:s/<live:c:/<c:/
:s/>$/> /
:s/<live:0> / <run:1>/
:s/<live:1>1/2<run:1>/
:s/<live:1> /<left:2> /
:s/<live:2>1/<left:2>1/
:s/<live:2>2/1<run:3>/
:s/<live:3>1/1<run:3>/
:s/<live:3> /<left:2>1/
:s/<live:2> /<run:h> /
:s/ <left:2>/<run:2> /
:s/1<left:2>/<run:2>1/
:s/2<left:2>/<run:2>2/
:s/<live:/<c:/
:s/ $//
:s/ $//
:s/<run:/</
h


3. Type "vi quick" to invoke the editor vi on the file "quick".

4. Paste, either by repeatedly using the Paste feature within Edit at the top left of your window, or by repeatedly pressing the middle mouse botton, whichever is suitable for your machine.
(If your editor is working in a window with the word "Edit" in the upper left, move the curser to the word "Edit" then hold down the left mouse button and drag down until the word "Paste" appears, then release.
If your editor is working in an xterm window, simply press the middle mouse button.)

5. Repeat step 4 as many times as needed. Each time you paste, a new line will be created.

6. Stop when <h> appears, indicating the emulation has halted.

7. Exit vi by typing "ZZ". Your file "quick" will now contain the sequence of configurations of the emulated Turing machine.