SlideShare a Scribd company logo
Variants of Turing
Machines
Lecture 26
Section 3.2
Mon, Oct 22, 2007
Increasing the Power of
a Turing Machine
• It is hard to believe that
something as simple as a Turing
machine could be powerful
enough for complicated
problems.
Increasing the Power of
a Turing Machine
• We can imagine a number of
improvements.
• Multiple tapes
• Two-way infinite tape
• Two-dimensional tape
• Addressable memory
• Nondeterminism
• etc.
Multiple Tapes
• Would a Turing machine with k
tapes, k > 1, be more powerful
than a standard Turing
machine?
• Each tape could be processed
independently of the others.
Multiple Tapes
• In other words, each transition
would read each tape, write to
each tape, and move left or
right independently on each
tape.
Multiple Tapes
• Theorem: Any language that is
accepted by a multitape Turing
machine is also accepted by a
standard Turing machine.
Multiple Tapes
• Sketch of the proof:
• On a single tape, we could write
the contents of all k tapes.
• If tape i contains xi1xi2xi3…, for each
i, then write
#x11x21…xk1#x12x22…xk2#...
on the single tape.
Multiple Tapes
• To show the current location on
each tape, put a special mark on
one of that tapes symbols:
#x11x21…xk1#x12x22…xk2#...
• Now the Turing machine scans the
tape, locating the current symbol
on each “tape.”
Multiple Tapes
• It then makes the appropriate
transition.
• Write a symbol over each of the
current symbols.
• Move the location of the current
symbol one space left or right for each
“tape.”
• Of course, the devil is in the
details.
Two-way Infinite Tape
• We can use a two-tape machine
to simiulate the two-way infinite
tape.
• The right half of the two-way tape
is stored on tape 1.
• The left half is stored on tape 2.
• Transitions are modified to handle
the transition from tape 1 to tape
2.
Two-way Infinite Tape
• Theorem: Any language
accepted by a two-way infinite
tape is also accepted by a
standard Turing machine.
Other Variants
• Metatheorem: Any language
accepted by a Turing machine
with any variant that anyone
has ever thought of is also
accepted by a standard Turing
machine.
Nondeterminism
• A nondeterministic Turing
machine is defined like a
standard Turing machine except
for the transition function.
δ : Q′ × Γ → ℘(Q × Γ × {L, R})
where Q′ = Q – {qacc, qrej}.
Nondeterminism
• That is, δ(q, a) may result in any
of a number of actions.
• If any sequence of transitions
leads to the accept state, then
the input is accepted.
• If all sequences of transitions
lead to the reject state or to
looping, then the input is not
accepted.
Nondeterminism
• Theorem: Any language
accepted by a nondeterministic
Turing machine is also
accepted by a standard Turing
machine.
Nondeterminism
• Proof:
• We may use a three-tape machine
to simulate a nondeterministic
Turing machine.
• Tape 1 preserves a copy of the original
input.
• Tape 2 contains a “working” copy of
the input.
• Tape 3 keeps track of the current state
in the nondeterministic machine.
Nondeterminism
• Start with the input w on Tape 1
and with Tapes 2 and 3 empty.
• Copy w from Tape 1 to Tape 2.
• For Tape 3, imagine the transitions
starting from the start state as
forming a tree.
• Each state has child states.
Nondeterminism
• Let b be the largest number of
children of any node.
• Number the children of each state
using the numbers 1, 2, …, b (as
many as needed).
Nondeterminism
• Now each finite string of numbers
from {1, 2, …, b} represents a
particular path through the
nondeterministic Turing machine,
or else represents no path at all.
• Beginning by writing the empty
string on Tape 3, representing no
moves at all.
Nondeterminism
• If that leads to acceptance, then
quit.
• If not, then replace ε with its
lexicographical successor.
• For that string, follow the
sequence of transitions that it
describes.
Nondeterminism
• If that sequence leads to
acceptance, then quit and accept.
• If not, then continue in the same
manner.
Nondeterminism
• If w is accepted by the
nondeterministic Turing machine,
then some sequence of transitions
leads to the accept state.
• Eventually that sequence will be
written on Tape 3 and tried.
Nondeterminism
• On the other hand, if no sequence
of transitions leads to the accept
state, then the deterministic
Turing machine will loop.

More Related Content

What's hot

Turing machine
Turing machineTuring machine
Turing machine
MuhammadSamranTanvee
 
Pda
PdaPda
evolution of operating system
evolution of operating systemevolution of operating system
evolution of operating system
Amir Khan
 
Kernel (OS)
Kernel (OS)Kernel (OS)
Stack organization
Stack organizationStack organization
Stack organization
chauhankapil
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
Dattatray Gandhmal
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
Maulik Togadiya
 
Processes and threads
Processes and threadsProcesses and threads
Turing machine - theory of computation
Turing machine - theory of computationTuring machine - theory of computation
Turing machine - theory of computation
Rubaya Mim
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets
Sampath Kumar S
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
kunj desai
 
TM - Techniques
TM - TechniquesTM - Techniques
TM - Techniques
Rajendran
 
3.1,2,3 pushdown automata definition, moves & id
3.1,2,3 pushdown automata   definition, moves & id3.1,2,3 pushdown automata   definition, moves & id
3.1,2,3 pushdown automata definition, moves & id
Sampath Kumar S
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
Dr. C.V. Suresh Babu
 
POST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEMPOST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEM
Rajendran
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
Bipul Roy Bpl
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating System
Meghaj Mallick
 
Ll(1) Parser in Compilers
Ll(1) Parser in CompilersLl(1) Parser in Compilers
Ll(1) Parser in Compilers
Mahbubur Rahman
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
Ehatsham Riaz
 

What's hot (20)

Turing machine
Turing machineTuring machine
Turing machine
 
Pda
PdaPda
Pda
 
evolution of operating system
evolution of operating systemevolution of operating system
evolution of operating system
 
Kernel (OS)
Kernel (OS)Kernel (OS)
Kernel (OS)
 
Stack organization
Stack organizationStack organization
Stack organization
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Turing machine - theory of computation
Turing machine - theory of computationTuring machine - theory of computation
Turing machine - theory of computation
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
 
Turing machine by_deep
Turing machine by_deepTuring machine by_deep
Turing machine by_deep
 
TM - Techniques
TM - TechniquesTM - Techniques
TM - Techniques
 
3.1,2,3 pushdown automata definition, moves & id
3.1,2,3 pushdown automata   definition, moves & id3.1,2,3 pushdown automata   definition, moves & id
3.1,2,3 pushdown automata definition, moves & id
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
POST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEMPOST’s CORRESPONDENCE PROBLEM
POST’s CORRESPONDENCE PROBLEM
 
Regular expressions-Theory of computation
Regular expressions-Theory of computationRegular expressions-Theory of computation
Regular expressions-Theory of computation
 
Disk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating SystemDisk Scheduling Algorithm in Operating System
Disk Scheduling Algorithm in Operating System
 
Ll(1) Parser in Compilers
Ll(1) Parser in CompilersLl(1) Parser in Compilers
Ll(1) Parser in Compilers
 
Mealy and moore machine
Mealy and moore machineMealy and moore machine
Mealy and moore machine
 

Similar to Variants of Turing Machine

Winter 8 TM.pptx
Winter 8 TM.pptxWinter 8 TM.pptx
Winter 8 TM.pptx
HarisPrince
 
Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
Akila Krishnamoorthy
 
W16.pptx
W16.pptxW16.pptx
W16.pptx
MRKUsafzai0607
 
Turing machine
Turing machineTuring machine
Turing machine
Aafaqueahmad Khan
 
Dynamic Programming - Laughlin Lunch and Learn
Dynamic Programming - Laughlin Lunch and LearnDynamic Programming - Laughlin Lunch and Learn
Dynamic Programming - Laughlin Lunch and Learn
Billie Rose
 
Winter 8 Tutorial TM.pptx
Winter 8 Tutorial TM.pptxWinter 8 Tutorial TM.pptx
Winter 8 Tutorial TM.pptx
HarisPrince
 
ACM ICPC 2012 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2012 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2012 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2012 NEERC (Northeastern European Regional Contest) Problems ReviewRoman Elizarov
 
Recurrent Neural Networks (RNNs)
Recurrent Neural Networks (RNNs)Recurrent Neural Networks (RNNs)
Recurrent Neural Networks (RNNs)
Abdullah al Mamun
 
Cs ps, sat, fol resolution strategies
Cs ps, sat, fol resolution strategiesCs ps, sat, fol resolution strategies
Cs ps, sat, fol resolution strategiesYasir Khan
 
Mcs 031
Mcs 031Mcs 031
Long Short-Term Memory
Long Short-Term MemoryLong Short-Term Memory
Long Short-Term Memory
milad abbasi
 
Lstm
LstmLstm
lect5-1.ppt
lect5-1.pptlect5-1.ppt
Lecture1.pptxjendfkdmdmmdmmedhf bf fbbd ed
Lecture1.pptxjendfkdmdmmdmmedhf bf fbbd edLecture1.pptxjendfkdmdmmdmmedhf bf fbbd ed
Lecture1.pptxjendfkdmdmmdmmedhf bf fbbd ed
zoobiarana76
 
Recurrent Neural Networks
Recurrent Neural NetworksRecurrent Neural Networks
Recurrent Neural Networks
Sharath TS
 
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
Aritra Sarkar
 
densematrix.ppt
densematrix.pptdensematrix.ppt
densematrix.ppt
Rakesh Kumar
 
Tower Of Hanoi -A MatheMatical PuZzle
Tower Of Hanoi -A MatheMatical PuZzleTower Of Hanoi -A MatheMatical PuZzle
Tower Of Hanoi -A MatheMatical PuZzle
purvanahar
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
AyAn KhAn
 
module5_backtrackingnbranchnbound_2022.pdf
module5_backtrackingnbranchnbound_2022.pdfmodule5_backtrackingnbranchnbound_2022.pdf
module5_backtrackingnbranchnbound_2022.pdf
Shiwani Gupta
 

Similar to Variants of Turing Machine (20)

Winter 8 TM.pptx
Winter 8 TM.pptxWinter 8 TM.pptx
Winter 8 TM.pptx
 
Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
 
W16.pptx
W16.pptxW16.pptx
W16.pptx
 
Turing machine
Turing machineTuring machine
Turing machine
 
Dynamic Programming - Laughlin Lunch and Learn
Dynamic Programming - Laughlin Lunch and LearnDynamic Programming - Laughlin Lunch and Learn
Dynamic Programming - Laughlin Lunch and Learn
 
Winter 8 Tutorial TM.pptx
Winter 8 Tutorial TM.pptxWinter 8 Tutorial TM.pptx
Winter 8 Tutorial TM.pptx
 
ACM ICPC 2012 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2012 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2012 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2012 NEERC (Northeastern European Regional Contest) Problems Review
 
Recurrent Neural Networks (RNNs)
Recurrent Neural Networks (RNNs)Recurrent Neural Networks (RNNs)
Recurrent Neural Networks (RNNs)
 
Cs ps, sat, fol resolution strategies
Cs ps, sat, fol resolution strategiesCs ps, sat, fol resolution strategies
Cs ps, sat, fol resolution strategies
 
Mcs 031
Mcs 031Mcs 031
Mcs 031
 
Long Short-Term Memory
Long Short-Term MemoryLong Short-Term Memory
Long Short-Term Memory
 
Lstm
LstmLstm
Lstm
 
lect5-1.ppt
lect5-1.pptlect5-1.ppt
lect5-1.ppt
 
Lecture1.pptxjendfkdmdmmdmmedhf bf fbbd ed
Lecture1.pptxjendfkdmdmmdmmedhf bf fbbd edLecture1.pptxjendfkdmdmmdmmedhf bf fbbd ed
Lecture1.pptxjendfkdmdmmdmmedhf bf fbbd ed
 
Recurrent Neural Networks
Recurrent Neural NetworksRecurrent Neural Networks
Recurrent Neural Networks
 
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
HiPEAC'19 Tutorial on Quantum algorithms using QX - 2019-01-23
 
densematrix.ppt
densematrix.pptdensematrix.ppt
densematrix.ppt
 
Tower Of Hanoi -A MatheMatical PuZzle
Tower Of Hanoi -A MatheMatical PuZzleTower Of Hanoi -A MatheMatical PuZzle
Tower Of Hanoi -A MatheMatical PuZzle
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
module5_backtrackingnbranchnbound_2022.pdf
module5_backtrackingnbranchnbound_2022.pdfmodule5_backtrackingnbranchnbound_2022.pdf
module5_backtrackingnbranchnbound_2022.pdf
 

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

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
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
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
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
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
"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
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
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
 
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
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
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
 

Recently uploaded (20)

A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
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...
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
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
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
"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...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
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...
 
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
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
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
 

Variants of Turing Machine

  • 1. Variants of Turing Machines Lecture 26 Section 3.2 Mon, Oct 22, 2007
  • 2. Increasing the Power of a Turing Machine • It is hard to believe that something as simple as a Turing machine could be powerful enough for complicated problems.
  • 3. Increasing the Power of a Turing Machine • We can imagine a number of improvements. • Multiple tapes • Two-way infinite tape • Two-dimensional tape • Addressable memory • Nondeterminism • etc.
  • 4. Multiple Tapes • Would a Turing machine with k tapes, k > 1, be more powerful than a standard Turing machine? • Each tape could be processed independently of the others.
  • 5. Multiple Tapes • In other words, each transition would read each tape, write to each tape, and move left or right independently on each tape.
  • 6. Multiple Tapes • Theorem: Any language that is accepted by a multitape Turing machine is also accepted by a standard Turing machine.
  • 7. Multiple Tapes • Sketch of the proof: • On a single tape, we could write the contents of all k tapes. • If tape i contains xi1xi2xi3…, for each i, then write #x11x21…xk1#x12x22…xk2#... on the single tape.
  • 8. Multiple Tapes • To show the current location on each tape, put a special mark on one of that tapes symbols: #x11x21…xk1#x12x22…xk2#... • Now the Turing machine scans the tape, locating the current symbol on each “tape.”
  • 9. Multiple Tapes • It then makes the appropriate transition. • Write a symbol over each of the current symbols. • Move the location of the current symbol one space left or right for each “tape.” • Of course, the devil is in the details.
  • 10. Two-way Infinite Tape • We can use a two-tape machine to simiulate the two-way infinite tape. • The right half of the two-way tape is stored on tape 1. • The left half is stored on tape 2. • Transitions are modified to handle the transition from tape 1 to tape 2.
  • 11. Two-way Infinite Tape • Theorem: Any language accepted by a two-way infinite tape is also accepted by a standard Turing machine.
  • 12. Other Variants • Metatheorem: Any language accepted by a Turing machine with any variant that anyone has ever thought of is also accepted by a standard Turing machine.
  • 13. Nondeterminism • A nondeterministic Turing machine is defined like a standard Turing machine except for the transition function. δ : Q′ × Γ → ℘(Q × Γ × {L, R}) where Q′ = Q – {qacc, qrej}.
  • 14. Nondeterminism • That is, δ(q, a) may result in any of a number of actions. • If any sequence of transitions leads to the accept state, then the input is accepted. • If all sequences of transitions lead to the reject state or to looping, then the input is not accepted.
  • 15. Nondeterminism • Theorem: Any language accepted by a nondeterministic Turing machine is also accepted by a standard Turing machine.
  • 16. Nondeterminism • Proof: • We may use a three-tape machine to simulate a nondeterministic Turing machine. • Tape 1 preserves a copy of the original input. • Tape 2 contains a “working” copy of the input. • Tape 3 keeps track of the current state in the nondeterministic machine.
  • 17. Nondeterminism • Start with the input w on Tape 1 and with Tapes 2 and 3 empty. • Copy w from Tape 1 to Tape 2. • For Tape 3, imagine the transitions starting from the start state as forming a tree. • Each state has child states.
  • 18. Nondeterminism • Let b be the largest number of children of any node. • Number the children of each state using the numbers 1, 2, …, b (as many as needed).
  • 19. Nondeterminism • Now each finite string of numbers from {1, 2, …, b} represents a particular path through the nondeterministic Turing machine, or else represents no path at all. • Beginning by writing the empty string on Tape 3, representing no moves at all.
  • 20. Nondeterminism • If that leads to acceptance, then quit. • If not, then replace ε with its lexicographical successor. • For that string, follow the sequence of transitions that it describes.
  • 21. Nondeterminism • If that sequence leads to acceptance, then quit and accept. • If not, then continue in the same manner.
  • 22. Nondeterminism • If w is accepted by the nondeterministic Turing machine, then some sequence of transitions leads to the accept state. • Eventually that sequence will be written on Tape 3 and tried.
  • 23. Nondeterminism • On the other hand, if no sequence of transitions leads to the accept state, then the deterministic Turing machine will loop.