February 4, 2015CS21 Lecture 131 CS21 Decidability and Tractability Lecture 13 February 4, 2015.

Slides:



Advertisements
Similar presentations
Pushdown Automata Chapter 12. Recognizing Context-Free Languages Two notions of recognition: (1) Say yes or no, just like with FSMs (2) Say yes or no,
Advertisements

CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
February 6, 2015CS21 Lecture 141 CS21 Decidability and Tractability Lecture 14 February 6, 2015.
Reducibility 2 Theorem 5.1 HALT TM is undecidable.
CS21 Decidability and Tractability
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 Lecture12: Reductions Prof. Amos Israeli.
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.
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
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.
Decidable and undecidable problems deciding regular languages and CFL’s Undecidable problems.
CS 310 – Fall 2006 Pacific University CS310 Decidability Section 4.1/4.2 November 10, 2006.
Linear Bounded Automata LBAs
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.
January 28, 2015CS21 Lecture 101 CS21 Decidability and Tractability Lecture 10 January 28, 2015.
CS21 Decidability and Tractability
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.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
MA/CSSE 474 Theory of Computation More Reduction Examples Non-SD Reductions.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the.
 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
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.
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata (LBAs) are the same as Turing Machines with one difference: The input string tape space is the.
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.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Decidable.
February 1, 2016CS21 Lecture 121 CS21 Decidability and Tractability Lecture 12 February 1, 2016.
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Reductions.
Reductions Costas Busch - LSU.
Automata, Grammars and Languages
CS21 Decidability and Tractability
Intro to Theory of Computation
MCC 2093 Advanced Theoretical Computer Science
Intro to Theory of Computation
Summary.
CS154, Lecture 8: Undecidability, Mapping Reductions
CS154, Lecture 10: Rice’s Theorem, Oracle Machines
CS154, Lecture 8: Undecidability, Mapping Reductions
Computability & Complexity I
Decidable Languages Costas Busch - LSU.
Undecidable problems:
Reducability Sipser, pages
CS21 Decidability and Tractability
CS21 Decidability and Tractability
CS21 Decidability and Tractability
CS21 Decidability and Tractability
Decidability and Tractability
CS21 Decidability and Tractability
CS21 Decidability and Tractability
Theory of Computability
Theory of Computability
Instructor: Aaron Roth
Theory of Computability
Presentation transcript:

February 4, 2015CS21 Lecture 131 CS21 Decidability and Tractability Lecture 13 February 4, 2015

CS21 Lecture 132 Outline many-one reductions undecidable problems –computation histories –surprising contrasts between decidable/undecidable Rice’s Theorem

February 4, 2015CS21 Lecture 133 Definition of reduction Can you reduce co-HALT to HALT? We know that HALT is RE Does this show that co-HALT is RE? –recall, we showed co-HALT is not RE our current notion of reduction cannot distinguish complements

February 4, 2015CS21 Lecture 134 Definition of reduction More refined notion of reduction: –“many-one” reduction (commonly) –“mapping” reduction (book) yes no yes no AB reduction from language A to language B f f

February 4, 2015CS21 Lecture 135 Definition of reduction function f should be computable Definition: f : Σ*→ Σ* is computable if there exists a TM M f such that on every w  Σ* M f halts on w with f(w) written on its tape. yes no yes no AB f f

February 4, 2015CS21 Lecture 136 Definition of reduction Notation: “A many-one reduces to B” is written A ≤ m B –“yes maps to yes and no maps to no” means: w  A maps to f(w)  B & w  A maps to f(w)  B B is at least as “hard” as A –more accurate: B at least as “expressive” as A

February 4, 2015CS21 Lecture 137 Using reductions Definition: A ≤ m B if there is a computable function f such that for all w w  A  f(w)  B Theorem: if A ≤ m B and B is decidable then A is decidable Proof: –decider for A: on input w, compute f(w), run decider for B, do whatever it does.

February 4, 2015CS21 Lecture 138 Using reductions Main use: given language NEW, prove it is undecidable by showing OLD ≤ m NEW, where OLD known to be undecidable –proof by contradiction –if NEW decidable, then OLD decidable –OLD undecidable. Contradiction. common to reduce in wrong direction. review this argument to check yourself.

February 4, 2015CS21 Lecture 139 Using reductions Theorem: if A ≤ m B and B is RE then A is RE Proof: –TM for recognizing A: on input w, compute f(w), run TM that recognizes B, do whatever it does. Main use: given language NEW, prove it is not RE by showing OLD ≤ m NEW, where OLD known to be not RE.

February 4, 2015CS21 Lecture 1310 Many-one reduction example Showed E TM undecidable. Consider: co-E TM = { : L(M)  Ø} yes no yes no A TM co-E TM f f f( ) = where M’ is TM that on input x, if x  w, then reject else simulate M on x, and accept if M does f clearly computable

February 4, 2015CS21 Lecture 1311 Many-one reduction example yes maps to yes? –if  A TM then f(M, w)  co-E TM no maps to no? –if  A TM then f(M, w)  co-E TM yes no yes no A TM co-E TM f f f( ) = where M’ is TM that on input x, if x  w, then reject else simulate M on x, and accept if M does f clearly computable

February 4, 2015CS21 Lecture 1312 Undecidable problems Theorem: The language REGULAR = { : M is a TM and L(M) is regular} is undecidable. Proof: –reduce from A TM (i.e. show A TM ≤ m REGULAR) –what should f( ) produce?

February 4, 2015CS21 Lecture 1313 Undecidable problems Proof: –f( ) = described below on input x: if x has form 0 n 1 n, accept else simulate M on w and accept x if M accepts is f computable? YES maps to YES?  A TM  f(M, w)  REGULAR NO maps to NO?  A TM  f(M, w)  REGULAR

February 4, 2015CS21 Lecture 1314 Dec. and undec. problems the boundary between decidability and undecidability is often quite delicate –seemingly related problems –one decidable –other undecidable We will see two examples of this phenomenon next.

February 4, 2015CS21 Lecture 1315 Computation histories Recall configuration of a TM: string uqv with u,v   *, q  Q The sequence of configurations M goes through on input w is a computation history of M on input w –may be accepting, or rejecting –reserve the term for halting computations –nondeterministic machines may have several computation histories for a given input.

February 4, 2015CS21 Lecture 1316 Linear Bounded Automata LBA definition: TM that is prohibited from moving head off right side of input. –machine prevents such a move, just like a TM prevents a move off left of tape How many possible configurations for a LBA M on input w with |w| = n, m states, and p = |  | ? –counting gives: mnp n

February 4, 2015CS21 Lecture 1317 Dec. and undec. problems two problems we have seen with respect to TMs, now regarding LBAs: –LBA acceptance: A LBA = { : LBA M accepts input w} –LBA emptiness: E LBA = { : LBA M has L(M) = Ø} Both decidable? both undecidable? one decidable?

February 4, 2015CS21 Lecture 1318 Dec. and undec. problems Theorem: A LBA is decidable. Proof: –input where M is a LBA –key: only mnp n configurations –if M hasn’t halted after this many steps, it must be looping forever. –simulate M for mnp n steps –if it halts, accept or reject accordingly, –else reject since it must be looping

February 4, 2015CS21 Lecture 1319 Dec. and undec. problems Theorem: E LBA is undecidable. Proof: –reduce from co-A TM (i.e. show co-A TM ≤ m E LBA ) –what should f( ) produce? –Idea: produce LBA B that accepts exactly the accepting computation histories of M on input w

February 4, 2015CS21 Lecture 1320 Dec. and undec. problems Proof: –f( ) = described below on input x, check if x has form #C 1 #C 2 #C 3 #...#C k # check that C 1 is the start configuration for M on input w check that C i  1 C i+1 check that C k is an accepting configuration for M is B an LBA? is f computable? YES maps to YES?  co-A TM  f(M, w)  E LBA NO maps to NO?  co-A TM  f(M, w)  E LBA

February 4, 2015CS21 Lecture 1321 Dec. and undec. problems two problems regarding Context-Free Grammars: –does a CFG generate all strings: ALL CFG = { : G is a CFG and L(G) = Σ*} –CFG emptiness: E CFG = { : G is a CFG and L(G) = Ø} Both decidable? both undecidable? one decidable?