SlideShare une entreprise Scribd logo
1  sur  21
Welcome!!
Siraj Munir – CS@DSU
Introduction To Turing Machine
Siraj Munir – CS@DSU
Tip of The Day
discourager.ignore();
(Courtesy: Syed Hammad Ahmed – CS@DSU)
Background
Siraj Munir – CS@DSU
Background
• Finite Automata accepts regular languages only.
For example: {anbn : n = 0, 1, …} is not regular, but
it is context free language.
• Pushdown Automata accepts context-free languages only.
For example: {anbncn : w  *} is not context-free.
What to do?? 
Siraj Munir – CS@DSU
Turing Machines
About:
• Introduced by Alan Turing in 1936.
• A simple mathematical model of a computer.
• Models the computing capability of a computer.
Siraj Munir – CS@DSU
Siraj Munir – CS@DSU
a1 a2 ….
Control
head
Tape
Informal Description
The head:
•Reads the symbol from the cell it is pointing to,
•Either:
•Writes a new symbol in the cell, or
•Moves one cell to the left or right.
Siraj Munir – CS@DSU
Informal Description (II)
• New cells can be added to the right of the tape as needed (similar to
RAM memory)
• These new cells contain the blank symbol, ♢
1q 2q
Rba ,
............    ca
Time 1
1q
current state

Siraj Munir – CS@DSU
• Transitions can be described by (Case I):
((s,a),(q;b;R)) If the machine is in state s and the current cell has an a
then jump to state q and write b in the current cell and
moves head to right.
Formal Description
• Transitions can be described by (Case II):
((s,a),(q;b;L)) If the machine is in state s and the current cell has an a
then jump to state q and write b in the current cell and
moves head to left.
A TM can be formally described as a 7-tuple
(Q, X, ∑, δ, q0, ♢, F) where,
Q is a finite set of states
X is the tape alphabet
∑ is the input alphabet
δ is a transition function; δ : Q × X → Q × X ×
{Left_shift, Right_shift}.
q0 is the initial state
♢ is the blank symbol
F is the set of final states
Formal Definition
Siraj Munir – CS@DSU
Comparison with Previous Models
Machine Data Structure Deterministic?
Finite Automata N.A Yes
Pushdown Automata
Turing Machine
Siraj Munir – CS@DSU
Machine Data Structure Deterministic?
Finite Automata N.A Yes
Pushdown Automata Stack (LIFO) No
Turing Machine
Siraj Munir – CS@DSU
Machine Data Structure Deterministic?
Finite Automata N.A Yes
Pushdown Automata Stack (LIFO) No
Turing Machine Infinite Tape Yes
Siraj Munir – CS@DSU
Siraj Munir – CS@DSU
Comparison with Previous Models
Device Type of Grammar String/Language
Finite Automata Regular an
Siraj Munir – CS@DSU
Comparison with Previous Models
Device Type of Grammar String/Language
Finite Automata Regular an
Push Down Automata Context Free anbn
Siraj Munir – CS@DSU
Comparison with Previous Models
Device Type of Grammar String/Language
Finite Automata Regular an
Push Down Automata Context Free anbn
Turing Machine Unrestricted anbncn
Siraj Munir – CS@DSU
Questions??
Siraj Munir – CS@DSU
Reference:
http://www.slideshare.net/abhishiv77/push-down-automata-
vs-turing-machine
http://www.slideshare.net/AyAnKhAn5/turing-machine-
34338253
http://www.slideshare.net/dkalita3/turing-machine-bydeep
http://www.slideshare.net/lavishka_anuj/turing-machines-
12176328
https://en.wikipedia.org/wiki/Turing_machine
Siraj Munir – CS@DSU
Thankyou!

Contenu connexe

Tendances

Theory of computing
Theory of computingTheory of computing
Theory of computing
Ranjan Kumar
 

Tendances (20)

Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Deciability (automata presentation)
Deciability (automata presentation)Deciability (automata presentation)
Deciability (automata presentation)
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing machine
Turing machineTuring machine
Turing machine
 
Theory of computing
Theory of computingTheory of computing
Theory of computing
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
LINEAR BOUNDED AUTOMATA (LBA).pptx
LINEAR BOUNDED AUTOMATA (LBA).pptxLINEAR BOUNDED AUTOMATA (LBA).pptx
LINEAR BOUNDED AUTOMATA (LBA).pptx
 
Chomsky Hierarchy.ppt
Chomsky Hierarchy.pptChomsky Hierarchy.ppt
Chomsky Hierarchy.ppt
 
push down automata
push down automatapush down automata
push down 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
 
Turing machine
Turing machineTuring machine
Turing machine
 
Multi dimensional turing machine
Multi dimensional turing machineMulti dimensional turing machine
Multi dimensional turing machine
 
Turing machines
Turing machinesTuring machines
Turing machines
 
Turing machine implementation
Turing machine implementationTuring machine implementation
Turing machine implementation
 
Turing machine
Turing machineTuring machine
Turing machine
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 

Similaire à Introduction to Turing Machine

souraj Toc.pptx
souraj Toc.pptxsouraj Toc.pptx
souraj Toc.pptx
Lifo4
 

Similaire à Introduction to Turing Machine (17)

Random number generation (in C++) – past, present and potential future
Random number generation (in C++) – past, present and potential future Random number generation (in C++) – past, present and potential future
Random number generation (in C++) – past, present and potential future
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
 
Theory of Automata and formal languages Unit 5
Theory of Automata and formal languages Unit 5Theory of Automata and formal languages Unit 5
Theory of Automata and formal languages Unit 5
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
 
TOA.docx
TOA.docxTOA.docx
TOA.docx
 
souraj Toc.pptx
souraj Toc.pptxsouraj Toc.pptx
souraj Toc.pptx
 
Finite state automaton
Finite state automatonFinite state automaton
Finite state automaton
 
Design System Design-ASM and Asynchronous Sequential Circuits
Design System Design-ASM and Asynchronous Sequential CircuitsDesign System Design-ASM and Asynchronous Sequential Circuits
Design System Design-ASM and Asynchronous Sequential Circuits
 
Assembly Language Lecture 2
Assembly Language Lecture 2Assembly Language Lecture 2
Assembly Language Lecture 2
 
CS 5th.pptx
CS 5th.pptxCS 5th.pptx
CS 5th.pptx
 
Automata
AutomataAutomata
Automata
 
Automata based programming
Automata based programmingAutomata based programming
Automata based programming
 
Finite State Machine by M. Arokiasamy
Finite State Machine by M. ArokiasamyFinite State Machine by M. Arokiasamy
Finite State Machine by M. Arokiasamy
 
Digital System Design-Synchronous Sequential Circuits
Digital System Design-Synchronous Sequential CircuitsDigital System Design-Synchronous Sequential Circuits
Digital System Design-Synchronous Sequential Circuits
 
CS.15.Turing.pdf
CS.15.Turing.pdfCS.15.Turing.pdf
CS.15.Turing.pdf
 
Report mi scontinue
Report mi scontinueReport mi scontinue
Report mi scontinue
 
Ch3
Ch3Ch3
Ch3
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Dernier (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 

Introduction to Turing Machine

  • 2. Introduction To Turing Machine Siraj Munir – CS@DSU
  • 3. Tip of The Day discourager.ignore(); (Courtesy: Syed Hammad Ahmed – CS@DSU)
  • 5. Background • Finite Automata accepts regular languages only. For example: {anbn : n = 0, 1, …} is not regular, but it is context free language. • Pushdown Automata accepts context-free languages only. For example: {anbncn : w  *} is not context-free. What to do??  Siraj Munir – CS@DSU
  • 7. About: • Introduced by Alan Turing in 1936. • A simple mathematical model of a computer. • Models the computing capability of a computer. Siraj Munir – CS@DSU
  • 8. Siraj Munir – CS@DSU a1 a2 …. Control head Tape Informal Description The head: •Reads the symbol from the cell it is pointing to, •Either: •Writes a new symbol in the cell, or •Moves one cell to the left or right.
  • 9. Siraj Munir – CS@DSU Informal Description (II) • New cells can be added to the right of the tape as needed (similar to RAM memory) • These new cells contain the blank symbol, ♢ 1q 2q Rba , ............    ca Time 1 1q current state 
  • 10. Siraj Munir – CS@DSU • Transitions can be described by (Case I): ((s,a),(q;b;R)) If the machine is in state s and the current cell has an a then jump to state q and write b in the current cell and moves head to right. Formal Description • Transitions can be described by (Case II): ((s,a),(q;b;L)) If the machine is in state s and the current cell has an a then jump to state q and write b in the current cell and moves head to left.
  • 11. A TM can be formally described as a 7-tuple (Q, X, ∑, δ, q0, ♢, F) where, Q is a finite set of states X is the tape alphabet ∑ is the input alphabet δ is a transition function; δ : Q × X → Q × X × {Left_shift, Right_shift}. q0 is the initial state ♢ is the blank symbol F is the set of final states Formal Definition
  • 12. Siraj Munir – CS@DSU Comparison with Previous Models
  • 13. Machine Data Structure Deterministic? Finite Automata N.A Yes Pushdown Automata Turing Machine Siraj Munir – CS@DSU
  • 14. Machine Data Structure Deterministic? Finite Automata N.A Yes Pushdown Automata Stack (LIFO) No Turing Machine Siraj Munir – CS@DSU
  • 15. Machine Data Structure Deterministic? Finite Automata N.A Yes Pushdown Automata Stack (LIFO) No Turing Machine Infinite Tape Yes Siraj Munir – CS@DSU
  • 16. Siraj Munir – CS@DSU Comparison with Previous Models Device Type of Grammar String/Language Finite Automata Regular an
  • 17. Siraj Munir – CS@DSU Comparison with Previous Models Device Type of Grammar String/Language Finite Automata Regular an Push Down Automata Context Free anbn
  • 18. Siraj Munir – CS@DSU Comparison with Previous Models Device Type of Grammar String/Language Finite Automata Regular an Push Down Automata Context Free anbn Turing Machine Unrestricted anbncn
  • 19. Siraj Munir – CS@DSU Questions??
  • 20. Siraj Munir – CS@DSU Reference: http://www.slideshare.net/abhishiv77/push-down-automata- vs-turing-machine http://www.slideshare.net/AyAnKhAn5/turing-machine- 34338253 http://www.slideshare.net/dkalita3/turing-machine-bydeep http://www.slideshare.net/lavishka_anuj/turing-machines- 12176328 https://en.wikipedia.org/wiki/Turing_machine
  • 21. Siraj Munir – CS@DSU Thankyou!