Introduction To: Turing Machines
Introduction To: Turing Machines
Turing Machines
0 0
1 1 1
0 1 1 1 1 1 1 0 1 1 0 1 1 0 0 0
The Turing Machine
10 0
1 1 1
0 1 1 1 1 1 1 0 1 1 0 1 1 0 0 0
S is a set of TM states
T is a set of tape symbols
s0 is the start state
HS is a set of halting states
: S x T S x T x {L,R}
is the transition function
Simple TM Examples
Turing Machine U+1:
#111100000000…….
#1111100000000……….
Simple TM Examples
TM: U+1
(s0, 1) |-- (s0, 1, R)
(s0, 0) |-- (h, 1, STOP)
#s0111100000…..
#1s011100000…..
#11s01100000…..
#111s0100000…..
#1111s000000…..
#11111h0000….. STOP
Exercice
Input = “aaaabb”
What is the output for this input?
Solution
• s0 “ aaaabb”
• s1 “ aaaabb ”
• s0 “ aaaabb ”
• s1 “ aaaabb ”
• s1 “ aaaabb ”
• halt “ aaaaab ”
•Input = a finite sequence of “a” symbol, followed by an infinite sequence of “b”.
•Describe what the output this machine generates.
Turing’s Thesis
Any mathematical problem solving that
can be described by a mechanical procedure
(algorithm) can be modeled by a
Turing machine.