Reductions Costas Busch - LSU.

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 16 Deterministic Turing Machine (DTM) Finite Control tape head.
Variants of Turing machines
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.
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 Non Deterministic Automata.
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
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Rules have form String of variables and terminals String of variables and terminals.
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.
Linear Bounded Automata LBAs
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 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
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.
1 Turing’s Thesis. 2 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine (1930)
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
D E C I D A B I L I T Y 1. 2 Objectives To investigate the power of algorithms to solve problems. To explore the limits of algorithmic solvability. To.
Regular Expressions Costas Busch - LSU.
Recursively Enumerable and Recursive Languages
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.
Costas Busch - LSU1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals.
Costas Busch - LSU1 The Post Correspondence Problem.
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.
Recursively Enumerable Languages
Recursively Enumerable and Recursive Languages
Busch Complexity Lectures: Turing Machines
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Reductions.
Undecidable Problems Costas Busch - LSU.
Automata, Grammars and Languages
LIMITS OF ALGORITHMIC COMPUTATION
NPDAs Accept Context-Free Languages
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
CS154, Lecture 8: Undecidability, Mapping Reductions
CS154, Lecture 8: Undecidability, Mapping Reductions
Non-Deterministic Finite Automata
Non-Deterministic Finite Automata
Decidable Languages Costas Busch - LSU.
The Post Correspondence Problem
The Off-Line Machine Input File read-only (once) Input string
Turing acceptable languages and Enumerators
Undecidable problems:
Computability and Complexity
DPDA Deterministic PDA
Theory of Computability
Theory of Computability
Decidability continued….
Automata, Grammars and Languages
Presentation transcript:

Reductions Costas Busch - LSU

There is a deterministic Turing machine Computable function : There is a deterministic Turing machine which for any input string computes and writes it on the tape Costas Busch - LSU

Problem is reduced to problem If we can solve problem then we can solve problem Costas Busch - LSU

function (reduction) such that: Definition: Language is reduced to language There is a computable function (reduction) such that: Costas Busch - LSU

If: Language is reduced to and language is decidable Theorem 1: If: Language is reduced to and language is decidable Then: is decidable Proof: Basic idea: Build the decider for using the decider for Costas Busch - LSU

Decider for Decider Reduction for From reduction: END OF PROOF Input YES Input string YES accept accept (halt) Decider for Reduction NO NO reject reject (halt) From reduction: END OF PROOF Costas Busch - LSU

Example: is reduced to: Costas Busch - LSU

We only need to construct: Reduction Turing Machine for reduction DFA Costas Busch - LSU

Let be the language of DFA Reduction Turing Machine for reduction DFA construct DFA by combining and so that: Costas Busch - LSU

Costas Busch - LSU

Decider for Reduction Input string Decider YES YES NO NO Costas Busch - LSU

If: Language is reduced to and language is undecidable Theorem 2: If: Language is reduced to and language is undecidable Then: is undecidable Proof: Suppose is decidable Using the decider for build the decider for Contradiction! Costas Busch - LSU

If is decidable then we can build: Decider for YES Input string YES accept accept Decider for (halt) Reduction NO NO reject reject (halt) CONTRADICTION! END OF PROOF Costas Busch - LSU

To prove that language is undecidable we only need to reduce Observation: To prove that language is undecidable we only need to reduce a known undecidable language to Costas Busch - LSU

while processing input string ? State-entry problem Input: Turing Machine State String Question: Does enter state while processing input string ? Corresponding language: (while processing) Costas Busch - LSU

(state-entry problem is unsolvable) Theorem: is undecidable (state-entry problem is unsolvable) Proof: Reduce (halting problem) to (state-entry problem) Costas Busch - LSU

Decider for Decider Reduction Given the reduction, A contradiction! Halting Problem Decider Decider for state-entry problem decider YES YES Decider Reduction 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: So that: Costas Busch - LSU

For the reduction, construct from : special halt state halting states A transition for every unused tape symbol of Costas Busch - LSU

special halt state halting states halts halts on state Costas Busch - LSU

Therefore: halts on input halts on state on input Equivalently: END OF PROOF Costas Busch - LSU

Blank-tape halting problem Input: Turing Machine Question: Does halt when started with a blank tape? Corresponding language: Costas Busch - LSU

Theorem: is undecidable Proof: Reduce (halting problem) to (blank-tape halting problem is unsolvable) Proof: Reduce (halting problem) to (blank-tape problem) Costas Busch - LSU

Decider for Decider Reduction Given the reduction, A contradiction! Halting Problem Decider Decider for blank-tape problem decider YES YES Decider Reduction 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: So that: Costas Busch - LSU

Construct from : no yes Run with input If halts then halts too Accept and halt no Tape is blank? yes Run Write on tape with input If halts then halts too Costas Busch - LSU

halts when started on blank tape Accept and halt no Tape is blank? yes Run Write on tape with input halts on input halts when started on blank tape Costas Busch - LSU

halts when started on blank tape halts on input halts when started on blank tape Equivalently: END OF PROOF Costas Busch - LSU

If: Language is reduced to and language is undecidable Theorem 3: If: Language is reduced to and language is undecidable Then: is undecidable Proof: Suppose is decidable Then is decidable Using the decider for build the decider for Contradiction! Costas Busch - LSU

Suppose is decidable Decider for reject accept (halt) (halt) Costas Busch - LSU

Suppose is decidable Then is decidable Decider for Decider for NO YES reject accept Decider for (halt) YES NO accept reject (halt) Costas Busch - LSU

If is decidable then we can build: Decider for YES Input string YES accept accept Decider for (halt) Reduction NO NO reject reject (halt) CONTRADICTION! Costas Busch - LSU

Alternatively: Decider for Decider for Reduction CONTRADICTION! NO Input string YES reject accept Decider for (halt) Reduction YES NO accept reject (halt) CONTRADICTION! END OF PROOF Costas Busch - LSU

To prove that language is undecidable we only need to reduce Observation: To prove that language is undecidable we only need to reduce a known undecidable language to or (Theorem 2) (Theorem 3) Costas Busch - LSU

Undecidable Problems for Turing Recognizable languages Let be a Turing-acceptable language is empty? is regular? has size 2? All these are undecidable problems Costas Busch - LSU

Let be a Turing-acceptable language is empty? is regular? has size 2? Costas Busch - LSU

Empty language problem Input: Turing Machine Question: Is empty? Corresponding language: Costas Busch - LSU

(empty language problem) Theorem: is undecidable (empty-language problem is unsolvable) Proof: Reduce (membership problem) to (empty language problem) Costas Busch - LSU

Decider for Decider Reduction Given the reduction, A contradiction! membership problem decider Decider for empty problem decider YES YES Decider Reduction 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: 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

Louisiana The only possible accepted string yes yes Turing Machine Write on tape, and accepts ? Simulate on input Costas Busch - LSU 42 42

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

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

Let be a Turing-acceptable language is empty? is regular? has size 2? Costas Busch - LSU

Regular language problem Input: Turing Machine Question: Is a regular language? Corresponding language: Costas Busch - LSU

(regular language problem) Theorem: is undecidable (regular language problem is unsolvable) Proof: Reduce (membership problem) to (regular language problem) Costas Busch - LSU

Decider for Decider Reduction Given the reduction, A contradiction! membership problem decider Decider for regular problem decider YES YES Decider Reduction 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: 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 50 50 50 50

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

Therefore: accepts is not regular Equivalently: END OF PROOF Costas Busch - LSU

Let be a Turing-acceptable language is empty? is regular? has size 2? Costas Busch - LSU

Does have size 2 (two strings)? Size2 language problem Input: Turing Machine Question: Does have size 2 (two strings)? Corresponding language: Costas Busch - LSU

(size 2 language problem) Theorem: is undecidable (size2 language problem is unsolvable) Proof: Reduce (membership problem) to (size 2 language problem) Costas Busch - LSU

Decider for Decider Reduction Given the reduction, A contradiction! membership problem decider Decider for size2 problem decider YES YES Decider Reduction 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: 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 58 58 58 58 58

yes yes 2 strings accepts does not accept 0 strings Turing Machine Write on tape, and accepts ? Simulate on input Costas Busch - LSU 59 59 59 59 59 59

Therefore: accepts has size 2 Equivalently: END OF PROOF Costas Busch - LSU