In 1936, Alan Turing invented the Turing machine. He called it an automatic machine.
A Turing machine is a mathematical model. It accepts the recursively Enumerable languages, and consists of infinite length tape divided into cells on which input is given. The machine is more powerful than the PushDown Automata and Finite State Machine.
A tape sequence of infinite symbols contains a pointer of a tape head, and it points to the symbol on which the current control is present.
A tape head is either moving one step left or one step right depending upon the situation and having an option to read or write at that position.
It consists of a tape head that reads from the input tape. Next, a state register stores the state of the Turing machine. The tape head reads from the input tape and is replaced according to the situation with another symbol. This changes its internal state. It then moves either to the left of the tape or the right. Finally, the input string is accepted if the Turing machine reaches the final state(F). Otherwise, it is rejected.
Here, it consists of 7 tuples:
Let's look at an example of a Turing machine {a^n*b^n where n>=1} given below: