SlideShare a Scribd company logo
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

What's hot

TOC 7 | CFG in Chomsky Normal Form
TOC 7 | CFG in Chomsky Normal FormTOC 7 | CFG in Chomsky Normal Form
TOC 7 | CFG in Chomsky Normal Form
Mohammad Imam Hossain
 
Context Free Grammar
Context Free GrammarContext Free Grammar
Context Free Grammar
Akhil Kaushik
 
Pushdown Automata Theory
Pushdown Automata TheoryPushdown Automata Theory
Pushdown Automata Theory
Saifur Rahman
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
Rajendran
 
Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
Rajendran
 
Chomsky classification of Language
Chomsky classification of LanguageChomsky classification of Language
Chomsky classification of Language
Dipankar Boruah
 
Pumping lemma Theory Of Automata
Pumping lemma Theory Of AutomataPumping lemma Theory Of Automata
Pumping lemma Theory Of Automata
hafizhamza0322
 
Universal turing coastus
Universal turing coastusUniversal turing coastus
Universal turing coastus
Shiraz316
 
Pumping lemma for regular set h1
Pumping lemma for regular set h1Pumping lemma for regular set h1
Pumping lemma for regular set h1
Rajendran
 
TOC 2 | Deterministic Finite Automata
TOC 2 | Deterministic Finite AutomataTOC 2 | Deterministic Finite Automata
TOC 2 | Deterministic Finite Automata
Mohammad Imam Hossain
 
Theory of Computation Unit 5
Theory of Computation Unit 5Theory of Computation Unit 5
Theory of Computation Unit 5
Jena Catherine Bel D
 
TOC 3 | Different Operations on DFA
TOC 3 | Different Operations on DFATOC 3 | Different Operations on DFA
TOC 3 | Different Operations on DFA
Mohammad Imam Hossain
 
context free language
context free languagecontext free language
context free language
khush_boo31
 
Turing machine
Turing machineTuring machine
Turing machine
HimanshuSirohi6
 
Lecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesLecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular Languages
Marina Santini
 
1.1. the central concepts of automata theory
1.1. the central concepts of automata theory1.1. the central concepts of automata theory
1.1. the central concepts of automata theory
Sampath Kumar S
 
Context free languages
Context free languagesContext free languages
Context free languages
Jahurul Islam
 
Push down automata
Push down automataPush down automata
Push down automata
Ratnakar Mikkili
 

What's hot (20)

TOC 7 | CFG in Chomsky Normal Form
TOC 7 | CFG in Chomsky Normal FormTOC 7 | CFG in Chomsky Normal Form
TOC 7 | CFG in Chomsky Normal Form
 
Turing machine by_deep
Turing machine by_deepTuring machine by_deep
Turing machine by_deep
 
Context Free Grammar
Context Free GrammarContext Free Grammar
Context Free Grammar
 
Pushdown Automata Theory
Pushdown Automata TheoryPushdown Automata Theory
Pushdown Automata Theory
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
 
Chomsky classification of Language
Chomsky classification of LanguageChomsky classification of Language
Chomsky classification of Language
 
Pumping lemma Theory Of Automata
Pumping lemma Theory Of AutomataPumping lemma Theory Of Automata
Pumping lemma Theory Of Automata
 
Universal turing coastus
Universal turing coastusUniversal turing coastus
Universal turing coastus
 
Pumping lemma for regular set h1
Pumping lemma for regular set h1Pumping lemma for regular set h1
Pumping lemma for regular set h1
 
TOC 2 | Deterministic Finite Automata
TOC 2 | Deterministic Finite AutomataTOC 2 | Deterministic Finite Automata
TOC 2 | Deterministic Finite Automata
 
Theory of Computation Unit 5
Theory of Computation Unit 5Theory of Computation Unit 5
Theory of Computation Unit 5
 
TOC 3 | Different Operations on DFA
TOC 3 | Different Operations on DFATOC 3 | Different Operations on DFA
TOC 3 | Different Operations on DFA
 
context free language
context free languagecontext free language
context free language
 
Turing machine
Turing machineTuring machine
Turing machine
 
Lecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesLecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular Languages
 
1.1. the central concepts of automata theory
1.1. the central concepts of automata theory1.1. the central concepts of automata theory
1.1. the central concepts of automata theory
 
Turing machines
Turing machinesTuring machines
Turing machines
 
Context free languages
Context free languagesContext free languages
Context free languages
 
Push down automata
Push down automataPush down automata
Push down automata
 

More from Rajendran

Element distinctness lower bounds
Element distinctness lower boundsElement distinctness lower bounds
Element distinctness lower bounds
Rajendran
 
Scheduling with Startup and Holding Costs
Scheduling with Startup and Holding CostsScheduling with Startup and Holding Costs
Scheduling with Startup and Holding Costs
Rajendran
 
Divide and conquer surfing lower bounds
Divide and conquer  surfing lower boundsDivide and conquer  surfing lower bounds
Divide and conquer surfing lower bounds
Rajendran
 
Red black tree
Red black treeRed black tree
Red black tree
Rajendran
 
Hash table
Hash tableHash table
Hash table
Rajendran
 
Medians and order statistics
Medians and order statisticsMedians and order statistics
Medians and order statistics
Rajendran
 
Proof master theorem
Proof master theoremProof master theorem
Proof master theorem
Rajendran
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
Rajendran
 
Recurrence theorem
Recurrence theoremRecurrence theorem
Recurrence theorem
Rajendran
 
Master method
Master method Master method
Master method
Rajendran
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
Rajendran
 
Hash tables
Hash tablesHash tables
Hash tables
Rajendran
 
Lower bound
Lower boundLower bound
Lower bound
Rajendran
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
Rajendran
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
Rajendran
 
Longest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm AnalysisLongest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm Analysis
Rajendran
 
Dynamic programming in Algorithm Analysis
Dynamic programming in Algorithm AnalysisDynamic programming in Algorithm Analysis
Dynamic programming in Algorithm Analysis
Rajendran
 
Average case Analysis of Quicksort
Average case Analysis of QuicksortAverage case Analysis of Quicksort
Average case Analysis of Quicksort
Rajendran
 
Np completeness
Np completenessNp completeness
Np completeness
Rajendran
 
computer languages
computer languagescomputer languages
computer languages
Rajendran
 

More from Rajendran (20)

Element distinctness lower bounds
Element distinctness lower boundsElement distinctness lower bounds
Element distinctness lower bounds
 
Scheduling with Startup and Holding Costs
Scheduling with Startup and Holding CostsScheduling with Startup and Holding Costs
Scheduling with Startup and Holding Costs
 
Divide and conquer surfing lower bounds
Divide and conquer  surfing lower boundsDivide and conquer  surfing lower bounds
Divide and conquer surfing lower bounds
 
Red black tree
Red black treeRed black tree
Red black tree
 
Hash table
Hash tableHash table
Hash table
 
Medians and order statistics
Medians and order statisticsMedians and order statistics
Medians and order statistics
 
Proof master theorem
Proof master theoremProof master theorem
Proof master theorem
 
Recursion tree method
Recursion tree methodRecursion tree method
Recursion tree method
 
Recurrence theorem
Recurrence theoremRecurrence theorem
Recurrence theorem
 
Master method
Master method Master method
Master method
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
 
Hash tables
Hash tablesHash tables
Hash tables
 
Lower bound
Lower boundLower bound
Lower bound
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 
Longest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm AnalysisLongest common subsequences in Algorithm Analysis
Longest common subsequences in Algorithm Analysis
 
Dynamic programming in Algorithm Analysis
Dynamic programming in Algorithm AnalysisDynamic programming in Algorithm Analysis
Dynamic programming in Algorithm Analysis
 
Average case Analysis of Quicksort
Average case Analysis of QuicksortAverage case Analysis of Quicksort
Average case Analysis of Quicksort
 
Np completeness
Np completenessNp completeness
Np completeness
 
computer languages
computer languagescomputer languages
computer languages
 

Recently uploaded

Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 

Recently uploaded (20)

Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 

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