HIS LEGACY. 100 Years Turing celebration. Gordana Dodig Crnkovic, IDT Open Seminar. Computer Science and Network Department Mälardalen University

Similar documents
Turing Machines. The Language Hierarchy. Context-Free Languages. Regular Languages. Courtesy Costas Busch - RPI 1

and Models of Computation

Busch Complexity Lectures: Turing Machines. Prof. Busch - LSU 1

Part I: Definitions and Properties

Turing Machines (TM) Deterministic Turing Machine (DTM) Nondeterministic Turing Machine (NDTM)

Introduction to Turing Machines

Turing s thesis: (1930) Any computation carried out by mechanical means can be performed by a Turing Machine

IV. Turing Machine. Yuxi Fu. BASICS, Shanghai Jiao Tong University

CS5371 Theory of Computation. Lecture 10: Computability Theory I (Turing Machine)

Chapter 1 Welcome Aboard

CS5371 Theory of Computation. Lecture 10: Computability Theory I (Turing Machine)

Chapter 3: The Church-Turing Thesis

CS21 Decidability and Tractability

Turing Machines. Wen-Guey Tzeng Computer Science Department National Chiao Tung University

CSE 105 THEORY OF COMPUTATION

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Computability Theory. CS215, Lecture 6,

Decidability: Church-Turing Thesis

Turing machines Finite automaton no storage Pushdown automaton storage is a stack What if we give the automaton a more flexible storage?

Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q0, qaccept, qreject), where Q, Σ, Γ are all finite

Turing Machine properties. Turing Machines. Alternate TM definitions. Alternate TM definitions. Alternate TM definitions. Alternate TM definitions

Turing Machines and the Church-Turing Thesis

A Universal Turing Machine

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

Automata & languages. A primer on the Theory of Computation. Laurent Vanbever. ETH Zürich (D-ITET) October,

Introduction to Turing Machines. Reading: Chapters 8 & 9

Equivalent Variations of Turing Machines

Chomsky Normal Form and TURING MACHINES. TUESDAY Feb 4

TURING MAHINES

Homework. Turing Machines. Announcements. Plan for today. Now our picture looks like. Languages

Fundamentals of Computer Science

Busch Complexity Lectures: Turing s Thesis. Costas Busch - LSU 1

1 Showing Recognizability

Models. Models of Computation, Turing Machines, and the Limits of Turing Computation. Effective Calculability. Motivation for Models of Computation

CSCC63 Worksheet Turing Machines

Theory of Computation

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Theory of Computation (IX) Yijia Chen Fudan University

Theory of Computer Science

The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational

Turing s Thesis. Fall Costas Busch - RPI!1

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT.

Turing Machines. Fall The Chinese University of Hong Kong. CSCI 3130: Formal languages and automata theory

Turing Machines Part III

The Church-Turing Thesis

Complexity Theory Turing Machines

Automata Theory CS S-12 Turing Machine Modifications

Turing Machines. Wolfgang Schreiner

Chapter 5. Finite Automata

7.2 Turing Machines as Language Acceptors 7.3 Turing Machines that Compute Partial Functions

Lecture 14: Recursive Languages

Turing Machines. Chapter 17

Turing Machines Part II

Lecture 13: Turing Machine

Theory of Computation

CSci 311, Models of Computation Chapter 9 Turing Machines

Harvard CS 121 and CSCI E-121 Lecture 14: Turing Machines and the Church Turing Thesis

CS20a: Turing Machines (Oct 29, 2002)

CS151 Complexity Theory. Lecture 1 April 3, 2017

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012

CSCE 551 Final Exam, Spring 2004 Answer Key

Turing machines and linear bounded automata

Most General computer?

CSCI3390-Assignment 2 Solutions

15-251: Great Theoretical Ideas in Computer Science Lecture 7. Turing s Legacy Continues

Lecture notes on Turing machines

Griffith University 3130CIT Theory of Computation (Based on slides by Harald Søndergaard of The University of Melbourne) Turing Machines 9-0

Turing Machines. Our most powerful model of a computer is the Turing Machine. This is an FA with an infinite tape for storage.

(a) Definition of TMs. First Problem of URMs

Decidability (What, stuff is unsolvable?)

CSCE 551: Chin-Tser Huang. University of South Carolina

Turing Machines and Time Complexity

Lecture 12: Mapping Reductions

7.1 The Origin of Computer Science

Q = Set of states, IE661: Scheduling Theory (Fall 2003) Primer to Complexity Theory Satyaki Ghosh Dastidar

Theory of Computation - Module 4

Before We Start. Turing Machines. Languages. Now our picture looks like. Theory Hall of Fame. The Turing Machine. Any questions? The $64,000 Question

More Turing Machines. CS154 Chris Pollett Mar 15, 2006.

CSE 105 THEORY OF COMPUTATION

Theory of Computation. Theory of Computation

CS20a: Turing Machines (Oct 29, 2002)

Chapter 7 Turing Machines

Computability and Complexity

Turing machines and linear bounded automata

jflap demo Regular expressions Pumping lemma Turing Machines Sections 12.4 and 12.5 in the text

Section 14.1 Computability then else

Turing machine. Turing Machine Model. Turing Machines. 1. Turing Machines. Wolfgang Schreiner 2. Recognizing Languages

Universal Turing Machine. Lecture 20

SCHEME FOR INTERNAL ASSESSMENT TEST 3

Exam Computability and Complexity

CSCI 2200 Foundations of Computer Science Spring 2018 Quiz 3 (May 2, 2018) SOLUTIONS

6.5.3 An NP-complete domino game

ACS2: Decidability Decidability

Computation Histories

CS5371 Theory of Computation. Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)

Turing Machines. Lecture 8

Non-emptiness Testing for TMs

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Variations of the Turing Machine

Transcription:

IDT Open Seminar AAN TUING AND HIS EGACY 00 Years Turing celebration http://www.mrtc.mdh.se/~gdc/work/turingcentenary.pdf http://www.mrtc.mdh.se/ mdh se/~gdc/work/turingmachine.pdf Gordana Dodig Crnkovic, Computer Science and Network Department Mälardalen University March 8 th 202

Chomsky anguage Hyerarchy a n b n c n Turing Machines Push-down Automata n n b a b ww ww Finite Automata a * a *b* 2

TUING MACHINES Turing s "Machines". These machines are humans who calculate. (Wittgenstein) A man provided with paper, pencil, and rubber, and subject to strict discipline, is in effect a universal machine. (Turing) 3

Tape... Turing Machine... Control Unit ead-write head 4

... The Tape No boundaries -- infinite length... ead-write head The head moves eft or ight 5

...... ead-write head The head at each time step:. eads a symbol 2. Writes a symbol 3. Moves eft or ight 6

The Input String Input string Blank symbol... # # a b a c # # #... head Head starts t at the leftmost t position of the input string 7

Determinism Turing Machines are deterministic Allowed Not Allowed q a b, a b, q2 q 2 q d 3 q a d, 3 b d, q No lambda transitions allowed in TM! 8

Determinism Note the difference between state indeterminism when not even possible future states are known in advance. and choice indeterminism when possible future states are known, but we do not know which state will be taken. 9

Halting The machine halts if there are no possible transitions to follow 0

Example... # # a b a c # # #... q a b, b d, q 2 q 3 q No possible transition HAT!

Final States q q 2 Allowed q q2 Not Allowed Final states have no outgoing transitions In a final state the machine halts 2

Acceptance Accept Input If machine halts in a final state eject Input If machine halts in a non-final state or If machine enters an infinite loop 3

Formal Definitions for Turing Machines 4

Transition Function a b, q q 2 δ ( 2 q, a) = ( q, b, ) 5

Transition Function c d, q q2 δ ( q, c ) = ( q2, d, ) 6

Turing Machine States Input alphabet Tape alphabet M = ( Q, Σ, Γ, δ, q, #, F 0 ) Transition Final function Initial state blank states 7

The Accepted anguage For any Turing Machine M ( M ) = { w : q0 w a x q f x2} Initial state Final state 8

Standard Turing Machine The machine we described is the standard: Deterministic Infinite tape in both directions Tape is the input/output file 9

Computing Functions with Turing Machines 20

f A function is computable if there is a Turing Machine M such that a q0 w a q f f (w) w Initial Configuration Final Configuration For all w D Domain 2

Example (Addition) The function f ( x, y) = x + y is computable x, y are integers Turing Machine: Input string: x00 y unary Output string: xy0 unary 22

x y Start 0 # # q 0 initial state x + y Finishi # 0 # q f final state 23

Turing machine for function f ( x, y) = x + y,,, 0, q0 q # #, q 0, 2 q 3 q 4 # #, 24

Execution Example: Time 0 x y = x (2) # 0 # y = (2) q0 Final esult x + y # 0 # q 4 25

f ( x, y) = x + y Time 0 0 # # q 0,,, q0 q # #, q2 0, 0, q 3 q 4 # #, 26

f ( x, y) = x + y Time # 0 # q 0,,, q0 q # #, q2 0, 0, q 3 # #, q 4 27

Time 2 # 0 # q 0 f ( x, y) = x + y,,, 0, q # #,# q2 q0 0, q 3 q 4 # #, 28

f ( x, y) = x + y Time 3 # # q,,, q0 q # #, q2 0, 0, q 3 # #, q 4 29

f ( x, y) = x + y Time 4 # # q,,, q0 q # #, q2 0, 0, q 3 q 4 # #, 30

f ( x, y) = x + y Time 5 # # q,,, q0 q # #, q2 0, 0, q 3 q 4 # #, 3

f ( x, y) = x + y Time 6 # # q 2,,, q0 q # #, q2 0, 0, q 3 # #, q 4 32

f ( x, y) = x + y Time 7 # 0 # q 3,,, q0 q # #, q2 0, 0, q 3 q 4 # #, 33

f ( x, y) = x + y Time 8 # 0 # q 3,,, q0 q # #, q2 0, 0, q 3 q 4 # #, 34

f ( x, y) = x + y Time 9 # 0 # q 3,,, q0 q # #, q2 0, 0, q 3 q 4 # #, 35

f ( x, y) = x + y Time 0 # 0 # q 3,,, q0 q # #, q2 0, 0, q 3 q 4 # #, 36

f ( x, y) = x + y Time # 0 # q 3,,, q0 q # #, q2 0, 0, q 3 # #, q 4 37

f ( x, y) = x + y Time 2 # 0 # q 4,,, q0 q # #, q2 0, 0, q 3 HAT & accept q 4 # #, 38

Universal Turing Machine 39

A limitation of Turing Machines: Turing Machines are hardwired they execute only one program 40

Solution: Universal Turing Machine Characteristics: eprogrammable machine Simulates any other Turing Machine 4

Universal Turing Machine simulates any other Turing Machine M Input to Universal Turing Machine: Description of transitions ofmm Initial tape contents of M 42

Tape Three tapes Description of M Universal Turing Machine Tape 2 Tape Contents of Tape 3 M State of M 43

Tape Description of M We describe Turing machine as a string of symbols: M We encode as a string of symbols M 44

Alphabet Encoding Symbols: a b c d K Encoding: 45

State Encoding States: q q2 q3 q4 K Encoding: Head Move Encoding Move: Encoding: 46

Transition Encoding δ Transition: ( q, a) = ( q2, b, ) Encoding: 0 0 0 0 separator 47

Machine Encoding Transitions: δ ( q, a ) = ( q2, b, ) δ ( q 2, b ) = ( q3, c, ) Encoding: 0 0 0 0 00 00 0 0 separator 48

Tape contents of Universal Turing Machine: encoding of the simulated machine as a binary string of 0 s and s M 49

As Turing Machine is described with a binary string of 0 s and s the set of Turing machines forms a language: g Each string of the language is the binary encoding of a Turing Machine. 50

anguage of Turing Machines = { 00000, (Turing Machine ) 0000000, (Turing Machine 2) 0000000, } 5

CHUCH TUING THESIS Question: Do Turing machines have the same power with a digital computer? Intuitive answer: Yes There was no formal proof of Church-Turing u thesis ess until 2008! 52

Dershowitz, N. and Gurevich, Y. A Natural Axiomatization of Computability and Proof of Church's Thesis, Bulletin of Symbolic ogic, v. 4, No. 3, pp. 299-350 (2008) This formal proof of Church-Turing thesis relies on an axiomatization of computation that excludes randomness, parallelism and quantum computing and thus corresponds to the idea of computing that Church and Turing had. 53

Turing s gs thesis ess Any computation carried out by algorithmic means can be performed by a Turing Machine. (930) http://www.engr.uconn.edu/~dqg/papers/myth.pdf p p p The Origins of the Turing Thesis Myth Goldin & Wegner 54