Universal Turing machine: Difference between revisions
Content deleted Content added
Line 2,063: | Line 2,063: | ||
Unfortunately images cannot be uploaded in Rosetta Code, so links to actual images are provided. |
Unfortunately images cannot be uploaded in Rosetta Code, so links to actual images are provided. |
||
=== Program === |
==== Program ==== |
||
The following is a function definition of a Turing Machine: [http://www.formulae.org/rosettacode/TuringMachineProgramCode.png Click or tap] |
The following is a function definition of a Turing Machine: [http://www.formulae.org/rosettacode/TuringMachineProgramCode.png Click or tap] |
||
=== Simple incrementer === |
==== Simple incrementer ==== |
||
[http://www.formulae.org/rosettacode/ |
[http://www.formulae.org/rosettacode/TuringMachineOutput1.png Click or tap] |
||
=== Task: Two-state busy beaver === |
==== Task: Two-state busy beaver ==== |
||
[http://www.formulae.org/rosettacode/ |
[http://www.formulae.org/rosettacode/TuringMachineOutput2.png Click or tap] |
||
=== Task: Three-state busy beaver === |
==== Task: Three-state busy beaver ==== |
||
[http://www.formulae.org/rosettacode/ |
[http://www.formulae.org/rosettacode/TuringMachineOutput3.png Click or tap] |
||
=== Task: Four-state busy beaver === |
==== Task: Four-state busy beaver ==== |
||
[http://www.formulae.org/rosettacode/ |
[http://www.formulae.org/rosettacode/TuringMachineOutput4.png Click or tap] |
||
=== Bonus task, Five-state busy beaver === |
==== Bonus task, Five-state busy beaver ==== |
||
The actual resulting tape is not shown, its size in shown instead. |
The actual resulting tape is not shown, its size in shown instead. |
||
[http://www.formulae.org/rosettacode/ |
[http://www.formulae.org/rosettacode/TuringMachineOutput5.png Click or tap] |
||
=={{header|Fortran}}== |
=={{header|Fortran}}== |