AUTOMATA THEORY VIII.

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

Introduction to Computability Theory
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Lecture 16 Deterministic Turing Machine (DTM) Finite Control tape head.
Variants of Turing machines
Foundations of (Theoretical) Computer Science Chapter 3 Lecture Notes (Section 3.2: Variants of Turing Machines) David Martin With.
CS605 – The Mathematics and Theory of Computer Science Turing Machines.
1 Introduction to Computability Theory Lecture11: Variants of Turing Machines Prof. Amos Israeli.
Turing Machines New capabilities: –infinite tape –can read OR write to tape –read/write head can move left and right q0q0 input tape.
P, NP, PS, and NPS By Muhannad Harrim. Class P P is the complexity class containing decision problems which can be solved by a Deterministic Turing machine.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Based on Slides by Zeph Grunschlag from Columbia University www1.cs.columbia.edu/~zeph/3261/L14/L14.ppt Basic Computability Reading Material: J. Savage,
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
Programming the TM qa  (,q) (,q) q1q1 0q1q1 R q1q1 1q1q1 R q1q1  h  Qa  (,q) (,q) q1q1 0q2q2  q1q1 1q3q3  q1q1  h  q2q2 0q4q4 R q2q2 1q4q4.
Lecture 5 Turing Machines
Computation Theory Introduction to Turing Machine.
Turing Machines.
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Turing Machines CS 105: Introduction to Computer Science.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines A more powerful computation model than a PDA ?
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
Turing Machines Chapter Plan Turing Machines(TMs) – Alan Turing Church-Turing Thesis – Definitions Computation Configuration Recognizable vs. Decidable.
CSCI 2670 Introduction to Theory of Computing September 28, 2005.
 Computability Theory Turing Machines Professor MSc. Ivan A. Escobar
Transparency No. P3C1-1 Turing Machines PART III Turing Machines and Effective Computability.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Turing Machines Chapter 17. Languages and Machines SD D Context-Free Languages Regular Languages reg exps FSMs cfgs PDAs unrestricted grammars Turing.
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.
1 Turing Machines (TM) Generalize the class of CFLs: Regular Languages Context-Free Languages Recursive Languages Recursively Enumerable Languages Non-Recursively.
Computer Science 101 Theory of Computing. Computer Science is... The study of algorithms, with respect to –their formal properties –their linguistic realizations.
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,
TM Design Macro Language D and SD MA/CSSE 474 Theory of Computation.
CS 3240: Languages and Computation
CSCI 2670 Introduction to Theory of Computing October 7, 2004.
Turing Machines Lecture 26 Naveen Z Quazilbash. Overview Introduction Turing Machine Notation Turing Machine Formal Notation Transition Function Instantaneous.
Overview of the theory of computation Episode 3 0 Turing machines The traditional concepts of computability, decidability and recursive enumerability.
1 Course Overview Why this course “formal languages and automata theory?” What do computers really do? What are the practical benefits/application of formal.
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 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
Chapter 9 Turing Machines What would happen if we change the stack in Pushdown Automata into some other storage device? Truing Machines, which maintains.
Turing Machines CS 130 Theory of Computation HMU Textbook: Chap 8.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CSCI 2670 Introduction to Theory of Computing September 29, 2005.
Theory of Computation Automata Theory Dr. Ayman Srour.
Modeling Arithmetic, Computation, and Languages Mathematical Structures for Computer Science Chapter 8 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesTuring.
8. Introduction to Turing Machines
Busch Complexity Lectures: Turing Machines
COSC 3340: Introduction to Theory of Computation
CS21 Decidability and Tractability
Pumping Lemma Revisited
COSC 3340: Introduction to Theory of Computation
Turing Machines Acceptors; Enumerators
Chapter 9 TURING MACHINES.
Chapter 3: The CHURCH-Turing thesis
Jaya Krishna, M.Tech, Assistant Professor
فصل سوم The Church-Turing Thesis
Intro to Theory of Computation
Turing Machines (TM) Deterministic Turing Machine (DTM)
8. Introduction to Turing Machines
CS21 Decidability and Tractability
COSC 3340: Introduction to Theory of Computation
Recall last lecture and Nondeterministic TMs
Decidability and Tractability
Variants of Turing machines
Presentation transcript:

AUTOMATA THEORY VIII

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Turing Machines Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII What is Formal Definition of a Turing Machine “A Turing machine is the simplest form of a computer. The concept was invented by Alan Turing in 1936.  This was the first computer invented (on paper only).” "A Turing machine is a finite-state machine associated with an external storage or memory medium." (Minsky (1967), p. 117) "A Turing machine is essentially a finite-state sequential machine that has the ability to communicate with an external store of information." (Booth (1967), p. 354) Deterministic TM’s (DTM) Nondeterministic TM’s (NDTM) Dept. of Computer Science & IT, FUUAST Automata Theory

Formal Definition of a Turing Machine Automata Theory VII Formal Definition of a Turing Machine A DTM is a 7-tuple: M = (Q, Σ, Γ, δ, q0, B, F) Q A finite set of states Γ A finite complete tape alphabet B (#) A distinguished blank symbol, which is in Γ Σ A finite input alphabet, which is always a subset of Γ– {B} q0 The initial/starting state, q0 is in Q F A set of final/accepting states, which is a subset of Q δ A next-move function, which is a mapping (i.e., may be undefined) from Q x Γ –> Q x Γ x {L,R} Intuitively, δ(q,s) specifies the next state, symbol to be written, and the direction of tape head movement by M after reading symbol s while in state q. Dept. of Computer Science & IT, FUUAST Automata Theory

Deterministic Turing Machine (DTM) Automata Theory VII Deterministic Turing Machine (DTM) …….. …….. Two-way, infinite tape, broken into cells, each containing one symbol. Two-way, read/write tape head. Finite control, i.e., a program, containing the position of the read head, current symbol being scanned, and the current state. An input string is placed on the tape, padded to the left and right infinitely with blanks, read/write head is positioned at the left end of input string. In one move, depending on the current state and the current symbol being scanned, the TM 1) changes state, 2) prints a symbol over the cell being scanned, and 3) moves its’ tape head one cell left or right. Many modifications possible. B 1 Finite Control Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Def’s. An accepting configuration of TM is a configuration in which the state is the accept state. A rejecting configuration of TM is a configuration in which the state is the reject state. Accepting and rejecting configurations are halting configurations and accordingly do not yield further configurations. We say that a language is recursive if there exists a Turing machine to decide the language. For instance, the language L = {wcw | w {0, 1}*} is recursive. We say that a language is recursively enumerable if it is accepted by some Turing machine. For instance, the language L = {wcw | w  {0, 1}*} is recursively numerable. Note that every recursive language is also recursively enumerable, but a recursively enumerable language is not necessarily a recursive language. Turing machines that halts on all input strings are called deciders, as they always make a decision to accept or reject. A decider that recognizes some language is said to decide that language. Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Turing Machine as Transducer Consider the entire nonblank portion of the initial tape as input, and treat the entire nonblank portion of the tape when the machine halts as output. Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Universal Turing Machines The most striking positive result concerning the capabilities of Turing machines is the existence of Universal Turing Machines (UTM). When started on a tape containing the encoding of another Turing machine, call it T, followed by the input to T, a UTM produces the same result as T would when started on that input. Essentially a UTM can simulate the behavior of any Turing machine (including itself.) One way to think of a UTM is as a programmable computer. When a UTM is given a program (a description of another machine), it makes itself behave as if it were that machine while processing the input. Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Instantaneous Description For a state q and two strings u and v over the tape alphabet ¡, we write u q v for the configuration where the current state is q, the current tape contents is uv, and the current head location is the first symbol of v. For instance, 1011 q7 0111 represents the configuration when the tape is 10110111, the current state is q7, and the head is currently on the second 0 of 10110111 from left to right. We say that configuration C1 yields configuration C2 if the Turing machine can legally go from C1 to C2 is a single step. This notion can be formalized via the transition function. Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Let a, b, and c be symbols of , let u and v be strings over , and let qi and qj be any two states (not necessarily distinct) in Q. Then, we say that ua qi bv yields u qj acv if in the transition function (qi, b) = (qj, c, L). That handles the case where the Turing machine moves leftward. For a rightward move, we say that ua qi bv yields uac qj v if in the transition function (qi, b) = (qj, c, R). Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Working Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Example: Language of TM is Sequence of moves of M when input is 0011 Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII Transition Diagram Dept. of Computer Science & IT, FUUAST Automata Theory

Dept. of Computer Science & IT, FUUAST Automata Theory Automata Theory VII End of Chapter 8 Dept. of Computer Science & IT, FUUAST Automata Theory