SlideShare a Scribd company logo
 Conceptually a Turing machine, like finite
automata
 A Turing machine consists of a finite-state control
unit and a tape that is infinite in both directions and
divided into cells, each of which can hold one symbol:
 At each step, the control unit performs two actions
in a way dependent on:
 The two actions will be:
 1. either
 – move the read/write head one cell to the left or
right;
 2. put the control unit into a new state
Turing machine will be your ultimate
model for computer.
In Turing machine output is very
important.
We know that every program has an
output but this is not exactly true.
 1.READ X
 2.IF X=1 THEN END
 3.IF X=2 THEN DIVIDE X BY 0
 4.IF X>2 THEN GOTO STATEMENT 4
 We shall see in a moment that the same
terminology is applied to Turing machine.
............
Read-Write head
Control Unit
............
Read-Write head
No boundaries -- infinite length
The head moves Left or Right
............
Read-Write head
The head at each transition (time step):
1. Reads a symbol
2. Writes a symbol
3. Moves Left or Right
............
Example:
Time 0
............
Time 1
1. Reads
2. Writes
a a cb
a b k c
a
k
3. Moves Left
............
Time 1
a b k c
............
Time 2
a k cf
1. Reads
2. Writes
b
f
3. Moves Right
............ ◊ ◊ ◊ ◊
Blank symbol
head
◊a b ca
Head starts at the leftmost position
of the input string
Input string
1q 2qLba ,→
Read Write
Move Left
1q 2qRba ,→
Move Right
 Definition. A Turing machine is a 7-tuple (Q, ∑, Γ, ∂,
q0, qaccept, qreject),
 where:
• Q is a set of states
∀ ∑ is a set of symbols (the alphabet)
∀ Γ is a set of symbols that can be written in tape, ∈
Γ and ∑ ⊆ Γ
• q0 ∈ Q is the initial state
• qaccept is the accepting state
• qreject is the rejecting state, qreject ≠ qaccept
∀ ∂ is a collection of transitions defined by the
function:
 ∂: (Q − {qaccept, qreject }) × Γ  Q × Γ × {, }
The machine halts in a state if there is
no transition to follow
Halting Example 1:
............ ◊ ◊ ◊ ◊◊a b ca
1q
1q No transition from
HALT!!!
1q
1q 2q Allowed
1q 2q Not Allowed
•Accepting states have no outgoing transitions
•The machine halts and accepts
Accept Input
If machine halts
in an accept state
Reject Input
If machine halts
in a non-accept state
or
If machine enters
an infinite loop
string
string
Accepts the language: *a
0q
Raa ,→
L,◊→◊
1q
Input alphabet },{ ba=Σ
◊ ◊ ◊ ◊aaTime 0
0q
a
0q
Raa ,→
L,◊→◊
1q
◊ ◊ ◊ ◊aaTime 1
0q
a
0q
Raa ,→
L,◊→◊
1q
◊ ◊ ◊ ◊aaTime 2
0q
a
0q
Raa ,→
L,◊→◊
1q
◊ ◊ ◊ ◊aaTime 3
0q
a
0q
Raa ,→
L,◊→◊
1q
◊ ◊ ◊ ◊aaTime 4
1q
a
0q
Raa ,→
L,◊→◊
1q
Halt & Accept
Rejection Example
0q
Raa ,→
L,◊→◊
1q
◊ ◊ ◊ ◊baTime 0
0q
a
0q
Raa ,→
L,◊→◊
1q
◊ ◊ ◊ ◊baTime 1
0q
a
No possible Transition
Halt & Reject
Accepts the language: *a
0q
but for input alphabet }{a=Σ
A simpler machine for same language
◊ ◊ ◊ ◊aaTime 0
0q
a
0q
Halt & Accept
Not necessary to scan input
 Turing machine as a language recognizer.
 Turing machine as a language generator.
 Turing machine as a language evaluator.
 Turing machine as a language decider.
ANY QUESTIONS??

More Related Content

What's hot

Turing machine
Turing machineTuring machine
Turing machine
Aafaqueahmad Khan
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
AniketKandara1
 
Turing machine - theory of computation
Turing machine - theory of computationTuring machine - theory of computation
Turing machine - theory of computation
Rubaya Mim
 
Turing machine
Turing machineTuring machine
Turing machine
MuhammadSamranTanvee
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
Anshuman Biswal
 
Turing machine
Turing machineTuring machine
Turing machine
HimanshuSirohi6
 
Introduction to Turing Machine
Introduction to Turing MachineIntroduction to Turing Machine
Introduction to Turing Machine
Muhammad SiRaj Munir
 
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
 
Multi dimensional turing machine
Multi dimensional turing machineMulti dimensional turing machine
Multi dimensional turing machine
NiteshSingh405
 
Turing machines
Turing machinesTuring machines
Turing machines
surekamurali
 
Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
Rajendran
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
Maulik Togadiya
 
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
 
LINEAR BOUNDED AUTOMATA (LBA).pptx
LINEAR BOUNDED AUTOMATA (LBA).pptxLINEAR BOUNDED AUTOMATA (LBA).pptx
LINEAR BOUNDED AUTOMATA (LBA).pptx
AkhilJoseph63
 
Automata presentation turing machine programming techniques
Automata presentation turing machine programming techniquesAutomata presentation turing machine programming techniques
Automata presentation turing machine programming techniques
Basit Hussain
 
pushdown automata
pushdown automatapushdown automata
pushdown automata
Sujata Pardeshi
 
Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
Akila Krishnamoorthy
 
Turing machine
Turing machineTuring machine
Turing machine
Neelamani Samal
 
Recurrent Neural Networks (RNNs)
Recurrent Neural Networks (RNNs)Recurrent Neural Networks (RNNs)
Recurrent Neural Networks (RNNs)
Abdullah al Mamun
 

What's hot (20)

Turing machine
Turing machineTuring machine
Turing machine
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing machine - theory of computation
Turing machine - theory of computationTuring machine - theory of computation
Turing machine - theory of computation
 
Turing machine
Turing machineTuring machine
Turing machine
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing machine
Turing machineTuring machine
Turing machine
 
Introduction to Turing Machine
Introduction to Turing MachineIntroduction to Turing Machine
Introduction to Turing Machine
 
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
 
Multi dimensional turing machine
Multi dimensional turing machineMulti dimensional turing machine
Multi dimensional turing machine
 
Turing machines
Turing machinesTuring machines
Turing machines
 
Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
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
 
LINEAR BOUNDED AUTOMATA (LBA).pptx
LINEAR BOUNDED AUTOMATA (LBA).pptxLINEAR BOUNDED AUTOMATA (LBA).pptx
LINEAR BOUNDED AUTOMATA (LBA).pptx
 
Automata presentation turing machine programming techniques
Automata presentation turing machine programming techniquesAutomata presentation turing machine programming techniques
Automata presentation turing machine programming techniques
 
pushdown automata
pushdown automatapushdown automata
pushdown automata
 
Automata Theory - Turing machine
Automata Theory - Turing machineAutomata Theory - Turing machine
Automata Theory - Turing machine
 
Turing machine
Turing machineTuring machine
Turing machine
 
Recurrent Neural Networks (RNNs)
Recurrent Neural Networks (RNNs)Recurrent Neural Networks (RNNs)
Recurrent Neural Networks (RNNs)
 

Viewers also liked

Turing machine
Turing machineTuring machine
Turing machine
Umar Alharaky
 
Church Turing Thesis
Church Turing ThesisChurch Turing Thesis
Church Turing Thesis
Hemant Sharma
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
azmizryk
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
Rajendran
 
Turing Church Online Workshop 2
Turing Church Online Workshop 2Turing Church Online Workshop 2
Turing Church Online Workshop 2
Giulio Prisco
 
The Cosmic Visions of the Turing Church
The Cosmic Visions of the Turing ChurchThe Cosmic Visions of the Turing Church
The Cosmic Visions of the Turing Church
Giulio Prisco
 
final Swastik Brochure PDF
final Swastik Brochure PDFfinal Swastik Brochure PDF
final Swastik Brochure PDF
Nirmish Panchal
 
China office accounting computing machinery industry profile isic3000 sampl...
China office accounting computing machinery industry profile isic3000   sampl...China office accounting computing machinery industry profile isic3000   sampl...
China office accounting computing machinery industry profile isic3000 sampl...
Beijing Zeefer Consulting Ltd.
 
Abdul Hadi Chara Internship Report
Abdul Hadi Chara Internship ReportAbdul Hadi Chara Internship Report
Abdul Hadi Chara Internship Report
Abdul Hadi Chara
 
Chomsky by zeeshan khan and Raheel Khan
Chomsky by zeeshan khan and Raheel KhanChomsky by zeeshan khan and Raheel Khan
Chomsky by zeeshan khan and Raheel Khan
M Khan
 
Chomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsChomsky & Greibach Normal Forms
Chomsky & Greibach Normal Forms
Rajendran
 
CNF & Leftmost Derivation - Theory of Computation
CNF & Leftmost Derivation - Theory of ComputationCNF & Leftmost Derivation - Theory of Computation
CNF & Leftmost Derivation - Theory of Computation
Drishti Bhalla
 
touch screen technology presentation
touch screen technology presentationtouch screen technology presentation
touch screen technology presentation
shri. ram murti smarak college of engg. & technology
 
Tok- Maths Presentation
Tok- Maths PresentationTok- Maths Presentation
Tok- Maths Presentation
Iain Williamson
 
Theory of Knowledge - mathematics philosophies
Theory of Knowledge -  mathematics philosophiesTheory of Knowledge -  mathematics philosophies
Theory of Knowledge - mathematics philosophies
plangdale
 

Viewers also liked (16)

Turing machine
Turing machineTuring machine
Turing machine
 
Church Turing Thesis
Church Turing ThesisChurch Turing Thesis
Church Turing Thesis
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing machine
Turing  machine Turing  machine
Turing machine
 
Turing Church Online Workshop 2
Turing Church Online Workshop 2Turing Church Online Workshop 2
Turing Church Online Workshop 2
 
The Cosmic Visions of the Turing Church
The Cosmic Visions of the Turing ChurchThe Cosmic Visions of the Turing Church
The Cosmic Visions of the Turing Church
 
final Swastik Brochure PDF
final Swastik Brochure PDFfinal Swastik Brochure PDF
final Swastik Brochure PDF
 
China office accounting computing machinery industry profile isic3000 sampl...
China office accounting computing machinery industry profile isic3000   sampl...China office accounting computing machinery industry profile isic3000   sampl...
China office accounting computing machinery industry profile isic3000 sampl...
 
Abdul Hadi Chara Internship Report
Abdul Hadi Chara Internship ReportAbdul Hadi Chara Internship Report
Abdul Hadi Chara Internship Report
 
Chomsky by zeeshan khan and Raheel Khan
Chomsky by zeeshan khan and Raheel KhanChomsky by zeeshan khan and Raheel Khan
Chomsky by zeeshan khan and Raheel Khan
 
Chomsky & Greibach Normal Forms
Chomsky & Greibach Normal FormsChomsky & Greibach Normal Forms
Chomsky & Greibach Normal Forms
 
CNF & Leftmost Derivation - Theory of Computation
CNF & Leftmost Derivation - Theory of ComputationCNF & Leftmost Derivation - Theory of Computation
CNF & Leftmost Derivation - Theory of Computation
 
touch screen technology presentation
touch screen technology presentationtouch screen technology presentation
touch screen technology presentation
 
Tok- Maths Presentation
Tok- Maths PresentationTok- Maths Presentation
Tok- Maths Presentation
 
Theory of Knowledge - mathematics philosophies
Theory of Knowledge -  mathematics philosophiesTheory of Knowledge -  mathematics philosophies
Theory of Knowledge - mathematics philosophies
 

Similar to Turing Machine

Ch2 finite automaton
Ch2 finite automatonCh2 finite automaton
Ch2 finite automaton
meresie tesfay
 
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
 
Automata based programming
Automata based programmingAutomata based programming
Automata based programming
VisnuDharsini
 
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdfD. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
interaman123
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
Edhole.com
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
SidraMalik81
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
SidraMalik81
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
Editor IJARCET
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
Editor IJARCET
 
Elevator1
Elevator1Elevator1
Elevator1
cognosvlsi
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
Edhole.com
 
TLA+ and PlusCal / An engineer's perspective
TLA+ and PlusCal / An engineer's perspectiveTLA+ and PlusCal / An engineer's perspective
TLA+ and PlusCal / An engineer's perspective
Torao Takami
 
universality
universalityuniversality
universality
Rajendran
 
Crash course in verilog
Crash course in verilogCrash course in verilog
Crash course in verilog
Pantech ProLabs India Pvt Ltd
 
Finite automata
Finite automataFinite automata
Finite automata
Pusp Sunar
 
Unit iv
Unit ivUnit iv
Unit iv
TPLatchoumi
 
FINITE STATE MACHINE AND CHOMSKY HIERARCHY
FINITE STATE MACHINE AND CHOMSKY HIERARCHYFINITE STATE MACHINE AND CHOMSKY HIERARCHY
FINITE STATE MACHINE AND CHOMSKY HIERARCHY
nishimanglani
 
state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdf
rdjo
 
017_20160826 Thermodynamics Of Stochastic Turing Machines
017_20160826 Thermodynamics Of Stochastic Turing Machines017_20160826 Thermodynamics Of Stochastic Turing Machines
017_20160826 Thermodynamics Of Stochastic Turing Machines
Ha Phuong
 

Similar to Turing Machine (20)

Ch2 finite automaton
Ch2 finite automatonCh2 finite automaton
Ch2 finite automaton
 
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
 
Automata based programming
Automata based programmingAutomata based programming
Automata based programming
 
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdfD. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
D. CHAPTER dffrtgfffffffgggfffdddFIVE.pdf
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
 
Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207Volume 2-issue-6-2205-2207
Volume 2-issue-6-2205-2207
 
Elevator1
Elevator1Elevator1
Elevator1
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
TLA+ and PlusCal / An engineer's perspective
TLA+ and PlusCal / An engineer's perspectiveTLA+ and PlusCal / An engineer's perspective
TLA+ and PlusCal / An engineer's perspective
 
universality
universalityuniversality
universality
 
Crash course in verilog
Crash course in verilogCrash course in verilog
Crash course in verilog
 
Finite automata
Finite automataFinite automata
Finite automata
 
Unit iv
Unit ivUnit iv
Unit iv
 
FINITE STATE MACHINE AND CHOMSKY HIERARCHY
FINITE STATE MACHINE AND CHOMSKY HIERARCHYFINITE STATE MACHINE AND CHOMSKY HIERARCHY
FINITE STATE MACHINE AND CHOMSKY HIERARCHY
 
state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdf
 
017_20160826 Thermodynamics Of Stochastic Turing Machines
017_20160826 Thermodynamics Of Stochastic Turing Machines017_20160826 Thermodynamics Of Stochastic Turing Machines
017_20160826 Thermodynamics Of Stochastic Turing Machines
 

Recently uploaded

Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
gowrishankartb2005
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
PKavitha10
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
Madan Karki
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 

Recently uploaded (20)

Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
Material for memory and display system h
Material for memory and display system hMaterial for memory and display system h
Material for memory and display system h
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 
CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1CEC 352 - SATELLITE COMMUNICATION UNIT 1
CEC 352 - SATELLITE COMMUNICATION UNIT 1
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 

Turing Machine

  • 1.
  • 2.  Conceptually a Turing machine, like finite automata  A Turing machine consists of a finite-state control unit and a tape that is infinite in both directions and divided into cells, each of which can hold one symbol:  At each step, the control unit performs two actions in a way dependent on:  The two actions will be:  1. either  – move the read/write head one cell to the left or right;  2. put the control unit into a new state
  • 3. Turing machine will be your ultimate model for computer. In Turing machine output is very important. We know that every program has an output but this is not exactly true.
  • 4.  1.READ X  2.IF X=1 THEN END  3.IF X=2 THEN DIVIDE X BY 0  4.IF X>2 THEN GOTO STATEMENT 4  We shall see in a moment that the same terminology is applied to Turing machine.
  • 6. ............ Read-Write head No boundaries -- infinite length The head moves Left or Right
  • 7. ............ Read-Write head The head at each transition (time step): 1. Reads a symbol 2. Writes a symbol 3. Moves Left or Right
  • 8. ............ Example: Time 0 ............ Time 1 1. Reads 2. Writes a a cb a b k c a k 3. Moves Left
  • 9. ............ Time 1 a b k c ............ Time 2 a k cf 1. Reads 2. Writes b f 3. Moves Right
  • 10. ............ ◊ ◊ ◊ ◊ Blank symbol head ◊a b ca Head starts at the leftmost position of the input string Input string
  • 11. 1q 2qLba ,→ Read Write Move Left 1q 2qRba ,→ Move Right
  • 12.  Definition. A Turing machine is a 7-tuple (Q, ∑, Γ, ∂, q0, qaccept, qreject),  where: • Q is a set of states ∀ ∑ is a set of symbols (the alphabet) ∀ Γ is a set of symbols that can be written in tape, ∈ Γ and ∑ ⊆ Γ • q0 ∈ Q is the initial state
  • 13. • qaccept is the accepting state • qreject is the rejecting state, qreject ≠ qaccept ∀ ∂ is a collection of transitions defined by the function:  ∂: (Q − {qaccept, qreject }) × Γ  Q × Γ × {, }
  • 14. The machine halts in a state if there is no transition to follow
  • 15. Halting Example 1: ............ ◊ ◊ ◊ ◊◊a b ca 1q 1q No transition from HALT!!! 1q
  • 16. 1q 2q Allowed 1q 2q Not Allowed •Accepting states have no outgoing transitions •The machine halts and accepts
  • 17. Accept Input If machine halts in an accept state Reject Input If machine halts in a non-accept state or If machine enters an infinite loop string string
  • 18. Accepts the language: *a 0q Raa ,→ L,◊→◊ 1q Input alphabet },{ ba=Σ
  • 19. ◊ ◊ ◊ ◊aaTime 0 0q a 0q Raa ,→ L,◊→◊ 1q
  • 20. ◊ ◊ ◊ ◊aaTime 1 0q a 0q Raa ,→ L,◊→◊ 1q
  • 21. ◊ ◊ ◊ ◊aaTime 2 0q a 0q Raa ,→ L,◊→◊ 1q
  • 22. ◊ ◊ ◊ ◊aaTime 3 0q a 0q Raa ,→ L,◊→◊ 1q
  • 23. ◊ ◊ ◊ ◊aaTime 4 1q a 0q Raa ,→ L,◊→◊ 1q Halt & Accept
  • 25. 0q Raa ,→ L,◊→◊ 1q ◊ ◊ ◊ ◊baTime 1 0q a No possible Transition Halt & Reject
  • 26. Accepts the language: *a 0q but for input alphabet }{a=Σ A simpler machine for same language
  • 27. ◊ ◊ ◊ ◊aaTime 0 0q a 0q Halt & Accept Not necessary to scan input
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.  Turing machine as a language recognizer.  Turing machine as a language generator.  Turing machine as a language evaluator.  Turing machine as a language decider.