A turing machine looks like the following:

Screenshot 2023-02-27 at 18.05.20.png

<aside> ➿ $\vdash$ signifies the beggining of the tape, $\sqcup$ denotes a blank character (end) of the tape.

</aside>

We can both read and write to cells in the infinite tape, and move the head left or right.

Notation

Formally, we have a 7 tuple $(Q, \Sigma, \Gamma, \delta, q_0, q_{accept}, q_{reject})$

Corresponding to:

<aside> ✋🏽 The turing machine halts when it enters the accept or reject state.

</aside>

Configurations

A configuration is a 3 tuple $X = (u,q,v)$ where: