How to resolve the algorithm Universal Turing machine step by step in the NetLogo programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Universal Turing machine step by step in the NetLogo programming language

Table of Contents

Problem Statement

One of the foundational mathematical constructs behind computer science is the universal Turing Machine.

(Alan Turing introduced the idea of such a machine in 1936–1937.) Indeed one way to definitively prove that a language is turing-complete is to implement a universal Turing machine in it.

Simulate such a machine capable of taking the definition of any other Turing machine and executing it. Of course, you will not have an infinite tape, but you should emulate this as much as is possible.
The three permissible actions on the tape are "left", "right" and "stay". To test your universal Turing machine (and prove your programming language is Turing complete!), you should execute the following two Turing machines based on the following definitions.

Simple incrementer

The input for this machine should be a tape of 1 1 1

Three-state busy beaver

The input for this machine should be an empty tape.

Bonus: 5-state, 2-symbol probable Busy Beaver machine from Wikipedia

The input for this machine should be an empty tape. This machine runs for more than 47 millions steps.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Universal Turing machine step by step in the NetLogo programming language

Source code in the netlogo programming language


You may also check:How to resolve the algorithm Time a function step by step in the EMal programming language
You may also check:How to resolve the algorithm Sequence of primes by trial division step by step in the Elixir programming language
You may also check:How to resolve the algorithm Create a file on magnetic tape step by step in the Crystal programming language
You may also check:How to resolve the algorithm 24 game step by step in the MATLAB / Octave programming language
You may also check:How to resolve the algorithm Find the intersection of two lines step by step in the M2000 Interpreter programming language