Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.

Slides:



Advertisements
Similar presentations
Formal Models of Computation Part III Computability & Complexity
Advertisements

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.
Computability and Complexity 5-1 Classifying Problems Computability and Complexity Andrei Bulatov.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
The Halting Problem Sipser 4.2 (pages ).
Mapping Reducibility Sipser 5.3 (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.
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.
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
CHAPTER 3 The Church-Turing Thesis
CHAPTER 4 Decidability Contents Decidable Languages
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 6 Decidability Jan Maluszynski, IDA, 2007
Homework #9 Solutions.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
Theory of Computing Lecture 20 MAS 714 Hartmut Klauck.
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Reductions. Prof. Busch - LSU2 Problem is reduced to problem If we can solve problem then we can solve problem.
1 Reducibility. 2 Problem is reduced to problem If we can solve problem then we can solve problem.
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
CS 3813: Introduction to Formal Languages and Automata Chapter 12 Limits of Algorithmic Computation These class notes are based on material from our textbook,
 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.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 7 Undecidability cont. Jan Maluszynski, IDA, 2007
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 7 Time complexity Contents Measuring Complexity Big-O and small-o notation.
Turing -Recognizable vs. -Decidable
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
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.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 5 Reducibility Some slides are in courtesy.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary.
The Church-Turing Thesis Chapter Are We Done? FSM  PDA  Turing machine Is this the end of the line? There are still problems we cannot solve:
Decidability.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
The Acceptance Problem for TMs
CSCI 2670 Introduction to Theory of Computing
Busch Complexity Lectures: Reductions
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
Automata, Grammars and Languages
Reducibility The Chinese University of Hong Kong Fall 2010
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
Decidability and Undecidability
Undecidable problems:
Computability and Complexity
More undecidable languages
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
Theory of Computability
More undecidable languages
Decidability continued….
Theory of Computability
Automata, Grammars and Languages
More Undecidable Problems
Presentation transcript:

Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.

Automata & Formal Languages, Feodor F. Dragan, Kent State University 2 In this chapter we examine several additional unsolvable problems. In doing so we introduce the primary method for proving that problems are computationally unsolvable. It is called 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 the first problem. When A is reducible to B, solving A cannot be harder that solving B because a solution to B gives a solution to A. In terms of computability theory, if A is reducible to B and B is decidable then A also is decidable. Equivalently, if A is undecidable and reducible to B, B is undecidable. This is the key to proving that various problems are undecidable. Our method for proving that a problem is undecidable will be: show that some other problem already known to be undecidable reduces to it. We will consider the following problems (~ as membership in languages): Reducibility

Automata & Formal Languages, Feodor F. Dragan, Kent State University 3 We have seen that the acceptance problem for TMs is undecidable Consider the problem determining whether a Turing machine halts (by accepting or rejecting) on a given input. S = “on input, where M is a TM and w is a string: 1.Run TM R on input. 2.If R rejects, reject. 3.If R accepts, simulate M on w until it halts. 4.If M has accepted, accept; if M rejected, reject.” The Halting Problem for TMs. Theorem 5.1: is undecidable. We use undecidability of to prove the undecidability of by reducing to. Let assume that TM R decides We construct a TM S to decide Theorem 4.9: is undecidable. Clearly, if R decides, then S decides. Because is undecidable, is undecidable too.

Automata & Formal Languages, Feodor F. Dragan, Kent State University 4 The Emptiness Problem for the Language of a TM. Theorem 5.2: is undecidable. Let assume that TM R decides. We construct a TM S to decide Idea is for S to run R on input and see whether it accepts. If it does then L(M) is empty and hence M does not accept w. But if M rejects …(???) we still do not know whether M accepts w. Instead of running R on we run R on a modification of ( ). The only string M1 accepts is w, so its language is nonempty if and only if it accepts w. S = “on input, an encoding of a TM M and a string w: 1.Use the description of M and w to construct the following TM M1. M1 = “on input x: 1.If, reject. 2.If x = w, run M on input w and accept if M does.” 2.Run R on input. 3.If R accepts, reject; if R rejects, accept.” The test whether x = w is obvious; scan the input and compare it character by character with w to determine whether they are the same. Note that S must be able to compute a description of M1 from a description of M and w. It is able because it needs only add extra states to M that perform the x = w test. If R were a decider for, S would be a decider for which is impossible.

Automata & Formal Languages, Feodor F. Dragan, Kent State University 5 The Equivalence Problem for TMs. Theorem 5.4: is undecidable. We could prove it by a reduction from, but we use this opportunity to give an example of an undecidability proof by reduction from Let TM R decides and construct TM S to decide as follows. S = “on input, an encoding of a TM M: 1.Run R on input, where M1 is a TM that rejects all inputs. 2.If R accepts, accept; if R rejects, reject.” The problem is a special case of the problem wherein one of the machines is fixed to recognize the empty language. This idea makes giving the reduction easy. So, If R were a decider for, S would be a decider for, which is impossible. One can also show that is neither Turing-recognizable nor co-Turing-recognizable. Read also page 183 where a simple problem called Post Correspondence Problem is shown to be unsolvable by algorithms.