SlideShare a Scribd company logo
3
Most read
14
Most read
15
Most read
Costas Busch - RPI 1
Variations
of the
Turing Machine
Costas Busch - RPI 2
Variations of the Standard Model
• Stay-Option
• Semi-Infinite Tape
• Off-Line
• Multitape
• Multidimensional
• Nondeterministic
Turing machines with:
Costas Busch - RPI 3
Same Power of two classes means:
For any machine of first class
1M
there is a machine of second class
2M
such that:
)()( 21 MLML =
And vice-versa
Costas Busch - RPI 4
Turing Machines with Stay-Option
The head can stay in the same position
◊◊ a a c ◊◊ ◊b a cb b a a
Left, Right, Stay
L,R,S: moves
Costas Busch - RPI 5
Example:
◊◊ a a c ◊◊ ◊b a cb b a a
Time 1
◊◊ b a c ◊◊ ◊b a cb b a a
Time 2
1q 2q
1q
2q
Sba ,→
Costas Busch - RPI 6
1q 2q
Sba ,→
1q 2q
Lba ,→
3q
Rxx ,→
Stay-Option Machine
Simulation in Standard Machine
For every symbol x
Costas Busch - RPI 7
Example
◊ ◊a a b a
1q
Stay-Option Machine:
1
◊ ◊b a b a
2q
2
1q 2qSba ,→
Simulation in Standard Machine:
◊ ◊a a b a
1q
1
◊ ◊b a b a
2q
2
◊ ◊b a b a
3q
3
Costas Busch - RPI 8
Standard Machine--Multiple Track Tape
◊
◊
◊
◊
◊
◊
b
d
a
b
b
a
a
c
track 1
track 2
one symbol
Costas Busch - RPI 9
Semi-Infinite Tape
.........
# a b a c ◊ ◊
Costas Busch - RPI 10
The Off-Line Machine
Control Unit
Input File
Tape
read-only
a b c
d eg ◊ ◊◊◊
read-write
Costas Busch - RPI 11
1. Copy input file to tape
Input File
a b c ◊◊ ◊
Tape
a b c◊ ◊ ◊
Standard machine
Off-line machine
a b c
Costas Busch - RPI 12
2. Do computations as in Turing machine
Input File
a b c ◊◊ ◊
Tape
a b c◊ ◊ ◊
a b c
1q
1q
Standard machine
Off-line machine
Costas Busch - RPI 13
Standard Turing machines simulate
Off-line machines:
Use a Standard machine with four track tape
to keep track of
the Off-line input file and tape contents
Costas Busch - RPI 14
Multitape Turing Machines
◊◊ a b c ◊◊ e f g
Control unit
Tape 1 Tape 2
Input
Costas Busch - RPI 15
◊◊ a b c ◊◊ e f g
1q 1q
◊◊ a g c ◊◊ e d g
2q 2q
Time 1
Time 2
RLdgfb ,),,(),( →
1q 2q
Tape 1 Tape 2
Costas Busch - RPI 16
Same power doesn’t imply same speed:
Language
}{ nn
baL =
Acceptance Time
Standard machine
Two-tape machine
2
n
n
Costas Busch - RPI 17
NonDeterministic Turing Machines
Lba ,→
Rca ,→
1q
2q
3q
Non Deterministic Choice
Costas Busch - RPI 18
a b c◊ ◊
1q
Lba ,→
Rca ,→
1q
2q
3q
Time 0
Time 1
b b c◊ ◊
2q
c b c◊ ◊
3q
Choice 1 Choice 2
Costas Busch - RPI 19
Input string is accepted if
this a possible computation
w
yqxwq f
∗
0
Initial configuration Final Configuration
Final state
Costas Busch - RPI 20
Non-Deterministic Choices
Computation 1
1q
2q
4q
3q
5q
6q 7q
Costas Busch - RPI 21
Non-Deterministic Choices
Computation 2
1q
2q
4q
3q
5q
6q 7q
Costas Busch - RPI 22
Theorem: NonDeterministic Machines
have the same power with
Deterministic machines
Costas Busch - RPI 23
Remark:
The simulation in the Deterministic machine
takes time exponential time compared
to the NonDeterministic machine

More Related Content

PDF
Turing machines
PPTX
Turing machine
PPTX
1.7. eqivalence of nfa and dfa
PPTX
LINEAR BOUNDED AUTOMATA (LBA).pptx
PPTX
1.3.2 non deterministic finite automaton
PDF
Deterministic Finite Automata (DFA)
PPTX
Theory of automata and formal languages Unit 4
PPT
NFA or Non deterministic finite automata
Turing machines
Turing machine
1.7. eqivalence of nfa and dfa
LINEAR BOUNDED AUTOMATA (LBA).pptx
1.3.2 non deterministic finite automaton
Deterministic Finite Automata (DFA)
Theory of automata and formal languages Unit 4
NFA or Non deterministic finite automata

What's hot (20)

PDF
TOC 4 | Non-deterministic Finite Automata
PDF
Automata theory
PPTX
Automata Theory - Turing machine
PPT
Assembly Language Lecture 3
PPTX
Chomsky Normal Form
PPTX
Pushdown Automata Theory
PPTX
Turing Machine
PDF
Theory of computation and automata
PPT
Turing Machine
PDF
TOC 8 | Derivation, Parse Tree & Ambiguity Check
PDF
TOC 10 | Turing Machine
PPTX
Undecidability.pptx
PPTX
Minimization of DFA.pptx
PPTX
Mealy and moore machine
PPTX
2.1 & 2.2 grammar introduction – types of grammar
PPTX
Pumping lemma
PPTX
unit-4-dynamic programming
PPT
Predicate calculus
PPTX
Moore Mealy Machine Conversion
PPT
pushdown automata
TOC 4 | Non-deterministic Finite Automata
Automata theory
Automata Theory - Turing machine
Assembly Language Lecture 3
Chomsky Normal Form
Pushdown Automata Theory
Turing Machine
Theory of computation and automata
Turing Machine
TOC 8 | Derivation, Parse Tree & Ambiguity Check
TOC 10 | Turing Machine
Undecidability.pptx
Minimization of DFA.pptx
Mealy and moore machine
2.1 & 2.2 grammar introduction – types of grammar
Pumping lemma
unit-4-dynamic programming
Predicate calculus
Moore Mealy Machine Conversion
pushdown automata
Ad

More from Rajendran (20)

PPT
Element distinctness lower bounds
PPT
Scheduling with Startup and Holding Costs
PPT
Divide and conquer surfing lower bounds
PPT
Red black tree
PPT
Hash table
PPT
Medians and order statistics
PPT
Proof master theorem
PPT
Recursion tree method
PPT
Recurrence theorem
PPT
Master method
PPT
Master method theorem
PPT
Hash tables
PPT
Lower bound
PPT
Master method theorem
PPT
Greedy algorithms
PPT
Longest common subsequences in Algorithm Analysis
PPT
Dynamic programming in Algorithm Analysis
PPT
Average case Analysis of Quicksort
PPT
Np completeness
PPT
computer languages
Element distinctness lower bounds
Scheduling with Startup and Holding Costs
Divide and conquer surfing lower bounds
Red black tree
Hash table
Medians and order statistics
Proof master theorem
Recursion tree method
Recurrence theorem
Master method
Master method theorem
Hash tables
Lower bound
Master method theorem
Greedy algorithms
Longest common subsequences in Algorithm Analysis
Dynamic programming in Algorithm Analysis
Average case Analysis of Quicksort
Np completeness
computer languages
Ad

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Sports Quiz easy sports quiz sports quiz
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Pre independence Education in Inndia.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
RMMM.pdf make it easy to upload and study
Cell Types and Its function , kingdom of life
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Final Presentation General Medicine 03-08-2024.pptx
PPH.pptx obstetrics and gynecology in nursing
GDM (1) (1).pptx small presentation for students
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
human mycosis Human fungal infections are called human mycosis..pptx
Sports Quiz easy sports quiz sports quiz
102 student loan defaulters named and shamed – Is someone you know on the list?
Module 4: Burden of Disease Tutorial Slides S2 2025
O5-L3 Freight Transport Ops (International) V1.pdf
Anesthesia in Laparoscopic Surgery in India
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pre independence Education in Inndia.pdf
Institutional Correction lecture only . . .
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Supply Chain Operations Speaking Notes -ICLT Program
RMMM.pdf make it easy to upload and study

Variants of Turing Machine

  • 1. Costas Busch - RPI 1 Variations of the Turing Machine
  • 2. Costas Busch - RPI 2 Variations of the Standard Model • Stay-Option • Semi-Infinite Tape • Off-Line • Multitape • Multidimensional • Nondeterministic Turing machines with:
  • 3. Costas Busch - RPI 3 Same Power of two classes means: For any machine of first class 1M there is a machine of second class 2M such that: )()( 21 MLML = And vice-versa
  • 4. Costas Busch - RPI 4 Turing Machines with Stay-Option The head can stay in the same position ◊◊ a a c ◊◊ ◊b a cb b a a Left, Right, Stay L,R,S: moves
  • 5. Costas Busch - RPI 5 Example: ◊◊ a a c ◊◊ ◊b a cb b a a Time 1 ◊◊ b a c ◊◊ ◊b a cb b a a Time 2 1q 2q 1q 2q Sba ,→
  • 6. Costas Busch - RPI 6 1q 2q Sba ,→ 1q 2q Lba ,→ 3q Rxx ,→ Stay-Option Machine Simulation in Standard Machine For every symbol x
  • 7. Costas Busch - RPI 7 Example ◊ ◊a a b a 1q Stay-Option Machine: 1 ◊ ◊b a b a 2q 2 1q 2qSba ,→ Simulation in Standard Machine: ◊ ◊a a b a 1q 1 ◊ ◊b a b a 2q 2 ◊ ◊b a b a 3q 3
  • 8. Costas Busch - RPI 8 Standard Machine--Multiple Track Tape ◊ ◊ ◊ ◊ ◊ ◊ b d a b b a a c track 1 track 2 one symbol
  • 9. Costas Busch - RPI 9 Semi-Infinite Tape ......... # a b a c ◊ ◊
  • 10. Costas Busch - RPI 10 The Off-Line Machine Control Unit Input File Tape read-only a b c d eg ◊ ◊◊◊ read-write
  • 11. Costas Busch - RPI 11 1. Copy input file to tape Input File a b c ◊◊ ◊ Tape a b c◊ ◊ ◊ Standard machine Off-line machine a b c
  • 12. Costas Busch - RPI 12 2. Do computations as in Turing machine Input File a b c ◊◊ ◊ Tape a b c◊ ◊ ◊ a b c 1q 1q Standard machine Off-line machine
  • 13. Costas Busch - RPI 13 Standard Turing machines simulate Off-line machines: Use a Standard machine with four track tape to keep track of the Off-line input file and tape contents
  • 14. Costas Busch - RPI 14 Multitape Turing Machines ◊◊ a b c ◊◊ e f g Control unit Tape 1 Tape 2 Input
  • 15. Costas Busch - RPI 15 ◊◊ a b c ◊◊ e f g 1q 1q ◊◊ a g c ◊◊ e d g 2q 2q Time 1 Time 2 RLdgfb ,),,(),( → 1q 2q Tape 1 Tape 2
  • 16. Costas Busch - RPI 16 Same power doesn’t imply same speed: Language }{ nn baL = Acceptance Time Standard machine Two-tape machine 2 n n
  • 17. Costas Busch - RPI 17 NonDeterministic Turing Machines Lba ,→ Rca ,→ 1q 2q 3q Non Deterministic Choice
  • 18. Costas Busch - RPI 18 a b c◊ ◊ 1q Lba ,→ Rca ,→ 1q 2q 3q Time 0 Time 1 b b c◊ ◊ 2q c b c◊ ◊ 3q Choice 1 Choice 2
  • 19. Costas Busch - RPI 19 Input string is accepted if this a possible computation w yqxwq f ∗ 0 Initial configuration Final Configuration Final state
  • 20. Costas Busch - RPI 20 Non-Deterministic Choices Computation 1 1q 2q 4q 3q 5q 6q 7q
  • 21. Costas Busch - RPI 21 Non-Deterministic Choices Computation 2 1q 2q 4q 3q 5q 6q 7q
  • 22. Costas Busch - RPI 22 Theorem: NonDeterministic Machines have the same power with Deterministic machines
  • 23. Costas Busch - RPI 23 Remark: The simulation in the Deterministic machine takes time exponential time compared to the NonDeterministic machine