Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.

Slides:



Advertisements
Similar presentations
Formal Models of Computation Part III Computability & Complexity
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.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
Decidable A problem P is decidable if it can be solved by a Turing machine T that always halt. (We say that P has an effective algorithm.) Note that the.
1 Section 14.1 Computability Some problems cannot be solved by any machine/algorithm. To prove such statements we need to effectively describe all possible.
Reducibility Sipser 5.1 (pages ). CS 311 Fall Reducibility.
Reducibility Sipser 5.1 (pages ).
Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…
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 A Universal Turing Machine.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
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.
1 Uncountable Sets continued Theorem: Let be an infinite countable set. The powerset of is uncountable.
Fall 2004COMP 3351 The Chomsky Hierarchy. Fall 2004COMP 3352 Non-recursively enumerable Recursively-enumerable Recursive Context-sensitive Context-free.
Linear Bounded Automata LBAs
Homework #9 Solutions.
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 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Fall 2004COMP 3351 A Universal Turing Machine. Fall 2004COMP 3352 Turing Machines are “hardwired” they execute only one program A limitation of Turing.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
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.
The Halting Problem – Undecidable Languages Lecture 31 Section 4.2 Wed, Oct 31, 2007.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
A Universal Turing Machine
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.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2005.
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.
Decidability Decidable/Undecidable problems. Jaruloj Chongstitvatana Decidability2 Accepting: Definition Let T = (Q, , , , s) be a TM. T accepts.
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals.
Undecidability and The Halting Problem
CS 154 Formal Languages and Computability April 28 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary.
THE HALTING PROBLEM - PROOF. Review  What makes a problem decidable?  3 properties of an efficient algorithm?  What is the meaning of “complete”, “mechanistic”,
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.
1 A Universal Turing Machine. 2 Turing Machines are “hardwired” they execute only one program A limitation of Turing Machines: Real Computers are re-programmable.
Chapters 11 and 12 Decision Problems and Undecidability.
Recursively Enumerable Languages
Recursively Enumerable and Recursive Languages
CSCI 2670 Introduction to Theory of Computing
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
LIMITS OF ALGORITHMIC COMPUTATION
Turing Machines Acceptors; Enumerators
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
CSCI 2670 Introduction to Theory of Computing
Decidable Languages Costas Busch - LSU.
Decidability and Undecidability
Undecidable problems:
Formal Languages, Automata and Models of Computation
Subject Name: FORMAL LANGUAGES AND AUTOMATA THEORY
More undecidable languages
Decidability continued….
More Undecidable Problems
Presentation transcript:

Fall 2004COMP 3351 Reducibility

Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem

Fall 2004COMP 3353 If is undecidable then is undecidable If is decidable then is decidable Problem is reduced to problem

Fall 2004COMP 3354 Example: the halting problem is reduced to the state-entry problem

Fall 2004COMP 3355 The state-entry problem Inputs: Turing Machine State Question: Does String enter state on input ?

Fall 2004COMP 3356 Theorem: The state-entry problem is undecidable Proof: Reduce the halting problem to the state-entry problem

Fall 2004COMP 3357 state-entry problem decider YES NO enters doesn’t enter Suppose we have a Decider for the state-entry algorithm:

Fall 2004COMP 3358 Halting problem decider YES NO halts on doesn’t halt on We want to build a decider for the halting problem:

Fall 2004COMP 3359 State-entry problem decider Halting problem decider YES NO YES NO We want to reduce the halting problem to the state-entry problem:

Fall 2004COMP Halting problem decider YES NO YES NO Convert Inputs ? We need to convert one problem instance to the other problem instance State-entry problem decider

Fall 2004COMP Convert to : Add new state From any halting state of add transitions to halting states Single halt state

Fall 2004COMP halts on input halts on state on input if and only if

Fall 2004COMP Generate Halting problem decider YES NO YES NO State-entry problem decider

Fall 2004COMP Since the halting problem is undecidable, the state-entry problem is undecidable END OF PROOF We reduced the halting problem to the state-entry problem

Fall 2004COMP Another example: the halting problem is reduced to the blank-tape halting problem

Fall 2004COMP The blank-tape halting problem Input:Turing Machine Question:Doeshalt when started with a blank tape?

Fall 2004COMP Theorem: Proof: Reduce the halting problem to the blank-tape halting problem The blank-tape halting problem is undecidable

Fall 2004COMP blank-tape halting problem decider YES NO halts on blank tape doesn’t halt on blank tape Suppose we have a decider for the blank-tape halting problem:

Fall 2004COMP halting problem decider YES NO halts on doesn’t halt on We want to build a decider for the halting problem:

Fall 2004COMP Blank-tape halting problem decider Halting problem decider YES NO YES NO We want to reduce the halting problem to the blank-tape halting problem:

Fall 2004COMP Blank-tape halting problem decider Halting problem decider YES NO YES NO We need to convert one problem instance to the other problem instance Convert Inputs ?

Fall 2004COMP Construct a new machine When started on blank tape, writes Then continues execution like then write step 1step2 if blank tapeexecute with input

Fall 2004COMP halts on input string halts when started with blank tape if and only if

Fall 2004COMP Generate blank-tape halting problem decider Halting problem decider YES NO YES NO

Fall 2004COMP Since the halting problem is undecidable, the blank-tape halting problem is undecidable END OF PROOF We reduced the halting problem to the blank-tape halting problem

Fall 2004COMP Does machine halt on input ? Summary of Undecidable Problems Halting Problem: Membership problem: Does machine accept string ?

Fall 2004COMP Does machine enter state on input ? Does machine halt when starting on blank tape? Blank-tape halting problem: State-entry Problem:

Fall 2004COMP Uncomputable Functions

Fall 2004COMP Uncomputable Functions A function is uncomputable if it cannot be computed for all of its domain Domain Values region

Fall 2004COMP An uncomputable function: maximum number of moves until any Turing machine with states halts when started with the blank tape

Fall 2004COMP Theorem:Function is uncomputable Proof: Then the blank-tape halting problem is decidable Assume for contradiction that is computable

Fall 2004COMP Decider for blank-tape halting problem: Input: machine 1. Count states of : 2. Compute 3. Simulate for steps starting with empty tape If halts then return YES otherwise return NO

Fall 2004COMP Therefore, the blank-tape halting problem is decidable However, the blank-tape halting problem is undecidable Contradiction!!!

Fall 2004COMP Therefore, function in uncomputable END OF PROOF

Fall 2004COMP Undecidable Problems for Recursively Enumerable Languages

Fall 2004COMP is empty? is finite? contains two different strings of the same length? Take a recursively enumerable language Decision problems: All these problems are undecidable

Fall 2004COMP Theorem: For any recursively enumerable language it is undecidable to determine whether is empty Proof: We will reduce the membership problem to this problem

Fall 2004COMP empty language problem decider YES NO Suppose we have a decider for the empty language problem: Let be the TM with empty not empty

Fall 2004COMP membership problem decider YES NO accepts rejects We will build the decider for the membership problem:

Fall 2004COMP YES NO YES Membership problem decider empty language problem decider We want to reduce the membership problem to the empty language problem:

Fall 2004COMP YES NO YES Membership problem decider empty language problem decider We need to convert one problem instance to the other problem instance Convert inputs ?

Fall 2004COMP Construct machine : When enters a final state, compare with Accept only if executes the same as with On arbitrary input string

Fall 2004COMP is not empty if and only if

Fall 2004COMP construct YES NO YES Membership problem decider END OF PROOF empty language problem decider