Undecidable problems:

Slides:



Advertisements
Similar presentations
Fall 2006Costas Busch - RPI1 Reductions. Fall 2006Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
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,
Rice ’ s Theorem. Def: A property of the Turing-recognizable languages is simply a subset of all Turing- recognizable languages.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Courtesy Costas Busch - RPI1 More Applications of the Pumping Lemma.
Costas Busch - RPI1 Undecidable problems for Recursively enumerable languages continued…
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
Recursively Enumerable and Recursive Languages
Fall 2006Costas Busch - RPI1 The Post Correspondence Problem.
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.
Fall 2006Costas Busch - RPI1 Non-Deterministic Finite Automata.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
Costas Busch - LSU1 Non-Deterministic Finite Automata.
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 More Applications of the Pumping Lemma.
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.
Prof. Busch - LSU1 NFAs accept the Regular Languages.
A Universal Turing Machine
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
Regular Expressions Costas Busch - LSU.
Recursively Enumerable and Recursive Languages
NP-complete Languages
Costas Busch - LSU1 The Post Correspondence Problem.
Costas Busch - LSU1 PDAs Accept Context-Free Languages.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Another famous undecidable problem: The halting problem.
1 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Decidability.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
A Universal Turing Machine
Recursively Enumerable and Recursive Languages
Non-regular languages
Properties of Regular Languages
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
NPDAs Accept Context-Free Languages
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
Regular Expressions Prof. Busch - LSU.
Non-Deterministic Finite Automata
Non-Deterministic Finite Automata
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
Space Complexity Costas Busch - LSU.
The Post Correspondence Problem
A Universal Turing Machine
Elementary Questions about Regular Languages
The Off-Line Machine Input File read-only (once) Input string
Turing acceptable languages and Enumerators
Computability and Complexity
Proposed in Turing’s 1936 paper
Formal Languages, Automata and Models of Computation
More Applications of the Pumping Lemma
DPDA Deterministic PDA
More Undecidable Problems
The Chomsky Hierarchy Costas Busch - LSU.
Presentation transcript:

Undecidable problems: RICE’s Theorem Undecidable problems: is empty? is regular? has size 2? This can be generalized to all non-trivial properties of Turing-acceptable languages Costas Busch - LSU

Non-trivial property: A property possessed by some Turing-acceptable languages but not all Example: : is empty? YES NO NO Costas Busch - LSU

More examples of non-trivial properties: : is regular? YES YES NO : has size 2? NO NO YES Costas Busch - LSU

A property possessed by ALL Turing-acceptable languages Trivial property: A property possessed by ALL Turing-acceptable languages Examples: : has size at least 0? True for all languages : is accepted by some Turing machine? True for all Turing-acceptable languages Costas Busch - LSU

We can describe a property as the set of languages that possess the property If language has property then Example: : is empty? YES NO NO Costas Busch - LSU

Example: Suppose alphabet is : has size 1? NO YES NO NO Costas Busch - LSU

Non-trivial property problem Input: Turing Machine Question: Does have the non-trivial property ? Corresponding language: Costas Busch - LSU

Rice’s Theorem: is undecidable Proof: Reduce (membership problem) to (the non-trivial property problem is unsolvable) Proof: Reduce (membership problem) to or Costas Busch - LSU

We examine two cases: Case 1: Examples: : is empty? : is regular? : has size 2? Costas Busch - LSU

Case 1: Since is non-trivial, there is a Turing-acceptable language such that: Let be the Turing machine that accepts Costas Busch - LSU

Reduce (membership problem) to Costas Busch - LSU

Decider for Reduction Compute Decider Given the reduction, membership problem decider Decider for Non-trivial property problem decider Reduction YES YES Compute Decider NO NO Given the reduction, if is decidable, then is decidable A contradiction! since is undecidable Costas Busch - LSU

We only need to build the reduction: Compute So that: Costas Busch - LSU

Construct from : Tape of input string yes yes Turing Machine Accept Write on tape, and accepts ? Simulate on input Costas Busch - LSU

For this we can run machine , that accepts language , with input string Turing Machine Accept yes yes Write on tape, and accepts ? Simulate on input Costas Busch - LSU

yes yes accepts does not accept Turing Machine Accept Write on tape, and accepts ? Simulate on input Prof. Busch - LSU Costas Busch - LSU 16

Therefore: accepts Equivalently: Costas Busch - LSU

Case 2: Since is non-trivial, there is a Turing-acceptable language such that: Let be the Turing machine that accepts Costas Busch - LSU

Reduce (membership problem) to Costas Busch - LSU

Decider for Reduction Compute Decider Given the reduction, membership problem decider Decider for Non-trivial property problem decider Reduction YES YES Compute Decider NO NO Given the reduction, if is decidable, then is decidable A contradiction! since is undecidable Costas Busch - LSU

We only need to build the reduction: Compute So that: Costas Busch - LSU

Construct from : Tape of input string yes yes Turing Machine Accept Write on tape, and accepts ? Simulate on input Costas Busch - LSU

yes yes accepts does not accept Turing Machine Accept Write on tape, and accepts ? Simulate on input Costas Busch - LSU

Therefore: accepts Equivalently: END OF PROOF Costas Busch - LSU