1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.

Slides:



Advertisements
Similar presentations
Formal Models of Computation Part III Computability & Complexity
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,
Variants of Turing machines
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.
Turing -Recognizable vs. -Decidable
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
1 COMP 382: Reasoning about algorithms Unit 9: Undecidability [Slides adapted from Amos Israeli’s]
1 CSC3130 Formal Languages and Automata Theory Tutorial 9 Undecidable Problem KN Hung SHB 1026.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Decidable A problem P is decidable if it can be solved by a Turing machine T that always halt. (We say that P has an effective algorithm.) Note that the.
Reducibility 2 Theorem 5.1 HALT TM is undecidable.
Computability and Complexity 5-1 Classifying Problems Computability and Complexity Andrei Bulatov.
1 Introduction to Computability Theory Lecture14: Recap Prof. Amos Israeli.
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.
Introduction to Computability Theory
Mapping Reducibility Sipser 5.3 (pages ).
1 Introduction to Computability Theory Lecture4: Non Regular Languages Prof. Amos Israeli.
Mapping Reducibility Sipser 5.3 (pages ). CS 311 Fall Computable functions Definition 5.17: A function f:Σ*→Σ* is a computable function.
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.
Lecture 8 Recursively enumerable (r.e.) languages
Fall 2004COMP 3351 The Chomsky Hierarchy. Fall 2004COMP 3352 Non-recursively enumerable Recursively-enumerable Recursive Context-sensitive Context-free.
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
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
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
1 Introduction to Computability Theory Lecture11: The Halting Problem Prof. Amos Israeli.
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
1 The Halting Problem and Decidability How powerful is a TM? Any program in a high level language can be simulated by a TM. Any algorithmic procedure carried.
MA/CSSE 474 Theory of Computation Enumerability Reduction.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 7 Undecidability cont. Jan Maluszynski, IDA, 2007
Turing -Recognizable vs. -Decidable
Overview of the theory of computation Episode 3 0 Turing machines The traditional concepts of computability, decidability and recursive enumerability.
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.
1 Chapter 9 Undecidability  Turing Machines Coded as Binary Strings  Universal Turing machine  Diagonalizing over Turing Machines  Problems as Languages.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 5 Reducibility Some slides are in courtesy.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
The Acceptance Problem for TMs
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
Busch Complexity Lectures: Reductions
Undecidable Problems Costas Busch - LSU.
Lecture12 The Halting Problem
Reductions Costas Busch - LSU.
Automata, Grammars and Languages
Reducibility The Chinese University of Hong Kong Fall 2010
Intro to Theory of Computation
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
Computability and Complexity
CSC 4170 Theory of Computation Mapping Reducibility Section 5.3.
CSCI 2670 Introduction to Theory of Computing
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:

1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli

So far, we presented several reductions: From to, from to, from to, from to, and several other. Each of these reductions had some special form not shared with the others. Can we generalize? Mapping Reductions 2

Mapping reductions constitute the generalization we are looking for. They are always in a specified form which: 1.Preserves the intrinsic difficulty of finding a reduction. 2.Ease the “red tape” requirements. Mapping Reductions 3

In other words: Assume we want to prove that B is undecidable by reduction from A that is known to be undecidable. If our reduction has the form of a Mapping reduction then the proof is complete. Nothing else is required. Mapping Reductions 4

The idea of a mapping reduction is very simple: If the instances (candidate elements) of one language, say A, are mapped to the instances of another language, say B, by a computable mapping M in a way that iff, then a decider for B can be used to devise a decider for A. Mapping Reductions 5

The sought for decider for A works as follows: Upon input I do: 1.Compute. 2.Use the decider for B to determine whether. 3.If accept - otherwise - reject. Mapping Reductions 6

This scheme works but there is one delicate point here. Can you see where it is? The mapping must be computable. Given the input I, your ordinary Turing machine must be able to compute. For this we need the notion of Computable Functions. Mapping Reductions 7

Let be an alphabet: A function is a computable function if there exists a TM, M such that for every, if M computes with input w, it halts with on its tape. Computable Functions 8

1. Let m and n be natural numbers, let be a string encoding of m and n, and let be the string representing their sum. The function, is computable. 2. The function is a computable function. Can you devise TM-s to compute f and g ? Examples of Computable Functions 9

3. Let be an encoding of TM M and let be an encoding of another TM M’ satisfying: TM M’ never makes four consecutive steps in the same head direction. The function t defined below is computable: Examples of Computable Functions 10

In the reduction from to - TM M from the input to was modified by TM S, the decider to TM s.t. all ending computations on M would become accepting computations on. Since was carried out by TM S, it is obviously a computable function. Use of Comp. Func. for Reductions 11

Another example is the reduction from to - TM M from the input to, was modified by TM S, to TM s.t. is regular iff. Once again, this is a computable function. Now we turn to define mapping reductions: Use of Comp. Func. for Reductions 12

Let A and B be two languages over. A computable function is a mapping reduction from A to B if the following holds: For each, iff. The function f is called reduction of A to B. The arguments of the reduction are often called instances. Mapping Reductions 13

If there exists a mapping reduction from A to B, We say that A is mapping reducible to B and denote it by. A pictorial illustration of a mapping reduction appears in the next slide. Mapping Reductions 14

. A Pictorial Illustration of_______ 15

Assume that. Can we say something about the relationship between and ? Answer: Yes An Observation about__and_____ 16

If language A is mapping reducible to language B, then a solution for B, can be used to derive a solution for A. This fact is made formal in the following theorem: Using Mapping Reductions 17

If and B is decidable, then A is decidable. Theorem 18

Let M be a decider for B and let f be the reduction from A to B. Consider TM N : N= “On input w : 1. Compute. 2. Run M on and output whatever M outputs. “ Clearly N accepts iff. QED Proof 19

If and A is undecidable, then B is undecidable. Corollary 20

The previous corollary is our main tool for proving undecidability. Notice that in order to prove B undecidable we reduce from A which is known to be undecidable to B. The reduction direction is often a source of errors. A similar tool is used in Complexity theory. Discussion 21

On the previous lecture we proved that is undecidable. Now, we prove this theorem once more by demonstrating a mapping reduction from to. Revisited 22

Theorem The language Is undecidable. Revisited 23

Proof The proof is by reduction from. In the next slide we show that. By the previous corollary it follows that is undecidable. Revisited 24

The mapping reduction is presented by TM F : F= “On input : 1. Construct TM M’. M’= “On input x : 1. Run M on x. 2. if M accepts accept. 3. If M rejects, enter a loop.” 2. Output.” Mapping Reduction from to__ 25

It is not hard to see that iff. In other words:. Since is undecidable, the previous corollary implies that is undecidable too. Proof (cont.) 26

What happens if the input does not contain a valid description of a TM? By the specification of we know that in this case. Therefore in this case TM F should output any string s satisfying. The Halting Problem Revisited 27

Theorem The language Is undecidable. Revisited 28

Proof The proof is by reduction from which is known to be undecidable. In the next slide we show that. By the previous corollary it follows that is undecidable. Revisited 29

Let be an encoding of a TM that rejects all its inputs. The mapping f is defined as follows: For each instance of,,. It is not hard to verify that Meaning:. QED Mapping Reduction from to__ 30

If and B is Turing recognizable, then A is Turing recognizable. Theorem 31

Let M be a decider for B and let f be the reduction from A to B. Consider TM N : N= “On input w : 1. Compute. 2. Run M on and output whatever M outputs.” Clearly N accepts iff. QED Proof 32 Turing Recognizer N recognizes B. - if M halts,

If and A is not Turing recognizable, then B is not Turing recognizable. Corollary 33

Theorem is neither Turing recognizable nor co- Turing recognizable. Reminder A language L is co-Turing recognizable if its complement,, is Turing recognizable. The Status of______ 34

If by a mapping f, then by the same mapping it holds that. Since we know that is not Turing recognizable, we can prove that language A is not Turing recognizable by reducing to. Proof 35

Now we use the previous remark and prove that is not Turing recognizable, by showing that. Since, we conclude that and since we know that is not Turing recognizable we conclude that so is. Proof 36

F= “ on input, where M is a TM: 1. Construct that accepts on any input and that accepts if M accepts w. 2. Output. It is not hard to see that F computes a reduction from to. Proof 37

G= “ on input, where M is a TM: 1. Construct that rejects on any input and that accepts if M accepts w. 2. Output. It is not hard to see that G computes a reduction from to. Proof 38

Since we conclude that is not Turing recognizable. Since we conclude that is not co-Turing recognizable, hence is not Turing recognizable. QED Proof 39