1 Reducibility. 2 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,
1 Decidability continued…. 2 Theorem: For a recursively enumerable language it is undecidable to determine whether is finite Proof: We will reduce the.
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.
More Turing Machines Sipser 3.2 (pages ). CS 311 Fall Multitape Turing Machines Formally, we need only change the transition function to.
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.
1 Linear Bounded Automata LBAs. 2 Linear Bounded Automata are like Turing Machines with a restriction: The working space of the tape is the space of the.
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)
1 Undecidability Andreas Klappenecker [based on slides by Prof. Welch]
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.
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
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 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
A Universal Turing Machine
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.
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.
Lecture 21 Reducibility. Many-one reducibility For two sets A c Σ* and B c Γ*, A ≤ m B if there exists a Turing-computable function f: Σ* → Γ* such that.
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.
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”,
Computability. Turing Machines Read input letter & tape letter, write tape letter, move left or right.
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.
Recursively Enumerable Languages
Recursively Enumerable and Recursive Languages
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:
Proposed in Turing’s 1936 paper
Formal Languages, Automata and Models of Computation
Decidability continued….
More Undecidable Problems
Presentation transcript:

1 Reducibility

2 Problem is reduced to problem If we can solve problem then we can solve problem

3 If is undecidable then is undecidable If is decidable then is decidable Problem is reduced to problem

4 Example: the halting problem is reduced to the state-entry problem

5 The state-entry problem Inputs: Turing Machine State Question: Does String enter state on input ?

6 Theorem: The state-entry problem is undecidable Proof: Reduce the halting problem to the state-entry problem

7 Suppose we have an algorithm (Turing Machine) that solves the state-entry problem We will construct an algorithm that solves the halting problem

8 Algorithm for state-entry problem YES NO enters doesn’t enter Assume we have the state-entry algorithm:

9 Algorithm for Halting problem YES NO halts on doesn’t halt on We want to design the halting algorithm:

10 Modify input machine : Add new state From any halting state add transitions to halting states Single halt state

11 halts halts on state if and only if

12 machine and string Algorithm for halting problem: Inputs: 1. Construct machine with state 2. Run algorithm for state-entry problem with inputs:,,

13 GenerateState-entry algorithm Halting problem algorithm YES NO YES NO

14 Since the halting problem is undecidable, it must be that the state-entry problem is also undecidable END OF PROOF We reduced the halting problem to the state-entry problem

15 Another example: the halting problem is reduced to the blank-tape halting problem

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

17 Theorem: Proof: Reduce the halting problem to the blank-tape halting problem The blank-tape halting problem is undecidable

18 Suppose we have an algorithm for the blank-tape halting problem We will construct an algorithm for the halting problem

19 Algorithm for blank-tape halting problem YES NO halts on blank tape doesn’t halt on blank tape Assume we have the blank-tape halting algorithm:

20 Algorithm for halting problem YES NO halts on doesn’t halt on We want to design the halting algorithm:

21 Construct a new machine On blank tape writes Then continues execution like then write step 1step2 if blank tapeexecute with input

22 halts on input string halts when started with blank tape if and only if

23 Algorithm for halting problem: 1. Construct 2. Run algorithm for blank-tape halting problem with input, machine and string Inputs:

24 Generate blank-tape halting algorithm Halting problem algorithm YES NO YES NO

25 Since the halting problem is undecidable, the blank-tape halting problem is also undecidable END OF PROOF We reduced the halting problem to the blank-tape halting problem

26 Does machine halt on input ? Summary of Undecidable Problems Halting Problem: Membership problem: Is a string member of a recursively enumerable language ? Does machine accept string ? In other words:

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

28 Uncomputable Functions

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

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

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

32 Algorithm 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

33 Therefore, the blank-tape halting problem is decidable However, the blank-tape halting problem is undecidable Contradiction!!!

34 Therefore, function in uncomputable END OF PROOF

35 Rice’s Theorem

36 Non-trivial properties of recursively enumerable languages: any property possessed by some (not all) recursively enumerable languages Definition:

37 Some non-trivial properties of recursively enumerable languages: is empty is finite contains two different strings of the same length

38 Rice’s Theorem: Any non-trivial property of a recursively enumerable language is undecidable

39 We will prove some non-trivial properties without using Rice’s theorem

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

41 Algorithm for empty language problem YES NO Assume we have the empty language algorithm: Let be the machine that accepts empty not empty

42 Algorithm for membership problem YES NO accepts rejects We will design the membership algorithm:

43 First construct machine : When enters a final state, compare original input string with Accept if original input is the same with

44 is not empty if and only if

45 Algorithm for membership problem: Inputs: machine and string 1. Construct 2. Determine if is empty YES: then NO: then

46 construct Check if is empty YES NO YES Membership algorithm END OF PROOF