Computability Review homework. Video. Variations. Definitions. Enumerators. Hilbert's Problem. Algorithms. Summary Homework: Give formal definition of.

Slides:



Advertisements
Similar presentations
Context-Free and Noncontext-Free Languages
Advertisements

Chapter 5 Pushdown Automata
Natural Language Processing - Formal Language - (formal) Language (formal) Grammar.
Pushdown Automata Chapter 12. Recognizing Context-Free Languages Two notions of recognition: (1) Say yes or no, just like with FSMs (2) Say yes or no,
Pushdown Automata Chapter 12. Recognizing Context-Free Languages We need a device similar to an FSM except that it needs more power. The insight: Precisely.
Turing -Recognizable vs. -Decidable
Foundations of (Theoretical) Computer Science Chapter 3 Lecture Notes (Section 3.2: Variants of Turing Machines) David Martin With.
Theory of Computation CS3231, First Semester Rahul Jain TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA.
CS21 Decidability and Tractability
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
More Turing Machines Sipser 3.2 (pages ).
Decidable languages Sipser 4.1 (pages ). CS 311 Mount Holyoke College 2 Hierarchy of languages All languages Turing-recognizable Turing-decidable.
CS5371 Theory of Computation Lecture 11: Computability Theory II (TM Variants, Church-Turing Thesis)
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
Lecture 5 Turing Machines
Computation Theory Introduction to Turing Machine.
Foundations of (Theoretical) Computer Science Chapter 4 Lecture Notes (Section 4.1: Decidable Languages) David Martin With modifications.
CS 490: Automata and Language Theory Daniel Firpo Spring 2003.
Normal forms for Context-Free Grammars
January 23, 2015CS21 Lecture 81 CS21 Decidability and Tractability Lecture 8 January 23, 2015.
Fall 2003Costas Busch - RPI1 Turing Machines (TMs) Linear Bounded Automata (LBAs)
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Remaining Topics Decidability Concept 4.1 The Halting Problem 4.2
111 Computability, etc. Recap. Present homework. Grammar and machine equivalences. Turing history Homework: Equivalence assignments. Presentation proposals,
TM Design Universal TM MA/CSSE 474 Theory of Computation.
Turing Machines – Decidability Lecture 25 Section 3.1 Fri, Oct 19, 2007.
Computability Construct TMs. Decidability. Preview: next class: diagonalization and Halting theorem.
Context-Free and Noncontext-Free Languages Chapter 13 1.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 11 Midterm Exam 2 -Context-Free Languages Mälardalen University 2005.
Context-Free and Noncontext-Free Languages Chapter 13 1.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
D E C I D A B I L I T Y 1. 2 Objectives To investigate the power of algorithms to solve problems. To explore the limits of algorithmic solvability. To.
Foundations of (Theoretical) Computer Science Chapter 2 Lecture Notes (Section 2.2: Pushdown Automata) Prof. Karen Daniels, Fall 2010 with acknowledgement.
Context-Free and Noncontext-Free Languages Chapter 13.
Computability Regular expressions. Languages defined by regular expresses = Regular languages (languages recognized by FSM). Applications. Pumping lemma.
Turing -Recognizable vs. -Decidable
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
1 Turing Machines and Equivalent Models Section 13.1 Turing Machines.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
Grammar Set of variables Set of terminal symbols Start variable Set of Production rules.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
Turing Machines Sections 17.6 – The Universal Turing Machine Problem: All our machines so far are hardwired. ENIAC
Pushdown Automata Chapter 12. Recognizing Context-Free Languages Two notions of recognition: (1) Say yes or no, just like with FSMs (2) Say yes or no,
 2005 SDU Lecture11 Decidability.  2005 SDU 2 Topics Discuss the power of algorithms to solve problems. Demonstrate that some problems can be solved.
The Church-Turing Thesis
Week 14 - Friday.  What did we talk about last time?  Simplifying FSAs  Quotient automata.
Natural Language Processing - Formal Language -
PDAs Accept Context-Free Languages
CSE 105 theory of computation
CSE 105 theory of computation
CSE 2001: Introduction to Theory of Computation Fall 2013
CSCI 2670 Introduction to Theory of Computing
Turing Machines Acceptors; Enumerators
CSE322 The Chomsky Hierarchy
Intro to Theory of Computation
CS21 Decidability and Tractability
MA/CSSE 474 Theory of Computation
CSE 105 theory of computation
Chapter 1 Regular Language
Computability Catch up last lecture. Turing machines. Variations
MA/CSSE 474 Theory of Computation
CSE 105 theory of computation
Presentation transcript:

Computability Review homework. Video. Variations. Definitions. Enumerators. Hilbert's Problem. Algorithms. Summary Homework: Give formal definition of enumerator

Homework Describe TMs to recognize {ww | w a string in {0,1}* } {0 n 1 n | n>=0} {a n b n c n | n >= 0} {0 p | p = 2 n for n>=0} For each compare to what is allowed and what is not allowed (available) in FSM or PDA.

Video? Comments on video specified at last class –Including reading from paper by Turing???? –Response is required.

Variations Multiple tape –Every multiple tape TM has a single-tape TM that accepts the same language Add new symbol, say #, to delimit the multiple tapes. Non-deterministic: have transition function go to sets of possibilities: multiple branches –Every nondeterministic TM has an equivalent deterministic TM Use 3 tape machine! Simulate the possibilities in a breadth first (advance 1 step for each…)

Definitions A language is Turing-recognizable if a TM recognizes it! –If the TM has input a string in the language, the TM halts in an accepting state. –If the TM has input a string not in the language, the TM halts in a rejecting state OR keeps going. We now would say loops though that wasn't term originally. A TM is decidable if it always halts. A language is Turing-decidable (simplified to just say decidable) if a TM exists that decides it.

Two situations Deciders always say yes or no But some languages have (only) a TM that says yes, sooner or later, and may not say no all the time. –You don't know….

Caution Sloppy language: TM that is a recognizer does not stop if the answer is no. –Deciders ARE recognizers and they stop by definition. –There are TMs that stop at yes and stop at no some of the time, but not all the time.

Aside This situation is inevitable given that the TM definition allows for scanning back and forth and writing on the tape. This wasn't possible for FSM –Machines either went to the end of the input with either an accepting or non-accepting state What about Context-Free languages? –Seems to be the case: CFG or PDA make progress…

Claim Given a grammar G in Chomsky normal form: all rules A  BC (B, C not start symbol), or A  a. Claim: if G has derivation for w, length of w is n, then derivation is not more than 2n-1 steps. Informal proof: If w is empty, then must be S  ∊. So say n>0. Use induction!

Claim Languages generated by CFG are decidable. –Convert grammar to Chomsky normal form and try out all derivations with not more than 2n-1 steps.

Enumerators Variation of TM: this TM-like machine prints out all the strings in a given language. A TM is Turing-recognizable if and only if some enumerator enumerates it. –If we have such a machine (see homework) E, we can run it and compare each output to a string w. If w equals the output, say this machine accepts w. –Say there is a TM. Generate strings from the finite alphabet starting with empty string, then strings of length 1, then 2, etc. Run the TM on each string. Whenever it accepts, print out this string.

Lexical order ∊, 0, 1, 00, 01, 10, 11, etc. Which of the following lists are in lexical order? – 1, 11, 111, 1111…… – 0, 10, 111, 010, ….. –0, 10, 111, 1011, …. –You define a list in lexical order –You define a list not in lexical order

Decidable? For every decidable TM, there is an enumerator that prints the strings in the language in lexical order For every enumerator that prints out the strings in lexical order, there is a decidable TM.

Closure Decidable languages are closed under union, concatenation, star, intersection AND complementation. –Proofs? Think how to build the TM… –Complementation (Sipser uses this, but I'm not sure if it is a word)?

Closure Turing recognizable languages are closed under union, concatenation, star, intersection. –Proofs? –Note: that complementation is not present.

Theorem If A is Turing recognizable and A' (complement) is Turing recognizable, can you build a decider for A? Answer: yes

Hilbert's problems 1900 lecture giving challenges Possible presentation topic: select and talk about another problem on list. 10 th problem: is there a finite process (algorithm) to determine if a given polynomial has an integral root. Turing (Church, Post) defined what is meant by a process.

Hierarchy Bull's eye Each is contained in and strictly smaller than next: FSM  NDFSM  regular expressions (deterministic push down automaton) Push Down Automation  Context Free Grammars Turing decidable  nondeterministic TM decidable Turing recognizable  nondeterministic TM recognizable

Regarding non-determinism As with other variations, such as size of alphabet, the deterministic (standard) TM that simulates a non-deterministic TM will have more states. –Recall the FSM case. The machines developed in the proofs of equivalence will have more states, longer use of tape, etc., than any individual case.

History 1970: Yuri Matijasevic (based on work by Martin Davis, Hilary Putnam, Julia Robinson) showed that no such process/algorithm exists. –can't be done! Formally, D = {p | p is a polynomial with an integral root} D is not decidable. It is Turing-recognizable. D1 = {p|p is polynomial in one variable with an integral root} D is decidable because it is possible to set up bounds for possible roots and test all within the bounds. Presentation topic possibility!

Homework Develop a formal definition of an enumerator