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

Similar documents
Computability Theory. CS215, Lecture 6,

CS21 Decidability and Tractability

Chapter 3: The Church-Turing Thesis

CSE 105 THEORY OF COMPUTATION

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

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

The Church-Turing Thesis

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

Introduction to Turing Machines

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

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

CSCC63 Worksheet Turing Machines

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

CS4026 Formal Models of Computation

Computability and Complexity

Variants of Turing Machine (intro)

Lecture 13: Turing Machine

Turing Machines. Wolfgang Schreiner

Theory of Computation (IX) Yijia Chen Fudan University

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

1 Unrestricted Computation

Turing Machines. 22c:135 Theory of Computation. Tape of a Turing Machine (TM) TM versus FA, PDA

ECS 120 Lesson 15 Turing Machines, Pt. 1

Turing Machines (TM) The Turing machine is the ultimate model of computation.

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

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

TURING MAHINES

V Honors Theory of Computation

CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY

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

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

UNRESTRICTED GRAMMARS

Chomsky Normal Form and TURING MACHINES. TUESDAY Feb 4

Theory of Computation

Part I: Definitions and Properties

Fundamentals of Computer Science

Most General computer?

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Further discussion of Turing machines

CSE 105 THEORY OF COMPUTATION

Lecture 12: Mapping Reductions

Chapter 1 - Time and Space Complexity. deterministic and non-deterministic Turing machine time and space complexity classes P, NP, PSPACE, NPSPACE

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2018, face-to-face day section Prof. Marvin K. Nakayama

The Turing machine model of computation

Theory of Computation

An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM

Exam Computability and Complexity

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

Computation Histories

Midterm Exam 2 CS 341: Foundations of Computer Science II Fall 2016, face-to-face day section Prof. Marvin K. Nakayama

6.045J/18.400J: Automata, Computability and Complexity. Quiz 2. March 30, Please write your name in the upper corner of each page.

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

COMPARATIVE ANALYSIS ON TURING MACHINE AND QUANTUM TURING MACHINE

COMP-330 Theory of Computation. Fall Prof. Claude Crépeau. Lec. 16 : Turing Machines

SCHEME FOR INTERNAL ASSESSMENT TEST 3

1 Showing Recognizability

Nondeterministic Finite Automata

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

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

COMP-330 Theory of Computation. Fall Prof. Claude Crépeau. Lec. 14 : Turing Machines

DM17. Beregnelighed. Jacob Aae Mikkelsen

Foundations of

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

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

Theory of Computation Lecture Notes. Problems and Algorithms. Class Information

The Power of One-State Turing Machines

Turing Machines Part II

A Note on Turing Machine Design

Turing Machines Part II

CSE 460: Computabilty and Formal Languages Turing Machine (TM) S. Pramanik

CSCE 551 Final Exam, Spring 2004 Answer Key

Equivalence of TMs and Multitape TMs. Theorem 3.13 and Corollary 3.15 By: Joseph Lauman

Final exam study sheet for CS3719 Turing machines and decidability.

An example of a decidable language that is not a CFL Implementation-level description of a TM State diagram of TM

uring Reducibility Dept. of Computer Sc. & Engg., IIT Kharagpur 1 Turing Reducibility

Automata Theory - Quiz II (Solutions)

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages

Turing Machines Part III

Chapter Five: Nondeterministic Finite Automata

Turing s Thesis. Fall Costas Busch - RPI!1

Automata Theory (2A) Young Won Lim 5/31/18

CS20a: Turing Machines (Oct 29, 2002)

CSCI 1590 Intro to Computational Complexity

CAPES MI. Turing Machines and decidable problems. Laure Gonnord

Foundations of

Midterm II : Formal Languages, Automata, and Computability

CSE 105 THEORY OF COMPUTATION

CSE 105 Theory of Computation

Turing machines COMS Ashley Montanaro 21 March Department of Computer Science, University of Bristol Bristol, UK

Decidability (What, stuff is unsolvable?)

Lecture 14: Recursive Languages

Variations of the Turing Machine

Equivalent Variations of Turing Machines

Introduction to Turing Machines. Reading: Chapters 8 & 9

Turing machines and linear bounded automata

CS154, Lecture 13: P vs NP

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

Decidability. William Chan

Turing Machines. Lecture 8

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Transcription:

The Church-Turing Thesis CS60001: Foundations of Computing Science Professor, Dept. of Computer Sc. & Engg.,

Turing Machines A Turing Machine is a 7-tuple, (Q, Σ, Γ, δ, q 0, q accept, q reject ), where Q, Σ, Γ are all finite sets Q is the set of states Σ is the input alphabet not containing the blank symbol Γ is the stack alphabet, where ЄΓand Σ _ Γ U δ: Q Γ Q Γ {L, R} is the transition function q 0 Є Q is the start state Q accept Є Q is the accept state Q reject Є Q is the reject state, where Q reject Q accept Differences Between Finite Automata and Turing Machines A Turing machine can both write on the tape and read from it The read-write head can both move to the left and to the right The tape is infinite The special states for rejecting and accepting take effect immediately 2

Language for Turing Machines A Turing Machine M accepts input w if a sequence of configurations C 1, C 2,, C k exists, where C 1 is the start configuration of M on input w Each C i yields C i+1 C k is an accepting configuration The collection of strings that M accepts is the language of M, or the language recognized by M, denoted by L(M) A language is Turing-recognizable (recursively enumerable language) if some Turing machine recognizes it A language is Turing-decidable id (recursively language) or decidable if some Turing machine decides it Every Turing-decidable language is also Turing-recognizable 3

Example of Turing Machine Turing Machine M that decides A = {0 2 n 0} M on input string w, 1. Sweep left to right across the tape, crossing off every other 0 n 2. If in stage 1 the tape contained a single 0, accept 3. If in stage 1 the tape contained more than a single 0, and the number of 0s was odd, reject 4. Return the head to the left-hand end of the tape q 5. Go to stage 1 M = (Q, Σ, Γ, δ, q 1, q accept, q reject ), where Q = {q 1, q 2, q 3, q 4, q 5, q accept, q reject } q 1 start state R 5 0 L x L q q q 0,R q accept accept state q reject reject state δ q reje q acce Σ = {0} and Γ = {0, x, } ct 0 x,r 1 2 3 R R 0 R q pt 4 0 x,r 4

Variants of Turing Machines Multi-tape Turing Machines Transition function, δ: Q Γ k Q Γ k {L, R, S} k (k is the number of tapes) The expression δ(q i, a 1, a 2,, a k ) = (q j, b 1, b 2,, b k, L, S,, L) means that, the machine is in state q i and heads 1 through k reading a 1 through a k the machine goes to state q j, which symbols b 1 through b k the machine directs each head to move left(l), right(r) or stay put(s) Theorems: Every multi-tape Turing machine has an equivalent single-tape Turing machine A language is Turing-recognizable if and only if some multi-tape Turing machine recognizes it 5

Variants of Turing Machines (contd ) Nondeterministic Turing Machines Transition function, δ: Q Γ P (Q Γ {L, R}) Theorems: Enumerators Every nondeterministic Turing machine has an equivalent deterministic Turing machine A language is Turing-recognizable if and only if some nondeterministic Turing machine recognizes it A language is decidable if and only if some nondeterministic Turing machine decides it Starts with a blank input tape Language can be infinite list of strings (may be repetitive and generated by the enumerator without halting) Theorem: A language is Turing-recognizable if and only if some enumerator enumerates it 6

The Definition of Algorithm Hilbert s 10 th Problem: Devise an algorithm that tests whether a polynomial has an integral root. D = {p p is a polynomial with an integral root} whether D is decidable The answer is negative; in contrast D is Turing-recognizable To Define Algorithms Church proposed notational system called λ-calculus Turing gproposed p machine equivalent The Church-Turing Thesis Intuitive notion of algorithms equals Turing machine algorithms 7