SlideShare a Scribd company logo
Turing Machines
John 18:38 Pilate said to him, What is truth? And when he
had said this, he went out again to the Jews, and said to
them, I find in him no fault at all.
How Euclid’s ‘Elements’ work
• Definitions

• Postulates

• Axioms

• Agreed Method   Each step in the proof is an
                  application of one of the above.
Hilbert’s question (1900)
• Is there, or could there possibly be, a
  definite method that could decide
  whether a particular mathematical
  expression is true?

• What – exactly – do we mean by a
  definite method? – Turing’s answer -
  mechanical – algorithmic - the Turing
  machine
Turing’s Concept
 • A machine
   –   With a finite set of states
   –   Unrestricted input and output
   –   Unlimited storage space
   –   Simplest possible operations
                         Read/write head

                                    Infinite tape


1 0 1 0 0 1 1 0 1 1 0 0
Basic operations of the machine
• Read
  – Read the symbol on the current square
  – Change the inner state of the machine
• Write
  – Change the symbol on the current square
  – Change the inner state of the machine
• Move
  – Tape can move any distance left or right
Turing-Kara
Turing machine is a 5-tuple
Current   Input   Output   Move   Next
   0        0       1       -      1
   0        1       -       R      0
   1        1       -       L      1
   1        0       -       R     Stop
Current   Input   Output   Move   Next
0         0       0        R      0
0         1       0        R      1
1         0       1        L      10
1         1       1        R      1
10        0       0        R      11
10        1       0        R      100
11        0       1        Stop   0
11        1       1        R      11
100       0       1        L      101
100       1       1        R      100
101       0       1        L      10
101       1       1        L      101
Universal Turing Machines
• Each quintuple could be coded into a
  single number, each number coded on
  tape.
• We therefore have the idea of a Turing
  machine which reads its own
  instructions.
• Such a machine could mimic any
  possible Turing machine.
Turing Machines and
             Computability
• Is there an algorithm which         The Goldbach conjecture
  will establish the truth of
                                      Every even number
  mathematical proposition ‘p’?       greater than two, is the
           The Entscheidungsproblem   sum of two prime
                                      numbers.
…. is equivalent to the question

• Is there a possible Turing          We could make a Turing
  machine which will calculate        machine to test each
  all values of ‘p’ and stop if ‘p’   successive number and find
                                      out if it is the sum of two
  is false … and if so, can we        primes. If it isn’t then the
  know in advance if it will stop.    machine halts – having
            The Halting Problem       disproved the conjecture

More Related Content

What's hot

What's hot (20)

Turing machine seminar report
Turing machine seminar reportTuring machine seminar report
Turing machine seminar report
 
Variants of Turing Machine
Variants of Turing MachineVariants of Turing Machine
Variants of Turing Machine
 
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
 
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
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Turing Machines (TM)
Turing Machines (TM)Turing Machines (TM)
Turing Machines (TM)
 
Turing machine
Turing machineTuring machine
Turing machine
 
Turing machine implementation
Turing machine implementationTuring machine implementation
Turing machine implementation
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
Turing machines
Turing machinesTuring machines
Turing machines
 
TM - Techniques
TM - TechniquesTM - Techniques
TM - Techniques
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Introduction to Turing Machine
Introduction to Turing MachineIntroduction to Turing Machine
Introduction to Turing Machine
 
universality
universalityuniversality
universality
 
Turing machine
Turing machineTuring machine
Turing machine
 
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
 

Similar to Turing machines 1

Class 36: Halting Problem
Class 36: Halting ProblemClass 36: Halting Problem
Class 36: Halting ProblemDavid Evans
 
A Brief, Incomplete, and Mostly Wrong Introduction to Alan Turing's Work
A Brief, Incomplete, and Mostly Wrong Introduction to Alan Turing's WorkA Brief, Incomplete, and Mostly Wrong Introduction to Alan Turing's Work
A Brief, Incomplete, and Mostly Wrong Introduction to Alan Turing's WorkPhil Calçado
 
Computability, turing machines and lambda calculus
Computability, turing machines and lambda calculusComputability, turing machines and lambda calculus
Computability, turing machines and lambda calculusEdward Blurock
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! EdholeEdhole.com
 

Similar to Turing machines 1 (7)

CS.15.Turing.pdf
CS.15.Turing.pdfCS.15.Turing.pdf
CS.15.Turing.pdf
 
Turing Machine.pptx
Turing Machine.pptxTuring Machine.pptx
Turing Machine.pptx
 
Class 36: Halting Problem
Class 36: Halting ProblemClass 36: Halting Problem
Class 36: Halting Problem
 
A Brief, Incomplete, and Mostly Wrong Introduction to Alan Turing's Work
A Brief, Incomplete, and Mostly Wrong Introduction to Alan Turing's WorkA Brief, Incomplete, and Mostly Wrong Introduction to Alan Turing's Work
A Brief, Incomplete, and Mostly Wrong Introduction to Alan Turing's Work
 
Computability, turing machines and lambda calculus
Computability, turing machines and lambda calculusComputability, turing machines and lambda calculus
Computability, turing machines and lambda calculus
 
Free Ebooks Download ! Edhole
Free Ebooks Download ! EdholeFree Ebooks Download ! Edhole
Free Ebooks Download ! Edhole
 
Prestentation
PrestentationPrestentation
Prestentation
 

More from grahamwell

Excel =if function
Excel =if functionExcel =if function
Excel =if functiongrahamwell
 
Excel Min max-average
Excel Min max-average Excel Min max-average
Excel Min max-average grahamwell
 
What is binary and why do we use it?
What is binary and why do we use it?What is binary and why do we use it?
What is binary and why do we use it?grahamwell
 
Introduction to touch develop
Introduction to touch developIntroduction to touch develop
Introduction to touch developgrahamwell
 
Introduction to touch develop
Introduction to touch developIntroduction to touch develop
Introduction to touch developgrahamwell
 
The software story
The software storyThe software story
The software storygrahamwell
 
Turtle graphics
Turtle graphicsTurtle graphics
Turtle graphicsgrahamwell
 
Database field types
Database field typesDatabase field types
Database field typesgrahamwell
 
Pascal names and types
Pascal names and typesPascal names and types
Pascal names and typesgrahamwell
 
Python part two names and types
Python part two names and typesPython part two names and types
Python part two names and typesgrahamwell
 
Abstraction - Year 9
Abstraction - Year 9Abstraction - Year 9
Abstraction - Year 9grahamwell
 
Thinking about your project
Thinking about your projectThinking about your project
Thinking about your projectgrahamwell
 
The rail fence
The rail fenceThe rail fence
The rail fencegrahamwell
 
Rsa encryption
Rsa encryptionRsa encryption
Rsa encryptiongrahamwell
 
Server side scripts
Server side scriptsServer side scripts
Server side scriptsgrahamwell
 
Revision topic 1 sensors and control
Revision topic 1 sensors and controlRevision topic 1 sensors and control
Revision topic 1 sensors and controlgrahamwell
 

More from grahamwell (20)

Pseudocode
PseudocodePseudocode
Pseudocode
 
Excel =if function
Excel =if functionExcel =if function
Excel =if function
 
Excel Min max-average
Excel Min max-average Excel Min max-average
Excel Min max-average
 
What is binary and why do we use it?
What is binary and why do we use it?What is binary and why do we use it?
What is binary and why do we use it?
 
Introduction to touch develop
Introduction to touch developIntroduction to touch develop
Introduction to touch develop
 
Introduction to touch develop
Introduction to touch developIntroduction to touch develop
Introduction to touch develop
 
The software story
The software storyThe software story
The software story
 
Turtle graphics
Turtle graphicsTurtle graphics
Turtle graphics
 
Database field types
Database field typesDatabase field types
Database field types
 
Databases 101
Databases 101Databases 101
Databases 101
 
Kodu controls
Kodu controlsKodu controls
Kodu controls
 
Pascal names and types
Pascal names and typesPascal names and types
Pascal names and types
 
Python part two names and types
Python part two names and typesPython part two names and types
Python part two names and types
 
Abstraction - Year 9
Abstraction - Year 9Abstraction - Year 9
Abstraction - Year 9
 
Thinking about your project
Thinking about your projectThinking about your project
Thinking about your project
 
The rail fence
The rail fenceThe rail fence
The rail fence
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 
Rsa encryption
Rsa encryptionRsa encryption
Rsa encryption
 
Server side scripts
Server side scriptsServer side scripts
Server side scripts
 
Revision topic 1 sensors and control
Revision topic 1 sensors and controlRevision topic 1 sensors and control
Revision topic 1 sensors and control
 

Turing machines 1

  • 2. John 18:38 Pilate said to him, What is truth? And when he had said this, he went out again to the Jews, and said to them, I find in him no fault at all.
  • 3. How Euclid’s ‘Elements’ work • Definitions • Postulates • Axioms • Agreed Method Each step in the proof is an application of one of the above.
  • 4. Hilbert’s question (1900) • Is there, or could there possibly be, a definite method that could decide whether a particular mathematical expression is true? • What – exactly – do we mean by a definite method? – Turing’s answer - mechanical – algorithmic - the Turing machine
  • 5. Turing’s Concept • A machine – With a finite set of states – Unrestricted input and output – Unlimited storage space – Simplest possible operations Read/write head Infinite tape 1 0 1 0 0 1 1 0 1 1 0 0
  • 6. Basic operations of the machine • Read – Read the symbol on the current square – Change the inner state of the machine • Write – Change the symbol on the current square – Change the inner state of the machine • Move – Tape can move any distance left or right
  • 8. Turing machine is a 5-tuple Current Input Output Move Next 0 0 1 - 1 0 1 - R 0 1 1 - L 1 1 0 - R Stop
  • 9. Current Input Output Move Next 0 0 0 R 0 0 1 0 R 1 1 0 1 L 10 1 1 1 R 1 10 0 0 R 11 10 1 0 R 100 11 0 1 Stop 0 11 1 1 R 11 100 0 1 L 101 100 1 1 R 100 101 0 1 L 10 101 1 1 L 101
  • 10. Universal Turing Machines • Each quintuple could be coded into a single number, each number coded on tape. • We therefore have the idea of a Turing machine which reads its own instructions. • Such a machine could mimic any possible Turing machine.
  • 11. Turing Machines and Computability • Is there an algorithm which The Goldbach conjecture will establish the truth of Every even number mathematical proposition ‘p’? greater than two, is the The Entscheidungsproblem sum of two prime numbers. …. is equivalent to the question • Is there a possible Turing We could make a Turing machine which will calculate machine to test each all values of ‘p’ and stop if ‘p’ successive number and find out if it is the sum of two is false … and if so, can we primes. If it isn’t then the know in advance if it will stop. machine halts – having The Halting Problem disproved the conjecture