Jaya Krishna, M.Tech, Assistant Professor

Slides:



Advertisements
Similar presentations
Restricted Machines Presented by Muhannad Harrim.
Advertisements

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.
CS2303-THEORY OF COMPUTATION
Introduction to Computability Theory
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
Applied Computer Science II Chapter 3 : Turing Machines Prof. Dr. Luc De Raedt Institut für Informatik Albert-Ludwigs Universität Freiburg Germany.
1 Introduction to Computability Theory Lecture11: Variants of Turing Machines Prof. Amos Israeli.
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.
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 ? ?
Computation Theory Introduction to Turing Machine.
CHAPTER 3 The Church-Turing Thesis
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Finite State Machines Data Structures and Algorithms for Information Processing 1.
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Chapter 9 Turing Machine (TMs).
Theory of Computation. Computation Computation is a general term for any type of information processing that can be represented as an algorithm precisely.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
AUTOMATA THEORY VIII.
CSCI 2670 Introduction to Theory of Computing September 28, 2005.
 Computability Theory Turing Machines Professor MSc. Ivan A. Escobar
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
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.
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)
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich
Turing Machines Lecture 26 Naveen Z Quazilbash. Overview Introduction Turing Machine Notation Turing Machine Formal Notation Transition Function Instantaneous.
1 Turing Machines and Equivalent Models Section 13.1 Turing Machines.
Overview of the theory of computation Episode 3 0 Turing machines The traditional concepts of computability, decidability and recursive enumerability.
1 Turing Machines - Chap 8 Turing Machines Recursive and Recursively Enumerable Languages.
Lecture 16b Turing Machines Topics: Closure Properties of Context Free Languages Cocke-Younger-Kasimi Parsing Algorithm June 23, 2015 CSCE 355 Foundations.
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 8.4 Extensions to the Basic TM Extended TM’s to be studied: Multitape Turing machine Nondeterministic Turing machine The above extensions make no increase.
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 ? ?
Modeling Arithmetic, Computation, and Languages Mathematical Structures for Computer Science Chapter 8 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesTuring.
Turing’s Thesis Costas Busch - LSU.
Introduction to Computing Science and Programming I
8. Introduction to Turing Machines
Busch Complexity Lectures: Turing Machines
IS 2150 / TEL 2810 Introduction to Security
Turing Machines.
Turing Machines 2nd 2017 Lecture 9.
Turing Machines Acceptors; Enumerators
Chapter 9 TURING MACHINES.
COSC 3340: Introduction to Theory of Computation
Chapter 3: The CHURCH-Turing thesis
فصل سوم The Church-Turing Thesis
Jaya Krishna, M.Tech, Assistant Professor
IS 2150 / TEL 2810 Introduction to Security
Theory of Computation Turing Machines.
8. Introduction to Turing Machines
Chapter 3 Turing Machines.
CS21 Decidability and Tractability
Recall last lecture and Nondeterministic TMs
Instructor: Aaron Roth
Hopcroft, Motawi, Ullman, Chap 8
CO Games Development 2 Week 21 Turing Machines & Computability
Turing Machines Everything is an Integer
IS 2150 / TEL 2810 Introduction to Security
Intro to Theory of Computation
Presentation transcript:

Jaya Krishna, M.Tech, Assistant Professor UNIT-VII 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor INTRODUCTION Undecidable specific problems that cannot solve using a computer introduce a respected formalism for computers Turing Machines 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor TURING MACHINE purpose of the theory of undecidable problems guidance to programmers what they might or might not be able to accomplish through programming need tools that will allow us to prove everyday questions undecidable or intractable. Decidable  require large amount of time to solve them 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor TURING MACHINE As a result we need to rebuild our theory of undecidability based not on programs in C or another language based on a very simple model of a computer called TM. Essentially a Finite Automata that has a single tape of infinite length which it may read and write data. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor MODEL OF TM Input finite length string of symbols chosen from Σ (placed on tape) Blank (tape symbol not i/p symbol) All other tape cells, extending infinitely to the left and right, initially hold a special symbol. tape head positioned at one of the tape cells  scanning that cell 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor TURING MACHINE Initially the tape head is at the left most cells that hold the input. Move a function of the state of the finite control and the tape symbol scanned. In one move, TM will be Change state Write a tape symbol in the cell scanned Move the tape head left or right 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Formal Notation of TURING MACHINE Similar to that used for FA or PDA’s. M = (Q, Σ, Γ, δ, q0, B, F) Q: Finite set of states Σ: Finite set of i/p symbols Γ: complete set of tape symbols Σ subset of Γ δ: transition function δ = Q / F x Γ  Q x Γ x {L, R} δ(q, X) State Tape symbol 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Formal Notation of TURING MACHINE Value of δ(q, X) if defined A triple  i.e. (p, Y, D) Next state in Q Symbol in Γ Direction either L or R (left or right) q0: start state B: blank symbol F: set of final or accepting states 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

INSTANTANEOUS DESCRIPTION TM in principle an infinitely long tape after any finite number of moves TM can have visited only a finite number of cells cells visited can eventually grow beyond any finite limit Thus in every ID infinite prefix and an infinite suffix of that cells that have never been visited. Under a special condition head is scanning one of the leading or trailing blanks a finite number of blanks to the left or right of the nonblank portion of the tape must also be included in the ID 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

INSTANTANEOUS DESCRIPTION it is easy to change the names of the states so they have nothing in common with the tape symbols So Use string X1X2 . . . Xi-1qXiXi+1. . .Xn to represent ID q is the state of the Turing machine tape head is scanning ith symbol from the left X1X2 . . . Xn portion of the tape b/n the leftmost and the rightmost nonblank. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

INSTANTANEOUS DESCRIPTION M = (Q, Σ, Γ, δ, q0, B, F) Describe by notation Suppose δ(q, Xi) = (p, Y, L) Next  Leftward move then X1 X2 . . . Xi-1 q Xi Xi+1 . . . Xn X1 X2 . . . Xi-2 p Xi-1 Y Xi+1 . . . Xn how this move reflects the change to state p? 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

INSTANTANEOUS DESCRIPTION Two important exceptions: If i = 1, then M moves the blank to the left of X1. In that case, X1X2 . . . Xn pBYX2. . . Xn If i = n and Y = B then X1X2 . . . Xn-1 q Xn X1X2 . . . Xn-2 p Xn-1 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

INSTANTANEOUS DESCRIPTION suppose δ(q, Xi) = (p, Y, R) next move is rightward X1 X2 . . . Xi-1 q Xi Xi+1 . . . Xn X1 X2 . . . Xi-1 Y p Xi+1 . . . Xn Two exceptions If i = n, then i+1st cell holds a blank X1 X2 . . . Xn-1 q Xn X1 X2 . . . Xn-1 Y p B If i = 1 and Y =B q X1 X2 . . . Xn p X2 . . . Xn 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor Example Let us design a TM accept the language consisting of all palindromes of 0’s and 1’s. Initially it is given a finite sequence of 0’s and 1’s on its tape, preceded and followed by infinity of blanks. Starting at the left end checks the first symbol of the input 0, changes it to X 1, changes it to Y & moves right until it sees a blank. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor Example Now it moves left and checks whether the symbol read matches the one most recently changed. machine move back left until it finds the leftmost 0 or 1 continued by moving left and right alternately until all 0’s and 1’s have been matched. input is not a palindrome TM halts 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor Example Consider M = ({q0, q1, q2, q3, q4, q5, q6}, {0, 1}, {0, 1, X, Y, B}, δ, q0, B, {q6}) δ State 1 X Y B q0 (q1, X, R) (q2, Y, R) (q6, X, R) (q6, Y, R) (q6, B, R) q1 (q1, 0, R) (q1, 1, R) (q3, X, L) (q3, Y, L) (q3, B, L) q2 (q2, 0, R) (q2, 1, R) (q4, X, L) (q4, Y, L) (q4, B, L) q3 (q5, X, L) - q4 (q5, Y, L) q5 (q5, 0, L) (q5, 1, L) (q0, X, R) (q0, Y, R) 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor Example q01001 Ⱶ Yq2001 Ⱶ Y0q201 Ⱶ Y00q21 Ⱶ Y001q2 Ⱶ Y00q41 Ⱶ Y00q5Y Ⱶ Y0q50Y Ⱶ Yq500Y Ⱶ q5Y00Y Ⱶ Yq000Y Ⱶ YXq10Y Ⱶ YX0q1Y Ⱶ YXq30Y Ⱶ YXq5XY Ⱶ Yq5XXY Ⱶ YXq0XY Ⱶ Yq6XXY 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

DESIGN OF TURING MACHINE We can represent the transitions of a Turing machine pictorially much as we did for the PDA. Nodes  states of TM arc from state q to state p labeled by X/Y D X & Y  tape symbols D  direction (Left or Right) 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

DESIGN OF TURING MACHINE i.e. δ(q, X) = (p, Y, D) Here D is pictorially represented as follows: Left “” Right “” 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor Example 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor COMPUTABLE FUNCTION Computable functions are the basic objects of study in computability theory used to discuss computability without referring to any concrete model of computation such as Turing machines or register machines. Any definition, however, must make reference to some specific model of computation but all valid definitions yield the same class of functions. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor COMPUTABLE FUNCTION Informal term  effectively calculable come to be identified with the computable functions. effective computability of these functions does not imply that they can be efficiently computed algorithm that computes them will be very inefficient running time of the algorithm increases exponentially with the length of the input. Calculated using mechanical calculating device Unlimited amount of storage and time. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor COMPUTABLE FUNCTION The basic characteristic of a computable function finite procedure (an algorithm) telling how to compute the function. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

RECURSIVELY ENUMERABLE LANGUAGES A language is computably enumerable there is a computable function f such that f(w) is defined if and only if the word w is in the language 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor CHURCH HYPOTHESIS David Hilbert (1900)  mathematician International congress of mathematicians (Paris) Listed some problems in his lecture tenth problem Devise the algorithm to test whether a polynomial has an integral root. no algorithm exists for this task; it is algorithmically unsolvable. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor CHURCH-TURING THESIS 1936 papers of Alonzo Church and Alan Turing notational system called the λ-calculus to define algorithms did it with his machines Church-Turing thesis a statement that characterizes the nature of computation and cannot be formally proven 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor COUNTER MACHINES may be thought of in one of the two ways: has the same structure as the multistack machine but in place of each stack is a counter. In one move the counter machine can: Change state Add or subtract 1 from any of its counters independently But Not allowed to become negative May be regarded as a restricted multistack machine. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

Jaya Krishna, M.Tech, Assistant Professor COUNTER MACHINES restrictions are as follows: only two stack symbols (Z0 and X) Bottom of the stack marker Z0 is initially on each stack We may replace Z0 only by a string of the form XiZ0 for some i ≥ 0. We may replace X only by Xi for some i ≥ 0. 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor

TYPES OF TURING MACHINES Two way infinite tape Multitape Turing machines Non deterministic Turing machines Two-dimensional Turing machines Multihead Turing machines 11/18/2018 Jaya Krishna, M.Tech, Assistant Professor