In this article, we shall implement a basic version of a Turing Machine in python and write a few simple programs to execute them on the Turing machine. This article is inspired by the **edX / MITx course Paradox and Infinity **and few of the programs to be executed on the (simulated) Turing machine are taken from the course. Also, some programs are from this Cambridge tutorial.

A few Definitions

Let’s start by defining a Turing machine (originally invented by Alan Turing) formally, as is shown in the following figure:

Image for post

#simulation #python #turing-machine #theory-of-computation #turing

Simulating a Turing Machine with Python and executing programs on it
1.50 GEEK