Lecture 14: Church-Turing Thesis Alonzo Church ( ) Alan Turing ( )

Slides:



Advertisements
Similar presentations
Turing Machines Memory = an infinitely long tape Persistent storage A read/write tape head that can move around the tape Initially, the tape contains only.
Advertisements

David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 13: Turing Machines.
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
Class 39: Universality cs1120 Fall 2009 David Evans University of Virginia.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
Foundations of (Theoretical) Computer Science Chapter 3 Lecture Notes (Section 3.2: Variants of Turing Machines) David Martin With.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Variants.
Turing Machines New capabilities: –infinite tape –can read OR write to tape –read/write head can move left and right q0q0 input tape.
CS5371 Theory of Computation Lecture 11: Computability Theory II (TM Variants, Church-Turing Thesis)
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
Lecture 5 Turing Machines
Computation Theory Introduction to Turing Machine.
CHAPTER 3 The Church-Turing Thesis
CS 490: Automata and Language Theory Daniel Firpo Spring 2003.
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
January 28, 2015CS21 Lecture 101 CS21 Decidability and Tractability Lecture 10 January 28, 2015.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 2: Modeling Computers.
Class 19: Undecidability in Theory and Practice David Evans cs302: Theory of Computation University of Virginia Computer.
Theory of Computation. Computation Computation is a general term for any type of information processing that can be represented as an algorithm precisely.
David Evans CS200: Computer Science University of Virginia Computer Science Class 31: Universal Turing Machines.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Cs3102: Theory of Computation Class 17: Undecidable Languages Spring 2010 University of Virginia David Evans.
Turing Machines A more powerful computation model than a PDA ?
Context-Free Languages Regular Languages Violates Pumping Lemma For RLs Violates Pumping Lemma For CFLs Described by CFG, PDA 0n1n0n1n 0n1n2n0n1n2n Described.
Remaining Topics Decidability Concept 4.1 The Halting Problem 4.2
Turing Machines Chapter Plan Turing Machines(TMs) – Alan Turing Church-Turing Thesis – Definitions Computation Configuration Recognizable vs. Decidable.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
Class 37: Computability in Theory and Practice cs1120 Fall 2011 David Evans 21 November 2011 cs1120 Fall 2011 David Evans 21 November 2011.
CSCI 2670 Introduction to Theory of Computing September 28, 2005.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Cs3102: Theory of Computation Class 14: Turing Machines Spring 2010 University of Virginia David Evans.
Turing Machines. Intro to Turing Machines A Turing Machine (TM) has finite-state control (like PDA), and an infinite read-write tape. The tape serves.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 16: Universality and Undecidability.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich
Computability Review homework. Video. Variations. Definitions. Enumerators. Hilbert's Problem. Algorithms. Summary Homework: Give formal definition of.
CS 3240: Languages and Computation
CSCI 2670 Introduction to Theory of Computing October 7, 2004.
1 IDT Open Seminar ALAN TURING AND HIS LEGACY 100 Years Turing celebration Gordana Dodig Crnkovic, Computer Science and Network Department Mälardalen University.
1 Turing Machines - Chap 8 Turing Machines Recursive and Recursively Enumerable Languages.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
1 Introduction to Turing Machines
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
1 Unit – 5 : STATE MACHINES Syllabus: Languages and Grammars – Finite State Machines State machines and languages – Turing Machines – Computational Complexity.
Turing Machines CS 130 Theory of Computation HMU Textbook: Chap 8.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
The Church-Turing Thesis Chapter Are We Done? FSM  PDA  Turing machine Is this the end of the line? There are still problems we cannot solve:
Theory of Computation Automata Theory Dr. Ayman Srour.
CS 154 Formal Languages and Computability April 5 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
David Evans CS200: Computer Science University of Virginia Computer Science Class 26: Halting Problem It is plain at any.
Busch Complexity Lectures: Turing Machines
CS21 Decidability and Tractability
Pumping Lemma Revisited
CSE 105 theory of computation
Chapter 3: The CHURCH-Turing thesis
فصل سوم The Church-Turing Thesis
Theory of Computation Turing Machines.
CS21 Decidability and Tractability
Class 24: Computability Halting Problems Hockey Team Logo
Decidability and Tractability
CSE 105 theory of computation
The Church-Turing Thesis and Turing-completeness
CSE 105 theory of computation
Presentation transcript:

David Evans http://www.cs.virginia.edu/evans Lecture 14: Church-Turing Thesis Alonzo Church (1903-1995) Alan Turing (1912-1954) Reminder: PS4 is due Tuesday cs302: Theory of Computation University of Virginia Computer Science David Evans http://www.cs.virginia.edu/evans

Menu Finish computing model for TM The Most Bogus Sentence Robustness of TM Model (Church-Turing Thesis)

Turing Machine . . . FSM Infinite tape: Γ* Tape head: read current square on tape, write into current square, move one square left or right FSM: like PDA, except: transitions also include direction (left/right) final accepting and rejecting states

Turing Machine Formal Description . . . FSM 7-tuple: (Q, , Γ, δ, q0, qaccept, qreject) Q: finite set of states : input alphabet (cannot include blank symbol, _) Γ: tape alphabet, includes  and _ δ: transition function: Q  Γ  Q  Γ  {L, R} q0: start state, q0  Q qaccept: accepting state, qaccept  Q qreject: rejecting state, qreject  Q (Sipser’s notation)

Turing Machine Computing Model Initial configuration: x x x x x x x x _ _ _ _ . . . blanks input FSM q0 TM Configuration: Γ*  Q  Γ* tape contents left of head current FSM state tape contents head and right

TM Computing Model δ*: Γ*  Q  Γ*  Γ*  Q  Γ* The qaccept and qreject states are final: δ*(L, qaccept, R)  (L, qaccept, R) δ*(L, qreject, R)  (L, qreject, R)

TM Computing Model δ*: Γ*  Q  Γ*  Γ*  Q  Γ* u, v  Γ*, a, b  Γ FSM q a b . . . u v δ*(ua, q, bv) = δ*(uac, qr, v) if δ(q, b) = (qr, c, R) δ*(ua, q, bv) = δ*(u, qr, acv) if δ(q, b) = (qr, c, L) Also: need a rule to cover what happens at left edge of tape

TM Computing Model δ*: Γ*  Q  Γ*  Γ*  Q  Γ* u, v  Γ*, a, b  Γ . . . u v FSM q δ*(ua, q, bv) = δ*(uac, qr, v) if δ(q, b) = (qr, c, R) δ*(ua, q, bv) = δ*(u, qr, acv) if δ(q, b) = (qr, c, L) δ*(ε, q, bv) = δ*(ε, qr, cv) if δ(q, b) = (qr, c, L) Do we need a rule for the right edge of the tape?

TM Computing Model δ*: Γ*  Q  Γ*  Γ*  Q  Γ* A string w is in the language of Turing Machine T if δ*(ε, q0, w) = (α, qaccept,β) A string w is not in the language of Turing Machine T if δ*(ε, q0, w) = (α, qreject,β) Does this cover all possibilities?

Termination DFAs, DPDAs: NFAs: Turing Machine: Consume one input symbol each step Must terminate NFAs: Equivalent to DFA: must terminate Turing Machine: Can move left and right: no “progress” guarantee

Possible Outcomes Running TM M on input w eventually leads to qaccept. Running TM M on input w eventually leads to qreject. Running TM M on input w runs forever (never terminates).

Recognizing vs. Deciding Turing-recognizable: A language L is “Turing-recognizable” if there exists a TM M such that for all strings w: If w  L eventually M enters qaccept If w  L either M enters qreject or M never terminates Turing-decidable: A language L is “decidable” if there exists a TM M such that for all strings w: If w  L, M enters qaccept. If w  L, M enters qreject.

Decider vs. Recognizer? Deciders always terminate. Recognizers can run forever without deciding.

Decidable and Recognizable Languages Do we know this picture is right yet?

The Most Bogus Sentence Guesses “Intuitive notion of algorithms equals Turing machine algorithms.” “Some of these models are very much like Turing machines, but others are quite different.” “Think of these as 'virtual' tapes and heads,” on page 149. The quotation marks around virtual imply that the tapes and heads are not virtual, which is false. “If you feel the need to review nondeterminism, turn to Section 1.2 (page 47).” (By this point, one should have a firm grasp of nondeterminism.) “Proving an algorithm doesn't exist requires having a clear definition of algorithm.” “For mathematicians of that period to come to this conclusion [(Hilbert’s 10th Problem’s accepted solution)] with their intuitive concept of algorithm would have been virtually impossible.” I don’t find any of these statement bogus.

A bogus sentence (but not the one I had in mind) “To show that two models are equivalent we simply need to show that we can simulate one by the other.” Winner: David Horres A B For set equivalence, need to show A  B and B  A. For machine equivalence, need to show A can simulate B and B can simulate A.

The Most Bogus Sentence “A Turning machine can do everything a real computer can do.” On the first page! Winners: Erin Carson, Emily Lam, Ruixin Yang,

Things Real Computers Can Do Generate Heat Provide an adequate habitat for fish Stop a Door

Computational Thing Most Real Computers Can Do (that Turing Machines can’t) Generate randomness

Church-Turing Thesis

Alonzo Church’s “Less Successful” PhD Students Michael Rabin Hartley Rogers Raymond Smullyan Stephen Kleene John Kemeny Martin Davis Dana Scott See http://www.genealogy.ams.org/id.php?id=8011 for full list

Alan Turing (1912-1954) Published On Computable Numbers, with an Application to the Entscheidungsproblem (1936) Introduced the Halting Problem Formal model of computation (now known as “Turing Machine”) Codebreaker at Bletchley Park Involved in breaking Enigma Cipher After the war: convicted of homosexuality (then a crime in Britain), committed suicide eating cyanide apple

Church-Turing Thesis As stated by Kleene: Every effectively calculable function (effectively decidable predicate) is general recursive. “Since a precise mathematical definition of the term effectively calculable (effectively decidable) has been wanting, we can take this thesis ... as a definition of it...” Yes, this is circular: everything calculable can be computed by a TM, and we define what is calculable as what can be computed by a TM.

Church-Turing Thesis Any mechanical computation can be performed by a Turing Machine There is a TM-n corresponding to every computable problem We can model any mechanical computer with a TM The set of languages that can be decided by a TM is identical to the set of languages that can be decided by any mechanical computing machine If there is no TM that decides problem P, there is no algorithm that solves problem P. All of these statements are implied by the Church-Turing thesis

Examples [Last class and PS4] Equivalence of TM and 2-stack deterministic PDA + ε-transitions [PS4] Making the tape infinite in both directions adds no power [Soon] Adding a second tape adds no power [Church] Lambda Calculus is equivalent to TM [Chomsky] Unrestricted replacement grammars are equivalent to TM [Takahara and Yokomori] DNA is at least as powerful as a TM [Hotly Debated] Is the human brain equivalent to a TM? “Some of these models are very much like Turing machines, but others are quite different.” (not such a bogus sentence)

Charge Next week: what languages cannot be recognized by a TM? Read Chapter 4: Decidability I don’t think it has any extremely bogus sentences, but if you find one send it to me…