CSCI 2670 Introduction to Theory of Computing

Slides:



Advertisements
Similar presentations
1 CSC3130 Formal Languages and Automata Theory Tutorial 9 Undecidable Problem KN Hung SHB 1026.
Advertisements

February 6, 2015CS21 Lecture 141 CS21 Decidability and Tractability Lecture 14 February 6, 2015.
Mapping Reducibility Sipser 5.3 (pages ).
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.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 5 Reducibility Contents Undecidable Problems from Language Theory.
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.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
CSCI 2670 Introduction to Theory of Computing November 4, 2004.
CSCI 2670 Introduction to Theory of Computing November 29, 2005.
CSCI 2670 Introduction to Theory of Computing October 12, 2005.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 7 Undecidability cont. Jan Maluszynski, IDA, 2007
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
Sofya Raskhodnikova Intro to Theory of Computation L ECTURE 20 Last time Mapping reductions Computation history method Today Computation history method.
Decidability.
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Reductions.
Undecidable Problems Costas Busch - LSU.
CSCI 2670 Introduction to Theory of Computing
Reductions Costas Busch - LSU.
Intro to Theory of Computation
CSE 105 theory of computation
CSC 4170 Theory of Computation Turing reducibility Section 6.3.
Reducibility The Chinese University of Hong Kong Fall 2010
CSCI 2670 Introduction to Theory of Computing
Intro to Theory of Computation
CSE 105 theory of computation
CS154, Lecture 10: Rice’s Theorem, Oracle Machines
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
CSE 105 theory of computation
CS154, Lecture 8: Undecidability, Mapping Reductions
CS154, Lecture 10: Rice’s Theorem, Oracle Machines
CS154, Lecture 8: Undecidability, Mapping Reductions
CSE 105 theory of computation
CSCI 2670 Introduction to Theory of Computing
CSC 4170 Theory of Computation Decidable languages Section 4.1.
CSCI 2670 Introduction to Theory of Computing
Reducability Sipser, pages
CSCI 2670 Introduction to Theory of Computing
CSC 4170 Theory of Computation Mapping Reducibility Section 5.3.
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
Do not hand in your homework until the end of class
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
CSE 105 theory of computation
Theory of Computability
Instructor: Aaron Roth
CSC 4170 Theory of Computation Mapping Reducibility Section 5.3.
Theory of Computability
CSCI 2670 Introduction to Theory of Computing
Intro to Theory of Computation
Theory of Computability
Instructor: Aaron Roth
CSE 105 theory of computation
CSE 105 theory of computation
Intro to Theory of Computation
Intro to Theory of Computation
CSE 105 theory of computation
CSE 105 theory of computation
Presentation transcript:

CSCI 2670 Introduction to Theory of Computing November 2, 2005

Agenda Yesterday Today Tomorrow Two undecidability proofs REGULARTM Rice’s Theorem Today Reductions (Section 5.3) Tomorrow Section 6.3 & part of 6.4 November 2, 2005

Announcements Announcements Quiz tomorrow Undecidability proofs Pizza party! You are all invited to my house for pizza and snacks Wednesday, November 9 at 6:30 PM Please send me an email and let me know if you want to come! Let me know of any special dietary requirements so I can accommodate everyone November 2, 2005

Reductions and decidability To prove a language is decidable, we have converted it to another language and used the decidability of that language Example – use decidability of EDFA to determine decidability of EQDFA Thus, we reduce the problem of determining if EQDFA is decidable to the problem of determining if EDFA is decidable November 2, 2005

Reductions and undecidability To prove a language is undecidable, we have assumed it’s decidable and found a contradiction Example – assume decidability of HALTTM and show ATM is decidable which is a contradiction In each case, we have to do a computation to convert one problem to another problem What kind of computations can we do? November 2, 2005

TM’s and computation TM’s can do more than just accept and reject strings They can perform functions Definition: A function f:* → * is a computable function if there is some TM M that, on every input w, halts with f(w) on the tape November 2, 2005

Examples The copying TM discussed several weeks ago Start with w on the tape, halt with ww on the tape Finding intersection of two DFA’s Start with <A,B> on the tape, where A and B are DFA’s, halt with <C> on the tape, where L(C) = L(A)  L(B) November 2, 2005

Mapping reducibility Definition: Language A is mapping reducible to language B, written AmB, if there is a computable function f:* → *, where for every w, w  A iff f(w)  B f B A November 2, 2005

Using mapping reductions Test whether w  A by finding a mapping reduction f from A to B and determining whether f(w)  B Example ALLDFA = {<A> | A is a DFA with L(A)=*} Let D = {<B> | B is a DFA} and let f:D→D where f(A) = Ā Ā is the DFA that accepts L(A) Then A  ALLDFA iff Ā  EDFA Use membership of Ā in EDFA to determine membership of A in ALLDFA November 2, 2005

Mapping reductions & decidability Theorem: If A m B and B is decidable, then A is decidable. Proof: Let M be a decider for B and let f be a reduction from A to B. Consider the following TM, N: N = “On input w: Compute f(w) Run M on f(w) and report M’s output” Then N decides A November 2, 2005

Example Let EV = {<A>| A is a DFA s.t. every wL(A) has an even number of 1’s} How can we prove EV is decidable using a mapping reduction? Consider the following DFA B 1 \{1} L(B) = {w * | w has an even number of 1’s} November 2, 2005

Mapping reduction of L Use EQDFA = {<A,B> | A and B are DFA’s with L(A) = L(B)} Mapping from L to EQDFA f(<A>) = <A,AB> A has an even number of 1’s if and only if L(A) = L(AB) I.e., A  EV iff f(A)  EQDFA November 2, 2005