















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In this document topics covered which are Turing Machines, The Language Hierarchy, Languages accepted by Turing Machines, Regular Language Definition, The Tape, The Input String.
Typology: Study notes
1 / 87
This page cannot be seen from the preview
Don't miss anything!
















































































The Language Hierarchy
Regular Languages
Context-Free Languages
n n
R
n n n
A Turing Machine
...... ......
Tape
Read-Write head
Control Unit
The Tape
...... ......
Read-Write head
No boundaries -- infinite length
The head moves Left or Right
...... ......
Example:
Time 0
...... ......
Time 1
a (^) b a c
a (^) b (^) k c
...... ......
Time 1
a (^) b (^) k c
...... ......
Time 2
a f k c
...... ......
Blank symbo
head
a (^) b a c
Input string
Remark: the input string is never empty
States & Transitions
1
q 2
q
a b,L
Read
Write Move Left
1
q 2
q
a b,R
Move Right
...... ...... a^ b a c
Time 1
1
q 2
q
a b,R
...... ...... a^ b (^) b c
Time 2
1
q
2
q
...... ...... a^ b a c
Time 1
1
q 2
q
a b,L
...... ...... a^ b (^) b c
Time 2
1
q
2
q
Example:
Determinism
1
q
2
a b,R q
Allowed Not^ Allowed
3
q b d,L
1
q
2
a b,R q
3
q a d,L
No epsilon transitions allowed
Turing Machines are deterministic
Partial Transition Function
1
q
2
a b,R q
3
q b d,L
...... ...... a^ b a c
1
q
Example:
No transition
Allowed:
Example:
...... ...... a^ b a c
1
q
1
q
2
a b,R q
3
q b d,L
No possible transition
HALT!!!
Final States
1
q 2
q (^) Allowed
1
q 2
q (^) Not Allowed