CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT 20077.1 Lecture 7 Undecidability cont. Jan Maluszynski, IDA, 2007

Slides:



Advertisements
Similar presentations
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 17: ProvingUndecidability.
Advertisements

INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
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.
Rice ’ s Theorem. Def: A property of the Turing-recognizable languages is simply a subset of all Turing- recognizable languages.
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.
February 6, 2015CS21 Lecture 141 CS21 Decidability and Tractability Lecture 14 February 6, 2015.
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 Lecture15: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
Algorithms Sipser 3.3 (pages ). CS 311 Mount Holyoke College 2 Computability Hilbert's Tenth Problem: Find “a process according to which it can.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
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 ).
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.
FLAC Lecture 19 Turing Machines and Real Life * Reductions Mihai Budiu March 3, 2000.
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
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.
Lecture 5 Turing Machines
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 1 Introduction Jan Maluszynski, IDA, 2007
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 6 Decidability Jan Maluszynski, IDA, 2007
Homework #9 Solutions.
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.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture NP-Completeness Jan Maluszynski, IDA, 2007
Theory of Computing Lecture 20 MAS 714 Hartmut Klauck.
CS21 Decidability and Tractability
February 4, 2015CS21 Lecture 131 CS21 Decidability and Tractability Lecture 13 February 4, 2015.
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.
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
MA/CSSE 474 Theory of Computation More Reduction Examples Non-SD Reductions.
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
 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 461 – Nov. 7 Decidability concepts –Countable = can number the elements  –Uncountable = numbering scheme impossible  –A TM undecidable –Language classes.
Turing -Recognizable vs. -Decidable
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.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability 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.
Turing Machines- Cont. Theory of Computation Lecture 11 Tasneem Ghnaimat.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
CSCI 2670 Introduction to Theory of Computing
Busch Complexity Lectures: Reductions
Reductions.
Reductions Costas Busch - LSU.
CS154, Lecture 10: Rice’s Theorem, Oracle Machines
CS154, Lecture 8: Undecidability, Mapping Reductions
CS154, Lecture 10: Rice’s Theorem, Oracle Machines
CS154, Lecture 8: Undecidability, Mapping Reductions
Decidability of logical theories
CSCI 2670 Introduction to Theory of Computing
Decidability and Undecidability
Undecidable problems:
Proposed in Turing’s 1936 paper
Decidability of logical theories
Theory of Computability
Theory of Computability
Theory of Computability
More Undecidable Problems
Presentation transcript:

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 7 Undecidability cont. Jan Maluszynski, IDA,

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Outline (Sipser 5.1,5.3, 6.2) 1.Reducibility 2.Examples of undecidable problems 3.Mapping reducibility 4.Decidability of Logical Theories

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Reduction techniques For proving B is undecidable Assume B is decidable Find an undecidable problem A that can be decided using the decision procedure for B A reducible to B Example: HALT TM = { | M is a TM and M halts on w} We show: A TM = { | M is a TM and M accepts w} is reducible to HALT TM

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Reduction techniques example Assume TM R decides HALT TM = On input run R on it: If R rejects – reject If R accepts ie. M halts on w: simulate M on w –If M accepts w – accept –If M rejects w - reject Thus with R we could decide A TM = { | M is a TM and M accepts w} But we know A TM is undecidable Hence R cannot exist and HALT TM is undecidable

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT E TM (emptiness) is undecidable E TM = { | M is a TM and L(M) is empty} Assume R decides E TM. Reduce A TM to E TM. Given M and w construct M1 that on any input x : If x = w simulates M on w Otherwise rejects x. Run R on : M1 is rejected iff M accepts w. Thus with R we could decide A TM = { | M is a TM and M accepts w} But we know A TM is undecidable Hence R cannot exist and E TM is undecidable

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Rice’s theorem Let P be any nontrivial property of the language of a Turing machine M. Nontrivial: it contains some but not all TM descriptions. Theorem: { | L(M) satisfies P} is undecidable e.g given M it is undecidable if L(M) is: -empty, -regular, -Context-free ….

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Mapping reducibility A function f:  *   * is computable if some TM M on every input w halts with f(w) on its tape Language A is mapping reducible to B written A  m B if there is a computable function f s.that for every w w  A  f(w)  B f is called reduction of A to B.

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Mapping reducibility cont. Theorem: If A  m B and A is undecidable then B is undecidable Example: f( ) = where M1 rejects all inputs reduces emptiness problem to TM equivalence

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Mapping reducibility cont. Theorem: If A  m B and A is not Turing-recognizable then B is not Turing-recognizable Remark: A  m B iff complement(A)  m complement(B) To prove B not Turing-recognizable show: A  m complement(B) for some undecidable A

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT TM equivalence is not T-recognizable Reduce A TM to (negation) EQ TM For given construct TMs: (M1 rejects all inputs) M3 accepts all inputs M2: On any input simulates M on w accepts if M accepts w 1. equivalent iff M does not accept w 2. equivalent iff M accepts w Hence: by (1) EQ TM not Turing-recognizable by (2) complement of EQ TM not Turing-recognizable

CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT More examples of undecidable languages Hilbert’s tenth problem: Does a given polynomial with integer coefficients has an integral root? Stated early 1900 proved undecidable 1970 N The language Th( N,+,  ) of true closed arithmetic formulae interpreted on natural numbers e.g.  x  y  z[x=y+z]