CSCI 2670 Introduction to Theory of Computing

Slides:



Advertisements
Similar presentations
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Advertisements

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 CSC3130 Formal Languages and Automata Theory Tutorial 9 Undecidable Problem KN Hung SHB 1026.
CSCI 2670 Introduction to Theory of Computing September 13, 2005.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
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.
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.
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
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.
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.
CSCI 2670 Introduction to Theory of Computing November 29, 2005.
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
CSCI 2670 Introduction to Theory of Computing October 12, 2005.
 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
Turing -Recognizable vs. -Decidable
CSCI 2670 Introduction to Theory of Computing October 13, 2005.
THE HALTING PROBLEM - PROOF. Review  What makes a problem decidable?  3 properties of an efficient algorithm?  What is the meaning of “complete”, “mechanistic”,
Automata, Grammars and Languages
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
FORMAL LANGUAGES AND AUTOMATA THEORY
Reductions.
CSCI 2670 Introduction to Theory of Computing
Reductions Costas Busch - LSU.
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
CSCI 2670 Introduction to Theory of Computing
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
CSE 105 theory of computation
Decidable Languages Costas Busch - LSU.
Undecidable problems:
CSCI 2670 Introduction to Theory of Computing
Proposed in Turing’s 1936 paper
Intro to Theory of Computation
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
Decidability of logical theories
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
More undecidable languages
Turing -Recognizable vs. -Decidable
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
Automata, Grammars and Languages
More Undecidable Problems
Intro to Theory of Computation
CSE 105 theory of computation
Presentation transcript:

CSCI 2670 Introduction to Theory of Computing November 1, 2005

Agenda Last week Today Test & undecidability Review one undecidability proof Rice’s Theorem Reductions (Section 5.3) November 1, 2005

Announcements Announcements Homework due next Tuesday (11/8) 5.7, 5.12 (do not use Rice’s Theorem), 5.20, 5.22, 5.30 b Old text 5.7 Get handout for 5.12, 5.20, 5.22 and 5.30 b November 1, 2005

An undecidable language Let REGULARTM = {<M> | M is a TM and L(M) is a regular language} Theorem: REGULARTM is undecidable Proof: Assume R decides REGULARTM and use R to decide ATM (reduce the ATM problem to the REGULARTM problem). As before, make a new TM, M2, that accepts a regular language iff M accepts w. November 1, 2005

Proof (cont.) Consider the following TM S = “On input <M,w> Construct the following TM M2 M2 = “On input x If x = 0n1n for some n, accept Otherwise, run M on w. If M accepts w, accept” Run R on M2 (accepts iff L(M2) is a RL) If R accepts, accept; if R rejects, reject” S decides ATM if R decides REGULARTM L(M2) = 0n1n if M does not accept w L(M2) = all strings if M accepts w November 1, 2005

Insight The TM M2 is specially designed to be regular if and only if M accepts w Then call TM that decides REGULARTM on M2 November 1, 2005

Rice’s theorem Determining whether a TM satisfies any non-trivial property is undecidable A property is non-trivial if: It depends only on the language of M, and Some, but not all, Turing machines have the property Examples: Is L(M) regular? A CFG? Finite? November 1, 2005

Proof of Rice’s theorem Assume there is some decidable non-trivial property P for Turing machines Assume TM’s that accept  do not satisfy P If they do, just consider P November 1, 2005

Proof of Rice’s theorem Let TM B decide P On input <M>, B accepts iff TM M has property P Let MP be a TM that satisfies P Since P is non-trivial, there is some MP satisfying P Use B and MP to decide ATM Create a new TM S that decides ATM using B and MP November 1, 2005

ATM decider using MP S = “On input <M,w> Create the following TM N N = “On input x Run M on w until it accepts If M accepts w, run MP on x If MP accepts x, accept; if MP rejects x, reject” Run B on <N(<M,w>)> If B accepts, accept; if B rejects, reject” L(N) = L(MP) if M accepts w; otherwise L(N) =  S decides ATM if B decides TM’s satisfying P Therefore, B cannot exist November 1, 2005