More Undecidable Problems

Slides:



Advertisements
Similar presentations
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,
Advertisements

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]
February 6, 2015CS21 Lecture 141 CS21 Decidability and Tractability Lecture 14 February 6, 2015.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…
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.
Costas Busch - RPI1 Undecidable problems for Recursively enumerable languages continued…
Lecture 8 Recursively enumerable (r.e.) languages
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
Computability and Complexity 7-1 Computability and Complexity Andrei Bulatov Recursion Theorem.
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
Fall 2004COMP 3351 The Chomsky Hierarchy. Fall 2004COMP 3352 Non-recursively enumerable Recursively-enumerable Recursive Context-sensitive Context-free.
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
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.
Cs3102: Theory of Computation Class 18: Proving Undecidability Spring 2010 University of Virginia David Evans.
MA/CSSE 474 Theory of Computation More Reduction Examples Non-SD Reductions.
1 Undecidability Reading: Chapter 8 & 9. 2 Decidability vs. Undecidability There are two types of TMs (based on halting): (Recursive) TMs that always.
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
Lecture 21 Reducibility. Many-one reducibility For two sets A c Σ* and B c Γ*, A ≤ m B if there exists a Turing-computable function f: Σ* → Γ* such that.
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.
1 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Decidability.
Decidability and Undecidability Proofs
CIS Automata and Formal Languages – Pei Wang
Recursively Enumerable and Recursive Languages
Automata, Grammars and Languages
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
FORMAL LANGUAGES AND AUTOMATA THEORY
Reductions.
Undecidable Problems Costas Busch - LSU.
Lecture12 The Halting Problem
Reductions Costas Busch - LSU.
LIMITS OF ALGORITHMIC COMPUTATION
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
More Undecidable Problems
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
Decidability Turing Machines Coded as Binary Strings
Decidable/Undecidable problems
Decidability and Undecidability
Decidability Turing Machines Coded as Binary Strings
Undecidable problems:
Computability and Complexity
Proposed in Turing’s 1936 paper
Formal Languages, Automata and Models of Computation
Instructor: Aaron Roth
Subject Name: FORMAL LANGUAGES AND AUTOMATA THEORY
Decidability continued….
Cpt S 317: Spring 2009 Reading: Chapter 8 & 9
Instructor: Aaron Roth
Automata, Grammars and Languages
CIS Automata and Formal Languages – Pei Wang
Presentation transcript:

More Undecidable Problems Rice’s Theorem Post’s Correspondence Problem Some Real Problems

Properties of Languages Any set of languages is a property of languages. Example: The infiniteness property is the set of infinite languages.

Properties of Langauges – (2) As always, languages must be defined by some descriptive device. The most general device we know is the TM. Thus, we shall think of a property as a problem about Turing machines. Let LP be the set of binary TM codes for TM’s M such that L(M) has property P.

Trivial Properties There are two (trivial ) properties P for which LP is decidable. The always-false property, which contains no RE languages. The always-true property, which contains every RE language. Rice’s Theorem: For every other property P, LP is undecidable.

Plan for Proof of Rice’s Theorem Lemma needed: recursive languages are closed under complementation. We need the technique known as reduction, where an algorithm converts instances of one problem to instances of another. Then, we can prove the theorem.

Closure of Recursive Languages Under Complementation If L is a language with alphabet Σ*, then the complement of L is Σ* - L. Denote the complement of L by Lc. Lemma: If L is recursive, so is Lc. Proof: Let L = L(M) for a TM M. Construct M’ for Lc. M’ has one final state, the new state f.

Proof – Concluded M’ simulates M. But if M enters an accepting state, M’ halts without accepting. If M halts without accepting, M’ instead has a move taking it to state f. In state f, M’ halts.

Reductions A reduction from language L to language L’ is an algorithm (TM that always halts) that takes a string w and converts it to a string x, with the property that: x is in L’ if and only if w is in L.

TM’s as Transducers We have regarded TM’s as acceptors of strings. But we could just as well visualize TM’s as having an output tape, where a string is written prior to the TM halting. Such a TM translates its input to its output.

Reductions – (2) If we reduce L to L’, and L’ is decidable, then the algorithm for L’ + the algorithm of the reduction shows that L is also decidable. Used in the contrapositive: If we know L is not decidable, then L’ cannot be decidable.

Reductions – Aside This form of reduction is not the most general. Example: We “reduced” Ld to Lu, but in doing so we had to complement answers. More in NP-completeness discussion on Karp vs. Cook reductions.

Proof of Rice’s Theorem We shall show that for every nontrivial property P of the RE languages, LP is undecidable. We show how to reduce Lu to LP. Since we know Lu is undecidable, it follows that LP is also undecidable.

The Reduction Our reduction algorithm must take M and w and produce a TM M’. L(M’) has property P if and only if M accepts w. M’ has two tapes, used for: Simulates another TM ML on the input to M’. Simulates M on w. Note: neither M, ML, nor w is input to M’.

The Reduction – (2) Assume that  does not have property P. If it does, consider the complement of P, which would also be decidable by the lemma. Let L be any language with property P, and let ML be a TM that accepts L. M’ is constructed to work as follows (next slide).

Design of M’ On the second tape, write w and then simulate M on w. If M accepts w, then simulate ML on the input x to M’, which appears initially on the first tape. M’ accepts its input x if and only if ML accepts x.

Action of M’ if M Accepts w Simulate ML on input x On accept Simulate M on input w x Accept iff x is in ML

Design of M’ – (2) Suppose M accepts w. Then M’ simulates ML and therefore accepts x if and only if x is in L. That is, L(M’) = L, L(M’) has property P, and M’ is in LP.

Design of M’ – (3) Suppose M does not accept w. Then M’ never starts the simulation of ML, and never accepts its input x. Thus, L(M’) = , and L(M’) does not have property P. That is, M’ is not in LP.

Action of M’ if M Does not Accept w Simulate M on input w Never accepts, so nothing else happens and x is not accepted x

Design of M’ – Conclusion Thus, the algorithm that converts M and w to M’ is a reduction of Lu to LP. Thus, LP is undecidable.

Picture of the Reduction Accept iff M accepts w A real reduction algorithm M, w Hypothetical algorithm for property P M’ Otherwise halt without accepting This would be an algorithm for Lu, which doesn’t exist

Applications of Rice’s Theorem We now have any number of undecidable questions about TM’s: Is L(M) a regular language? Is L(M) a CFL? Does L(M) include any palindromes? Is L(M) empty? Does L(M) contain more than 1000 strings? Etc., etc.