SlideShare a Scribd company logo
TURING MACHINE
BY : HIMANSHU SIROHI
CONTENTS
1. INTRODUCTION
2. TM MODEL
3. FORMAL DEFINITION
4. WORKING WITH EXAMPLE
5. PROPERTIES
6. MODIFICATIONS
7. THE HALTING PROBLEM
8. ADVANTAGES
9. POWER OF TM
10. APPLICATION
INTRODUCTION
 Invented by esteemed computer scientist ALAN
TURING in 1936
 Basically an abstract computational model that
performs computations
 Provide a powerful computational model for solving
problems in computer science
 Capable of simulating common computers
WHAT IS TURING MACHINE ?
 Consists of an infinite tape (as the memory)
 A tape head (a pointer to the currently inspected
cell of the memory)
 And a state transition table(to govern the behavior
of the machine)
FORMAL DEFINITION
A TM is a seven-tuple:
M = (Q, Σ, Γ, δ, q0, B, F)
Q A finite set of states
Σ A finite input alphabet set
Γ A finite tape alphabet
B A distinguished blank symbol, which is in Γ
q0 The initial/starting state, q0 is in Q
F A set of final/accepting states, which is a subset of Q
δ A next-move function, which is a mapping
Q x Γ –> Q x Γ x {L,R}
Intuitively, δ(q,s) specifies the next state, symbol to be written,
and the direction of tape head movement by M after reading
symbol s while in state q.
WORKING
The machine operates on an infinite memory tape
divided into discrete cells. The machine positions
its head over a cell and reads the symbol there.
Then, as per the symbol and its present place in
user specified instructions , the machine
1. Writes a symbol in the cell, then
2. Either moves the tape one cell right or left
3. Either proceeds to a subsequent instruction or
halts the computation
EXAMPLE : TM THAT CHECKS FOR STRING
TO BE PALINDROME
PROPERTIES OF TM
 Recognizability : A language is recognizable if a TM
accepts when an input string is in the language,
and either rejects or loops forever when an input
string is not in the language.
 Decidability : A language is decidable if a TM
accepts strings that are in the language and rejects
that are not in the language. That is, TM will halt on
all inputs.
 The Halting Problem is recognizable but
undecidable.
MODIFICATIONS IN TM
 Multi– tape TM
 Multi –track TM
 Non– deterministic TM
 TM with semi—infinite tape
These all give same performance as the
standard TM gives.
MULTI-TAPE TM
δ: Q × Xk→ Q × (X × {Left_shift, Right_shift, No_shift })k
where there is k number of tapes
MULTI-TRACK TM
 Multi-track Turing machines, a specific type of Multi-
tape Turing machine, contain multiple tracks but
just one tape head reads and writes on all tracks.
Here, a single tape head reads n symbols
from n tracks at one step.
 δ is a relation on states and symbols where
 δ(Qi, [a1, a2, a3,....]) = (Qj, [b1, b2, b3,....], Left_shift
or Right_shift)
NON-DETERMINISTIC TM
 In a Non-Deterministic Turing Machine, for every
state and symbol, there are a group of actions the
TM can have. So, here the transitions are not
deterministic.
 The computation of a non-deterministic Turing
Machine is a tree of configurations that can be
reached from the start configuration.
 An input is accepted if there is at least one node of
the tree which is an accept configuration, otherwise
it is not accepted.
 δ is a transition function :
 δ : Q × X → P(Q × X × {Left_shift, Right_shift}).
TM WITH SEMI-INFINITE TAPE
 A Turing Machine with a semi-infinite tape has a left
end but no right end. The left end is limited with an
end marker.
THE HALTING PROBLEM
 Input − A Turing machine and an input string w.
 Problem − Does the Turing machine finish
computing of the string w in a finite number of
steps? The answer must be either yes or no.
 Proof − At first, we will assume that such a Turing
machine exists to solve this problem and then we
will show it is contradicting itself. We will call this
Turing machine as a Halting machine that
produces a ‘yes’ or ‘no’ in a finite amount of time. If
the halting machine finishes in a finite amount of
time, the output comes as ‘yes’, otherwise as ‘no’.
The following is the block diagram of a Halting
machine −
THE FOLLOWING IS THE BLOCK DIAGRAM OF
SUCH HALTING MACHINE −
INVERTED HALTING MACHINE
 Now we will design an inverted halting machine
(HM) as −
 If H returns YES, then loop forever.
 If H returns NO, then halt.
 Further, a machine (HM)2 which input itself is
constructed as follows −
 If (HM)2 halts on input, loop forever.
 Else, halt.
 Here, we have got a contradiction. Hence, the
halting problem is undecidable.
THE FOLLOWING IS THE BLOCK DIAGRAM OF AN
‘INVERTED HALTING MACHINE’ −
ADVANTAGES
 Turing machines are similar to finite automata/finite state
machines but have the advantage of unlimited memory.
 They are capable of simulating common computers; a
problem that a common computer can solve (given
enough memory) will also be solvable using a Turing
machine, and vice versa.
 Simplicity of proofs
As a theoretic model, Turing machines have the charme
of being "simple" in the sense that the current machine
state has only constant size. All the information you
need in order to determine the next machine state
is one symbol and one (control) state number. The
change to the machine state is equally small, adding
only the movement of the machine head.
ADVANTAGES
 If you're designing some kind of programming
language (or anything else that is meant to
compute things), then you may want to ensure that
it is Turing-complete (i.e., capable of computing
anything that is computable) by implementing a
Turing machine in it.
 Classify Problem TM helps to classify decidable
problems into classes of Polynomial Hierarchy.
Suppose we found that the problem is decidable.
Then our target become how efficiently we can
solve it. The efficiency been calculated in number of
steps, extra space used , length of the code/size of
the FSM.
TM: INFINITE OR JUST UNLIMITED
 At this point we could fall to arguing the
impossibility of the Turing machine because its tape
can’t be infinitely long.
 The machine doesn't, in fact, need an infinite tape,
just one that isn't limited in length and this is a
subtle difference.
 Imagine if you will that Turing machines are
produced with a very long but finite tape and if the
machine ever runs out of space you can just order
some more tape. This is the difference between the
tape actually being infinitely long or just unlimited…
TURING MACHINE: FEEBLE OR POWERFUL
You may think that TM is not really of any importance
because it is a very feeble machine but it can’t be
dismissed like this because Alan Turing thought up the
machine as a model for computation that could be
performed by human easily.
So ,TM is the simplest implementation of computing
and informally we can say that if something can be
computed then it can be done using a TM.
That is, TM is about what can be computed in principle
It actually defines computing, computation and what is
Computable
Compare this aspect with the RAM model (when not used in its
minimalistic form): the next operation may be any of several
operations, which may access any (two) registers. There are also
multiple control structures.
APPLICATION
 The Church-Turing thesis claims that any computable
problem can be computed by a Turing machine. This means
that a computer more powerful than a Turing machine is not
necessary to solve computable problems. The idea of Turing
completeness is closely related to this. A system is Turing
complete if it can compute every Turing computable function.
A programming language that is Turing complete is
theoretically capable of expressing all tasks accomplishable
by computers; nearly all programming languages are Turing
complete.
 To prove that something is Turing complete, it is sufficient to
show that it can simulate some other Turing complete system.
Usually, it is easiest to show that a system can simulate
auniversal Turing machine. A universal Turing machine is a
Turing machine that can simulate any other Turing machine.
CONCLUSION
 You could say that the computer was invented twice
– once by Charles Babbage and once by Alan
Turing.
 While Babbage’s machine was a practical thing but
Turing’s was just a machine of mind.
 TM is a model of what is physically computable.
 TM might take a little longer to work out on a
problem than the latest PC , but it will give the
same result.
 If you have a system that can compute something
then a TM can compute it as well.
 What is more so far no system has been found that
can goes beyond a TM.
THANK YOU

More Related Content

What's hot

Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
Maulik Togadiya
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
Rajendran
 
Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
Rajendran
 
Turing machine Introduction
Turing machine IntroductionTuring machine Introduction
Turing machine Introduction
Aram Rafeq
 
Turing machine
Turing machineTuring machine
Turing machine
Aafaqueahmad Khan
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
Radhakrishnan Chinnusamy
 
Working principle of Turing machine
Working principle of Turing machineWorking principle of Turing machine
Working principle of Turing machine
Karan Thakkar
 
Turing machine - theory of computation
Turing machine - theory of computationTuring machine - theory of computation
Turing machine - theory of computation
Rubaya Mim
 
Multi dimensional turing machine
Multi dimensional turing machineMulti dimensional turing machine
Multi dimensional turing machine
NiteshSingh405
 
Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
Akila Krishnamoorthy
 
Pushdown Automata Theory
Pushdown Automata TheoryPushdown Automata Theory
Pushdown Automata Theory
Saifur Rahman
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
Marina Santini
 
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDAPush Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Ashish Duggal
 
TM - Techniques
TM - TechniquesTM - Techniques
TM - Techniques
Rajendran
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
Ratnakar Mikkili
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
Rajendran
 
Turing machines
Turing machinesTuring machines
Turing machines
surekamurali
 
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
 
Daa unit 5
Daa unit 5Daa unit 5
Daa unit 5
Abhimanyu Mishra
 

What's hot (20)

Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
 
Turing machine Introduction
Turing machine IntroductionTuring machine Introduction
Turing machine Introduction
 
Turing machine
Turing machineTuring machine
Turing machine
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
 
Working principle of Turing machine
Working principle of Turing machineWorking principle of Turing machine
Working principle of Turing machine
 
Turing machine - theory of computation
Turing machine - theory of computationTuring machine - theory of computation
Turing machine - theory of computation
 
Multi dimensional turing machine
Multi dimensional turing machineMulti dimensional turing machine
Multi dimensional turing machine
 
Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
 
Pushdown Automata Theory
Pushdown Automata TheoryPushdown Automata Theory
Pushdown Automata Theory
 
Turing machines
Turing machinesTuring machines
Turing machines
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDAPush Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
 
TM - Techniques
TM - TechniquesTM - Techniques
TM - Techniques
 
Introduction TO Finite Automata
Introduction TO Finite AutomataIntroduction TO Finite Automata
Introduction TO Finite Automata
 
Intro automata theory
Intro automata theory Intro automata theory
Intro automata theory
 
Turing machines
Turing machinesTuring machines
Turing machines
 
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
 
Daa unit 5
Daa unit 5Daa unit 5
Daa unit 5
 

Similar to Turing machine

Winter 8 TM.pptx
Winter 8 TM.pptxWinter 8 TM.pptx
Winter 8 TM.pptx
HarisPrince
 
Turing machine seminar report
Turing machine seminar reportTuring machine seminar report
Turing machine seminar report
Yashwant Dagar
 
G044053060
G044053060G044053060
G044053060
inventy
 
chapter 2.pptx
chapter 2.pptxchapter 2.pptx
chapter 2.pptx
sampathkumar912515
 
universality
universalityuniversality
universality
Rajendran
 
Computation theory Assignment Help
Computation theory Assignment HelpComputation theory Assignment Help
Computation theory Assignment Help
Global Web Tutors
 
HALTINGPROBLEM.pptx
HALTINGPROBLEM.pptxHALTINGPROBLEM.pptx
HALTINGPROBLEM.pptx
gopikrishna434842
 
Turing machine.pptx
Turing machine.pptxTuring machine.pptx
Turing machine.pptx
AnkitChauhan817826
 
class16.ppt
class16.pptclass16.ppt
class16.ppt
MALuqmaan1
 
churchturingthesis-160906170827.pptx
churchturingthesis-160906170827.pptxchurchturingthesis-160906170827.pptx
churchturingthesis-160906170827.pptx
mukul narayana
 
NP completeness
NP completenessNP completeness
NP completeness
Amrinder Arora
 
Turing machine
Turing machineTuring machine
Turing machine
Neelamani Samal
 
Church Turing Thesis
Church Turing ThesisChurch Turing Thesis
Church Turing Thesis
Hemant Sharma
 
CS.15.Turing.pdf
CS.15.Turing.pdfCS.15.Turing.pdf
CS.15.Turing.pdf
YasirAli74993
 
Automata presentation.
Automata presentation.Automata presentation.
Automata presentation.
RehanZafar13
 
QB104544.pdf
QB104544.pdfQB104544.pdf
QB104544.pdf
MrRRajasekarCSE
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
SidraMalik81
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
SidraMalik81
 
Turing machine
Turing machineTuring machine
Turing machine
nirob nahin
 
2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練
Abner Huang
 

Similar to Turing machine (20)

Winter 8 TM.pptx
Winter 8 TM.pptxWinter 8 TM.pptx
Winter 8 TM.pptx
 
Turing machine seminar report
Turing machine seminar reportTuring machine seminar report
Turing machine seminar report
 
G044053060
G044053060G044053060
G044053060
 
chapter 2.pptx
chapter 2.pptxchapter 2.pptx
chapter 2.pptx
 
universality
universalityuniversality
universality
 
Computation theory Assignment Help
Computation theory Assignment HelpComputation theory Assignment Help
Computation theory Assignment Help
 
HALTINGPROBLEM.pptx
HALTINGPROBLEM.pptxHALTINGPROBLEM.pptx
HALTINGPROBLEM.pptx
 
Turing machine.pptx
Turing machine.pptxTuring machine.pptx
Turing machine.pptx
 
class16.ppt
class16.pptclass16.ppt
class16.ppt
 
churchturingthesis-160906170827.pptx
churchturingthesis-160906170827.pptxchurchturingthesis-160906170827.pptx
churchturingthesis-160906170827.pptx
 
NP completeness
NP completenessNP completeness
NP completeness
 
Turing machine
Turing machineTuring machine
Turing machine
 
Church Turing Thesis
Church Turing ThesisChurch Turing Thesis
Church Turing Thesis
 
CS.15.Turing.pdf
CS.15.Turing.pdfCS.15.Turing.pdf
CS.15.Turing.pdf
 
Automata presentation.
Automata presentation.Automata presentation.
Automata presentation.
 
QB104544.pdf
QB104544.pdfQB104544.pdf
QB104544.pdf
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
 
Turing machine
Turing machineTuring machine
Turing machine
 
2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練2009 CSBB LAB 新生訓練
2009 CSBB LAB 新生訓練
 

Recently uploaded

Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 

Recently uploaded (20)

Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 

Turing machine

  • 1. TURING MACHINE BY : HIMANSHU SIROHI
  • 2. CONTENTS 1. INTRODUCTION 2. TM MODEL 3. FORMAL DEFINITION 4. WORKING WITH EXAMPLE 5. PROPERTIES 6. MODIFICATIONS 7. THE HALTING PROBLEM 8. ADVANTAGES 9. POWER OF TM 10. APPLICATION
  • 3. INTRODUCTION  Invented by esteemed computer scientist ALAN TURING in 1936  Basically an abstract computational model that performs computations  Provide a powerful computational model for solving problems in computer science  Capable of simulating common computers
  • 4. WHAT IS TURING MACHINE ?  Consists of an infinite tape (as the memory)  A tape head (a pointer to the currently inspected cell of the memory)  And a state transition table(to govern the behavior of the machine)
  • 5.
  • 6. FORMAL DEFINITION A TM is a seven-tuple: M = (Q, Σ, Γ, δ, q0, B, F) Q A finite set of states Σ A finite input alphabet set Γ A finite tape alphabet B A distinguished blank symbol, which is in Γ q0 The initial/starting state, q0 is in Q F A set of final/accepting states, which is a subset of Q δ A next-move function, which is a mapping Q x Γ –> Q x Γ x {L,R} Intuitively, δ(q,s) specifies the next state, symbol to be written, and the direction of tape head movement by M after reading symbol s while in state q.
  • 7. WORKING The machine operates on an infinite memory tape divided into discrete cells. The machine positions its head over a cell and reads the symbol there. Then, as per the symbol and its present place in user specified instructions , the machine 1. Writes a symbol in the cell, then 2. Either moves the tape one cell right or left 3. Either proceeds to a subsequent instruction or halts the computation
  • 8. EXAMPLE : TM THAT CHECKS FOR STRING TO BE PALINDROME
  • 9. PROPERTIES OF TM  Recognizability : A language is recognizable if a TM accepts when an input string is in the language, and either rejects or loops forever when an input string is not in the language.  Decidability : A language is decidable if a TM accepts strings that are in the language and rejects that are not in the language. That is, TM will halt on all inputs.  The Halting Problem is recognizable but undecidable.
  • 10. MODIFICATIONS IN TM  Multi– tape TM  Multi –track TM  Non– deterministic TM  TM with semi—infinite tape These all give same performance as the standard TM gives.
  • 11. MULTI-TAPE TM δ: Q × Xk→ Q × (X × {Left_shift, Right_shift, No_shift })k where there is k number of tapes
  • 12. MULTI-TRACK TM  Multi-track Turing machines, a specific type of Multi- tape Turing machine, contain multiple tracks but just one tape head reads and writes on all tracks. Here, a single tape head reads n symbols from n tracks at one step.  δ is a relation on states and symbols where  δ(Qi, [a1, a2, a3,....]) = (Qj, [b1, b2, b3,....], Left_shift or Right_shift)
  • 13. NON-DETERMINISTIC TM  In a Non-Deterministic Turing Machine, for every state and symbol, there are a group of actions the TM can have. So, here the transitions are not deterministic.  The computation of a non-deterministic Turing Machine is a tree of configurations that can be reached from the start configuration.  An input is accepted if there is at least one node of the tree which is an accept configuration, otherwise it is not accepted.  δ is a transition function :  δ : Q × X → P(Q × X × {Left_shift, Right_shift}).
  • 14. TM WITH SEMI-INFINITE TAPE  A Turing Machine with a semi-infinite tape has a left end but no right end. The left end is limited with an end marker.
  • 15. THE HALTING PROBLEM  Input − A Turing machine and an input string w.  Problem − Does the Turing machine finish computing of the string w in a finite number of steps? The answer must be either yes or no.  Proof − At first, we will assume that such a Turing machine exists to solve this problem and then we will show it is contradicting itself. We will call this Turing machine as a Halting machine that produces a ‘yes’ or ‘no’ in a finite amount of time. If the halting machine finishes in a finite amount of time, the output comes as ‘yes’, otherwise as ‘no’. The following is the block diagram of a Halting machine −
  • 16. THE FOLLOWING IS THE BLOCK DIAGRAM OF SUCH HALTING MACHINE −
  • 17. INVERTED HALTING MACHINE  Now we will design an inverted halting machine (HM) as −  If H returns YES, then loop forever.  If H returns NO, then halt.  Further, a machine (HM)2 which input itself is constructed as follows −  If (HM)2 halts on input, loop forever.  Else, halt.  Here, we have got a contradiction. Hence, the halting problem is undecidable.
  • 18. THE FOLLOWING IS THE BLOCK DIAGRAM OF AN ‘INVERTED HALTING MACHINE’ −
  • 19. ADVANTAGES  Turing machines are similar to finite automata/finite state machines but have the advantage of unlimited memory.  They are capable of simulating common computers; a problem that a common computer can solve (given enough memory) will also be solvable using a Turing machine, and vice versa.  Simplicity of proofs As a theoretic model, Turing machines have the charme of being "simple" in the sense that the current machine state has only constant size. All the information you need in order to determine the next machine state is one symbol and one (control) state number. The change to the machine state is equally small, adding only the movement of the machine head.
  • 20. ADVANTAGES  If you're designing some kind of programming language (or anything else that is meant to compute things), then you may want to ensure that it is Turing-complete (i.e., capable of computing anything that is computable) by implementing a Turing machine in it.  Classify Problem TM helps to classify decidable problems into classes of Polynomial Hierarchy. Suppose we found that the problem is decidable. Then our target become how efficiently we can solve it. The efficiency been calculated in number of steps, extra space used , length of the code/size of the FSM.
  • 21. TM: INFINITE OR JUST UNLIMITED  At this point we could fall to arguing the impossibility of the Turing machine because its tape can’t be infinitely long.  The machine doesn't, in fact, need an infinite tape, just one that isn't limited in length and this is a subtle difference.  Imagine if you will that Turing machines are produced with a very long but finite tape and if the machine ever runs out of space you can just order some more tape. This is the difference between the tape actually being infinitely long or just unlimited…
  • 22. TURING MACHINE: FEEBLE OR POWERFUL You may think that TM is not really of any importance because it is a very feeble machine but it can’t be dismissed like this because Alan Turing thought up the machine as a model for computation that could be performed by human easily. So ,TM is the simplest implementation of computing and informally we can say that if something can be computed then it can be done using a TM. That is, TM is about what can be computed in principle It actually defines computing, computation and what is Computable Compare this aspect with the RAM model (when not used in its minimalistic form): the next operation may be any of several operations, which may access any (two) registers. There are also multiple control structures.
  • 23. APPLICATION  The Church-Turing thesis claims that any computable problem can be computed by a Turing machine. This means that a computer more powerful than a Turing machine is not necessary to solve computable problems. The idea of Turing completeness is closely related to this. A system is Turing complete if it can compute every Turing computable function. A programming language that is Turing complete is theoretically capable of expressing all tasks accomplishable by computers; nearly all programming languages are Turing complete.  To prove that something is Turing complete, it is sufficient to show that it can simulate some other Turing complete system. Usually, it is easiest to show that a system can simulate auniversal Turing machine. A universal Turing machine is a Turing machine that can simulate any other Turing machine.
  • 24. CONCLUSION  You could say that the computer was invented twice – once by Charles Babbage and once by Alan Turing.  While Babbage’s machine was a practical thing but Turing’s was just a machine of mind.  TM is a model of what is physically computable.  TM might take a little longer to work out on a problem than the latest PC , but it will give the same result.  If you have a system that can compute something then a TM can compute it as well.  What is more so far no system has been found that can goes beyond a TM.