1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.

Slides:



Advertisements
Similar presentations
Introduction to Computability Theory
Advertisements

Introduction to Computability Theory
Lecture 3 Universal TM. Code of a DTM Consider a one-tape DTM M = (Q, Σ, Γ, δ, s). It can be encoded as follows: First, encode each state, each direction,
CS 461 – Nov. 9 Chomsky hierarchy of language classes –Review –Let’s find a language outside the TM world! –Hints: languages and TM are countable, but.
1 COMP 382: Reasoning about algorithms Unit 9: Undecidability [Slides adapted from Amos Israeli’s]
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Introduction to Computability Theory
1 Introduction to Computability Theory Lecture11: Variants of Turing Machines Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture7: The Pumping Lemma for Context Free Languages Prof. Amos Israeli.
Introduction to Computability Theory
The Halting Problem Sipser 4.2 (pages ). CS 311 Mount Holyoke College 2 Taking stock All languages Turing-recognizable Turing-decidable Context-free.
The Halting Problem Sipser 4.2 (pages ).
1 Introduction to Computability Theory Lecture7: PushDown Automata (Part 1) Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture5: Context Free Languages Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture4: Non Regular Languages Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Discussion1: Non-Deterministic Finite Automatons Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture2: Non Deterministic Finite Automata (cont.) Prof. Amos Israeli.
CS 302: Discrete Math II A Review. An alphabet Σ is a finite set (e.g., Σ = {0,1}) A string over Σ is a finite-length sequence of elements of Σ For x.
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
1 Introduction to Computability Theory Lecture4: Non Regular Languages Prof. Amos Israeli.
CHAPTER 4 Decidability Contents Decidable Languages
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 6 Decidability Jan Maluszynski, IDA, 2007
Foundations of (Theoretical) Computer Science Chapter 4 Lecture Notes (Section 4.1: Decidable Languages) David Martin With modifications.
CS 310 – Fall 2006 Pacific University CS310 The Halting Problem Section 4.2 November 15, 2006.
1 Introduction to Computability Theory Lecture11: The Halting Problem Prof. Amos Israeli.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
1 Undecidability Reading: Chapter 8 & 9. 2 Decidability vs. Undecidability There are two types of TMs (based on halting): (Recursive) TMs that always.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
CSCI 2670 Introduction to Theory of Computing October 12, 2005.
 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.
CSCI 2670 Introduction to Theory of Computing September 13.
CS 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
Lecture 16b Turing Machines Topics: Closure Properties of Context Free Languages Cocke-Younger-Kasimi Parsing Algorithm June 23, 2015 CSCE 355 Foundations.
 2005 SDU Lecture11 Decidability.  2005 SDU 2 Topics Discuss the power of algorithms to solve problems. Demonstrate that some problems can be solved.
Review : Theory of Computation. Regular Language and Finite Automata Context-free Language and Pushdown Automata Turing Machine and Recursive Enumerable.
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
Review : Theory of Computation
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
CSCI 2670 Introduction to Theory of Computing
Reductions Costas Busch - LSU.
Turing Machines.
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Summary.
CSE 105 theory of computation
Decidable Languages Costas Busch - LSU.
CS21 Decidability and Tractability
Formal Languages, Automata and Models of Computation
Decidability and Tractability
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
CSE 105 theory of computation
Theory of Computability
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
CSE 105 theory of computation
Automata, Grammars and Languages
CSE 105 theory of computation
Presentation transcript:

1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli

1.Regular languages – Finite automata. 2.Context free languages – Stack automata. 3.Decidable languages – Turing machines. 4.Undecidability. 5.Reductions. Subjects 2

CFL-s Ex: RL-s Ex: The Language Hierarchy 3 Decidable Ex: Turing recognizable Ex: Non Turing recognizable Ex:

1.Defined DFA-s and their languages. 2.Defined NFA-s and their languages. 3.Defined RE-s and their languages. 4.Showed all three are equivalent. 5.Proved the Pumping lemma and demonstrated its use to prove irregularity. Regular Languages 4

Consider a. Show that L is regular. b. Present an RE for L. Training Problem 1 5

a. Consider Proof 6 a,b a,b, -

b. Consider Proof 7

1.Defined CFG-s and their languages. 2.Defined Stack automata and their languages. 3.Showed that the two classes are equivalent. 4.Proved the Pumping lemma for CFL-s and demonstrated its use to prove languages to be non CFL. Context Free Languages 8

Let Show that L is context free. Proof: Training Problem 2 9

1.Defined Turing machines, decidable languages and Turing recognizable languages. 2.Defined multi-tape TM-s and non deterministic TM-s, and showed their equivalence to ordinary TM-s. 3.Introduced the Church-Turing hypothesis. Decidable Languages 10

Consider a. Show that L is regular by presenting a DFA. b. Show that L is CF by presenting a PDA. c. Show that L is decidable by presenting a TM. Training Problem 3 11

Consider a. Show that L is regular by presenting a DFA. Training Problem ,1

Consider b. Show that L is CF by presenting a PDA. Training Problem ,1 0

Consider c. Show that L is decidable by presenting a TM. Training Problem ,1

1.Defined Cardinality of sets. 2.Showed that the cardinality of the rational numbers is equal to. 3.Used Diagonalization to show that the cardinality of infinite binary sequences is not equal to. Undecidability 15

4.Showed that the cardinality of Turing recognizable languages is equal to. 5.Showed that the cardinality of languages is larger than. 6.Concluded the existence of a non Turing recognizable language. Undecidability (cont.) 16

7.Defined and showed that it is undecidable. Undecidability (cont.) 17

1.Defined reductions. 2.Used reductions to prove that,,,, and many other problems are undecidable. 3.Defined mapping reductions. Reductions 18

Consider the following problem: Show that is undecidable. Training Problem 4 19

We show a reduction from to. Assume TM R is a decider for, let S= “On input where N is a TM 1. Let M be the TM rejecting all its inputs. 2. if R accepts (meaning ) - accept, otherwise reject.” Proof 20

We conclude that S never loops and it accepts iff. In other words: S is a decider for. Since is undecidable, we conclude that is also undecidable. QED Other practice problems: Prove by reduction from and from. Proof 21

Prove or disprove: a. If L is Turing recognizable then L is undecidable. Disprove: A Language L is Turing recognizable if there exists a TM, M, s.t.. If M, halts on every input then L is decidable. In other words: Every decidable language is also Turing recognizable. Training Problem 5 22

Prove or disprove: b. If a Turing machine moves its head only to the right then it must halt. Disprove: Present a state diagram of a TM that goes to the right forever. Training Problem 5 23

Prove or disprove: c. If a language A, is undecidable then its complement is also undecidable. Training Problem 5 24

Prove: Assume towards a contradiction that is decidable and let M be a TM deciding it. Consider TM M’ which is identical to M except that the accepting and rejecting states of M’ are switched. Clearly M’ accepts (rejects resp.) if and only if M rejects (accepts resp.), hence, M’ decides A, a contradiction. QED Training Problem 5 25

An ordinary Turing machine may either change its current cell or leave it unchanged. A changer is a TM that always changes its current cell. Show that every Turing recognizable language is recognizable by a changer TM. Training Problem 6 26

Let L be a Turing recognizable language and let M be a TM recognizing L, namely. Let be M ’s alphabet. Define a TM M’ whose alphabet is, where contains all the “barred” elements of. How should M ’s transition function be changed in order to keep its functionality? Proof 27

Let Consider the following problem: Show that is Turing recognizable. Training Problem 7 28

Consider the following TM: S= “On input where M, N are TM-s 1. Repeat 1.1 Run a single step of M on input w. 1.2 Run a single step of N on input w. 1.3 if either M or N accept - accept, if both reject - reject.” Proof 29

We can conclude: QED Proof 30