Mapping Reducibility Sipser 5.3 (pages 206-210).

Slides:



Advertisements
Similar presentations
Measuring Time Complexity
Advertisements

Turing -Recognizable vs. -Decidable
1 CSC3130 Formal Languages and Automata Theory Tutorial 9 Undecidable Problem KN Hung SHB 1026.
Reducibility 2 Theorem 5.1 HALT TM is undecidable.
Measuring Time Complexity Sipser 7.1 (pages )
Regular operations Sipser 1.1 (pages 44 – 47). CS 311 Mount Holyoke College 2 Building languages If L is a language, then its complement is L’ = {w |
NP-completeness Sipser 7.4 (pages 271 – 283). CS 311 Mount Holyoke College 2 The classes P and NP NP = ∪ k NTIME(n k ) P = ∪ k TIME(n k )
Algorithms Sipser 3.3 (pages ). CS 311 Mount Holyoke College 2 Computability Hilbert's Tenth Problem: Find “a process according to which it can.
NP-completeness Sipser 7.4 (pages 271 – 283). CS 311 Fall The classes P and NP NP = ∪ k NTIME(n k ) P = ∪ k TIME(n k )
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Turing machines Sipser 2.3 and 3.1 (pages )
Reducibility Sipser 5.1 (pages ).
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 ).
More Turing Machines Sipser 3.2 (pages ).
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
Mapping Reducibility Sipser 5.3 (pages ). CS 311 Fall Computable functions Definition 5.17: A function f:Σ*→Σ* is a computable function.
Decidable languages Sipser 4.1 (pages ). CS 311 Mount Holyoke College 2 Hierarchy of languages All languages Turing-recognizable Turing-decidable.
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Reducibility A reduction is a way of converting one problem into another problem in such a way that a solution to the second problem can be used to solve.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
Lecture 5 Turing Machines
CHAPTER 4 Decidability Contents Decidable Languages
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 6 Decidability Jan Maluszynski, IDA, 2007
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
Theory of Computing Lecture 20 MAS 714 Hartmut Klauck.
CS21 Decidability and Tractability
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
Turing Machines – Decidability Lecture 25 Section 3.1 Fri, Oct 19, 2007.
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.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 7 Undecidability cont. Jan Maluszynski, IDA, 2007
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
Turing -Recognizable vs. -Decidable
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
Decidability Decidable/Undecidable problems. Jaruloj Chongstitvatana Decidability2 Accepting: Definition Let T = (Q, , , , s) be a TM. T accepts.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 5 Reducibility Some slides are in courtesy.
Sofya Raskhodnikova Intro to Theory of Computation L ECTURE 20 Last time Mapping reductions Computation history method Today Computation history method.
The Church-Turing Thesis
Decidability.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
Theory of Computability
Busch Complexity Lectures: Reductions
Reductions.
Reductions Costas Busch - LSU.
Automata, Grammars and Languages
Intro to Theory of Computation
Decidability and Enumerability
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
CS154, Lecture 8: Undecidability, Mapping Reductions
CS154, Lecture 8: Undecidability, Mapping Reductions
Decidable Languages Costas Busch - LSU.
Decidability and Undecidability
CSC 4170 Theory of Computation Mapping Reducibility Section 5.3.
CSCI 2670 Introduction to Theory of Computing
More undecidable languages
Do not hand in your homework until the end of class
Theory of Computability
Theory of Computability
CSC 4170 Theory of Computation Mapping Reducibility Section 5.3.
More undecidable languages
Theory of Computability
More Undecidable Problems
Presentation transcript:

Mapping Reducibility Sipser 5.3 (pages 206-210)

Computable functions Definition 5.17: A function f:Σ*→Σ* is a computable function if some Turing machine M, on every input w, halts with just f(w) on its tape. Example: The increment function inc++:{1}* → {1}* is Turing-computable

Incrementing inc++:{1}* → {1}* Infinite tape 1 1 1 1 ⨆ ⨆ ⨆ ⨆ Finite control

Transforming machines F = "On input <M>: Construct the machine M∞ = "On input x: Run M on x. If M accepts, accept. If M rejects, loop." Output <M∞>."

Mapping reducibility Definition 5.20: Language A is mapping reducible to language B, written A ≤m B, if there is a computable function f:Σ* → Σ*, where for every w, w ∈ A ⇔ f(w) ∈ B A B f f

Problem reduction Theorem 5.22: If A ≤m B and B is decidable, then A is decidable. A B f f

And… the contrapositive Theorem 5.22: If A ≤m B and B is decidable, then A is decidable. Corollary 5.23: If A ≤m B and A is undecidable, then B is undecidable.

A familiar mapping reduction… ATM = {<M,w> | M is a TM and M accepts w} ≤m HALTTM = {<M,w> | M is a TM & M halts on input w} ATM HALTTM f <M,w> <M∞,w> f <M,w> <M∞,w>

ATM ≤m HALTTM F = "On input <M>: M∞ = "On input x: Construct the machine M∞ = "On input x: Run M on x. If M accepts, accept. If M rejects, loop." Output <M∞>." ATM HALTTM f <M,w> <M∞,w> f <M,w> <M∞,w>

Similarly… Theorem 5.28: If A ≤m B and B is Turing-recognizable, then A is Turing-recognizable. Theorem 5.29: If A ≤m B and A is not Turing-recognizable, then B is not Turing-recognizable.

Solvable, half-solvable, hopeless ATM ADFA ETM co-Turing- recognizable Turing- recognizable Turing-decidable

EQTM = {<M1,M2>| L(M1)=L(M2)} is hopeless Theorem 5.30: EQTM is neither Turing-recognizable nor co-Turing-recognizable Proof: What if we show ATM ≤m EQTM? ATM EQTM f <M,w> <M1,M2> f EQTM ATM <M,w> <M1,M2>

ATM ≤m EQTM G = "On input <M,w>: Construction the following two machines: M1 = "On any input: Accept.” M2 = "On any input: Run M on w. If it accepts, accept." Output <M1,M2>.” ATM EQTM f <M,w> <M1,M2>

EQTM is not Turing-recognizable Theorem 5.30: EQTM is neither Turing-recognizable nor co-Turing-recognizable Proof: Show ATM ≤m EQTM ATM EQTM f <M,w> <M1,M2> f EQTM ATM <M,w> <M1,M2>

ATM ≤m EQTM G = "On input <M,w>: Construction the following two machines: M1 = "On any input: Reject.” M2 = "On any input: Run M on w. If it accepts, accept." Output <M1,M2>.” ATM EQTM f <M,w> <M1,M2> f EQTM ATM <M,w> <M1,M2>

Solvable, half-solvable, hopeless EQTM ATM ADFA ETM co-Turing- recognizable Turing- recognizable Turing-decidable