Computability Catch up last lecture. Turing machines. Variations

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

Lecture 16 Deterministic Turing Machine (DTM) Finite Control tape head.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
CFG => PDA Sipser 2 (pages ). CS 311 Fall Formally… A pushdown automaton is a sextuple M = (Q, Σ, Γ, δ, q 0, F), where – Q is a finite set.
Turing Machines New capabilities: –infinite tape –can read OR write to tape –read/write head can move left and right q0q0 input tape.
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
CS 490: Automata and Language Theory Daniel Firpo Spring 2003.
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
Turing Machines A more powerful computation model than a PDA ?
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Lecture 23: Finite State Machines with no Outputs Acceptors & Recognizers.
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.
1 111 Computability, etc. Midterm review. Turing machines. Finite state machines. Push down automata. Homework: FSA, PDA, TM problems (can work in teams)
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Computabilty Computability Finite State Machine. Regular Languages. Homework: Finish Craps. Next Week: On your own: videos +
Lecture Pushdown Automata. stack stack head finite control tape head tape.
Computability Construct TMs. Decidability. Preview: next class: diagonalization and Halting theorem.
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.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
Computability Review homework. Video. Variations. Definitions. Enumerators. Hilbert's Problem. Algorithms. Summary Homework: Give formal definition of.
CSCI 2670 Introduction to Theory of Computing October 7, 2004.
1 Section 13.1 Turing Machines A Turing machine (TM) is a simple computer that has an infinite amount of storage in the form of cells on an infinite tape.
1 Turing Machines and Equivalent Models Section 13.1 Turing Machines.
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,
Turing Machines Sections 17.6 – The Universal Turing Machine Problem: All our machines so far are hardwired. ENIAC
CSCI 2670 Introduction to Theory of Computing September 29, 2005.
Universal Turing Machine
8. Introduction to Turing Machines
Turing Machines Finite State Machines.
Deterministic Turing Machines
COSC 3340: Introduction to Theory of Computation
Turing Machines.
CS21 Decidability and Tractability
Turing Machines Chapter 17.
Pumping Lemma Revisited
Pushdown Automata PDAs
Pushdown Automata PDAs
Pushdown Automata PDAs
Pushdown Automata PDAs
(Universal Turing Machine)
COSC 3340: Introduction to Theory of Computation
Turing Machines 2nd 2017 Lecture 9.
CSE 105 theory of computation
Turing Machines (At last!).
Turing Machines Sipser pages
Formal Definition Definition. A Turing machine is a 5-tuple (S, , , s, H), where: S is a set of states  is an alphabet It must contain  and . It cannot.
Chapter 3: The CHURCH-Turing thesis
فصل سوم The Church-Turing Thesis
Intro to Theory of Computation
Turing Machines (TM) Deterministic Turing Machine (DTM)
CSE 105 theory of computation
8. Introduction to Turing Machines
Decidable Languages A language L is decidable if there is a Turing machine ML such that given any word w  0*, then: Input of ML: a  b  … w Output of.
Pushdown automata a_introduction.htm.
CS21 Decidability and Tractability
COSC 3340: Introduction to Theory of Computation
Recall last lecture and Nondeterministic TMs
Decidability and Tractability
CSE 105 theory of computation
CSE 105 theory of computation
Hopcroft, Motawi, Ullman, Chap 8
Turing Machines Everything is an Integer
Intro to Theory of Computation
CSE 105 theory of computation
CSE 105 theory of computation
Presentation transcript:

Computability Catch up last lecture. Turing machines. Variations Homework: Check out videos. Describe certain TMs

What next? It wasn't done this way, but, how can we define a machine more powerful than PDA (which was more powerful than FSM) Still talking about recognizers: something that accepts a string as a member of a language Put input on tape Add scanning back and forth Add writing on the tape Keep finite number of states Keep finite rules

Turing Machines Informal definition: Finite number of states Tape without end. Finite input starts at one end. A special symbol stands for blank. Initial tape holds input and then blanks. TM can write on the tape and TM can go back and forth. TM accepts a string (which may no longer be on the tape) if it stops in a state labeled as an accepting state. TM rejects a string if it stops in a state labeled as a rejecting state. TM may not stop!

Turing Machines Formal definition: A TM is a 7-tuple: Q set of states A input alphabet G tape alphabet, including a blank character and A is contained in G. The TM can write and read extra symbols. Transition function: f: QxG  QxGx {L,R}, meaning for each pair of states and symbols in tape alphabet, there is a [possibly new] state, a possibly, new symbol written on the tape, and the TM head moves left or right. q0 is the initial state qaccept is a state in Q that is the accepting state. qreject is a state in Q that is the rejecting state. Not equal to accepting state.

Alternative formalism TM is a set of quintuples: <qj,ai,qk,bn,M> where M is L for left or R for right or H for halt and interpretation for <qj,ai,qk,bn,R> would be: in state qj reading ai, change to state qk, write bn and move right on the tape. [Note: some books use quadruples: you write or move, not both. Can simulate the quintuple way by specifying additional states.]

Comment Using quintuples may be easier way to think about the transition function, especially when adding non-determinism. Think: is there a quintuple starting with qj,ai, ? or Take all the quintuples …

Advance notice Later, define TM for computing functions input is encoded on tape (n+1) 1s standing for the the number n output is what remains on the tape after TM halts.

FSM can be simulated by TM How?

FSM Define a TM with the same states as the FSM plus 1 designated accepting state and 1 designated reject state. Starting state is the TM starting state.. Nearly same transition function: state q scanning symbol a goes to state p and move right if state q goes to state p in FSM. Never write on the tape. When machine sees blank, if in one of accepting states for the FSM, go to new designated accepting state for TM. If NOT in one of the FSM accepting states, go to the new designated reject state.

Pushdown automata What to do? Add new tape symbols for start S and end E of stack and create additional states, including start state, that scans to end of input string and places S and E 1011 input. add 1011SE Using instructions of PDA, for every instruction that has state q, scanning a, add b to stack, change to state p ???

FSM examples directly {1n | n is divisible by 3 } { larry, curly, moe} { all strings w that contain larry, curly, moe somewhere } ?

PDA example directly {wwR | w a string in {0,1}* }

{ww | w a string in {0,1}* } So we don't have a stack, but we can write on tape, specifically we can erase….

Classwork/Homework Describe TMs to recognize {0n1n | n>=0} {anbncn | n >= 0} {0p | p = 2n for n>=0} See Sipser text. For each compare to what is allowed and what is not allowed (available) in FSM or PDA.

Homework Video clip of sections from one of Turing's papers: http://www.youtube.com/watch?v=mPec64RUCsk&feature=related Post response on moodle