TuringMachine Assignment Answer
TuringMachine Assignment Answer
http://ironphoenix.org/tril/tm/
1. Select "subtraction" from the pull-down list next to "load new program", then
click the button "load new program". You will see the word "subtracter"
appears in the field next to "Machine name" and the "Initial characters on tape"
shows the expression of " 111111-1111=".
You can change the expression of the subtraction by typing in other operands, for
example "111-11=", then click the button "install program".
2. To start the automatic run, click "start" button. You can then click "stop" and
"resume" to control the running of the program.
Alternatively, you can click the "step" button to execute the computations one
step a time to observe what happens during each step.
3. The "Programming window" at the left hand corner shows the current program
being used. It's a series of 5-tuples in the format of:
4. When observe the Turing Machine in action, pay attention to two things:
- the current state (shown at the top of the window)
- the message box, which tells you the state of the demo
User name: !tmfcogsci1 Cognitive Science 1 – Fall 2007
Password: c@1folders Week 3 Lab
Assignment:
Use the "subtraction" Turing Machine to perform the operation of "111 – 11 =" and fill
out the following table for each step of the operation:
23 1 H