Modeling Computation:

Slides:



Advertisements
Similar presentations
Turing Machines.
Advertisements

CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Lecture 16 Deterministic Turing Machine (DTM) Finite Control tape head.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Fall 2004COMP 3351 Turing Machines. Fall 2004COMP 3352 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Courtesy Costas Busch - RPI1 Turing Machines. Courtesy Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Turing Machines.
CIS 197 Computers in Society Professor John Peterson Philosophy Week!
1 Foundations of Software Design Fall 2002 Marti Hearst Lecture 29: Computability, Turing Machines, Can Computers Think?
Costas Busch - RPI1 Turing Machines. Costas Busch - RPI2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Grammars, Languages and Finite-state automata Languages are described by grammars We need an algorithm that takes as input grammar sentence And gives a.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
Complexity and Computability Theory I Lecture #13 Instructor: Rina Zviel-Girshin Lea Epstein Yael Moses.
1 Language Recognition (11.4) and Turing Machines (11.5) Longin Jan Latecki Temple University Based on slides by Costas Busch from the courseCostas Busch.
CSE202: Introduction to Formal Languages and Automata Theory Chapter 9 The Turing Machine These class notes are based on material from our textbook, An.
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
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
Turing Machines (13.5) Based on slides by Costas Busch from the course
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
CS 208: Computing Theory Assoc. Prof. Dr. Brahim Hnich
Theory of computing, part 4. 1Introduction 2Theoretical background Biochemistry/molecular biology 3Theoretical background computer science 4History of.
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.
Lecture 16b Turing Machines Topics: Closure Properties of Context Free Languages Cocke-Younger-Kasimi Parsing Algorithm June 23, 2015 CSCE 355 Foundations.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free 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 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Copyright © Curt Hill Other Automata Pushdown through Turing machines.
1 Unit – 5 : STATE MACHINES Syllabus: Languages and Grammars – Finite State Machines State machines and languages – Turing Machines – Computational Complexity.
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 ? ?
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
CS 154 Formal Languages and Computability April 5 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
The Halting Problem.
Busch Complexity Lectures: Turing Machines
Deterministic Turing Machines
Theory of Languages and Automata
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Pushdown automata Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Turing Machines.
Turing Machines 2nd 2017 Lecture 9.
Turing Machines Acceptors; Enumerators
Chapter 9 TURING MACHINES.
CSE322 The Chomsky Hierarchy
Chapter 3: The CHURCH-Turing thesis
Jaya Krishna, M.Tech, Assistant Professor
فصل سوم The Church-Turing Thesis
Turing Machines (11.5) Based on slides by Costas Busch from the course
Jaya Krishna, M.Tech, Assistant Professor
Theory of Computation Turing Machines.
Non Deterministic Automata
Theory of computing, part 4
Pushdown automata Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Pushdown automata Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Pushdown automata Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
The Church-Turing Thesis and Turing-completeness
Hopcroft, Motawi, Ullman, Chap 8
The Chomsky Hierarchy Costas Busch - LSU.
Pushdown automata Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Pushdown automata Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
Presentation transcript:

Modeling Computation: INFO 2950 Prof. Carla Gomes gomes@cs.cornell.edu Module Modeling Computation: Language Recognition Rosen, Chapter 12.4

Models of computing DFA - regular languages Push down automata - Context-free Bounded Turing M’s - Context sensitive Turing machines - Phrase-structure

Foundations The theory of computation and the practical application it made possible — the computer — was developed by an Englishman called Alan Turing.

The Turing Machine (4) At any time, the machine is in one of a finite number of internal states. (5) The machine has instructions that determine what it does given its internal state and the symbol it encounters on the tape. It can  change its internal state;  change the symbol on the square;  move forward;  move backward;  halt (i.e. stop). Turing’s machine — which came to be called the Turing machine — was this: (1) A tape of infinite length (2) Finitely many squares of the tape have a single symbol from a finite language. (3) Someone (or something) that can read the squares and write in them.

1 1 1 1 Current state = 1 If current state = 1 and current symbol = 0 then new state = 10 new symbol = 1 move right 1 1 1 1

1 1 1 1 1 Current state = 10 If current state = 1 and current symbol = 0 then new state = 10 new symbol = 1 move right 1 1 1 1 1

1 1 1 1 1 Current state = 10 If current state = 1 and current symbol = 0 then new state = 10 new symbol = 1 move right 1 1 1 1 1

Functions It is essential to the idea of a Turing machine that it is not a physical machine, but an abstract one — a set of procedures. It makes no difference whether the machine is embodied by a person in a boxcar on a track, or a person with a paper and pencil, or a smart and well-trained flamingo.

First computers: custom computing machines Input tape (read only) Control Work tape (memory) 1950 -- Eniac: the control is hardwired manually for each problem. Output tape (write only) 1940: VON NEUMANN: DISTINCTION BETWEEN DATA AND INSTRUCTIONS

Can Machines Think? In “Computing machinery and intelligence,” written in 1950, Turing asks whether machines can think. He claims that this question is too vague, and proposes, instead, to replace it with a different one. That question is: Can machines pass the “imitation game” (now called the Turing test)? If they can, they are intelligent. Turing is thus the first to have offered a rigorous test for the determination of intelligence quite generally.

The Turing Test The game runs as follows. You sit at a computer terminal and have an electronic conversation. You don’t know who is on the other end; it could be a person or a computer responding as it has been programmed to do. If you can’t distinguish between a human being and a computer from your interactions, then the computer is intelligent. Note that this is meant to be a sufficient condition of intelligence only. There may be other ways to be intelligent.

The Church-Turning Thesis Turing, and a logician called Alonzo Church (1903-1995), independently developed the idea (not yet proven by widely accepted) that whatever can be computed by a mechanical procedure can be computed by a Turing machine. This is known as the Church-Turing thesis.

Turing Machines

The Language Hierarchy ? ? Context-Free Languages Regular Languages

Languages accepted by Turing Machines Context-Free Languages Regular Languages

A Turing Machine Tape ...... ...... Read-Write head Control Unit

The Tape No boundaries -- infinite length ...... ...... Read-Write head The head moves Left or Right

...... ...... Read-Write head The head at each time step: 1. Reads a symbol 2. Writes a symbol 3. Moves Left or Right

Example: Time 0 ...... ...... Time 1 ...... ...... 1. Reads 2. Writes 3. Moves Left

Time 1 ...... ...... Time 2 ...... ...... 1. Reads 2. Writes 3. Moves Right

The Input String Input string Blank symbol ...... ...... head Head starts at the leftmost position of the input string

Input string Blank symbol ...... ...... head Remark: the input string is never empty

States & Transitions Write Read Move Left Move Right

Example: Time 1 ...... ...... current state

Time 1 ...... ...... Time 2 ...... ......

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

Example: ...... ...... No possible transition HALT!!!

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

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

Turing Machine Example A Turing machine that accepts the language:

Time 0

Time 1

Time 2

Time 3

Time 4 Halt & Accept

Rejection Example Time 0

Time 1 No possible Transition Halt & Reject

Infinite Loop Example

Time 0

Time 1

Time 2

Time 2 Time 3 Infinite loop Time 4 Time 5

Because of the infinite loop: The final state cannot be reached The machine never halts The input is not accepted

Another Turing Machine Example Turing machine for the language

Time 0

Time 1

Time 2

Time 3

Time 4

Time 5

Time 6

Time 7

Time 8

Time 9

Time 10

Time 11

Time 12

Time 13 Halt & Accept

Languages accepted by Turing Machines Context-Free Languages Regular Languages

End of intro to Languages (sets of strings), Grammars, Automata, and Turing Machines (= computation).