Professional Documents
Culture Documents
35-Turing Machines As Transducer, Examples-24-03-2023
35-Turing Machines As Transducer, Examples-24-03-2023
Jyothimon C
Assistant Professor
School of Computer Science and Engineering
Vellore Institute of Technology
f (m, n) = m + n
f (m, n) = m + n
0, 0, R 0, 0, R
$, 0, R B, B, L 0, B, L
start q0 q1 q2 q3
f (m, n) = m × n
Current
0 $ X Y B
State
→ q0 (q1 , X, R) (q9, $, L) - - -
q1 (q1 , 0, R) (q2 , $, R) - - -
q2 (q3 , Y, R) (q7, $, L) - - -
q3 (q3 , 0, R) (q4, $, R) - - -
q4 (q4 , 0, R) - - - (q5 , 0, L)
q5 (q5 , 0, L) (q6 , $, L) - - -
q6 (q6 , 0, L) - - (q2 , Y, R) -
q7 (q8 , $, L) (q7 , 0, L)
q8 (q8 , 0, L) - (q0 , X, R) - -
q9 - - (q9 , 0, L) - (q10 ,B,R)
⋆q10 - - - - -
f (m, n) = m − n
f (m, n) = m ÷ n
f (m) = 2 × m