1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.

Slides:



Advertisements
Similar presentations
1 Decidability continued…. 2 Theorem: For a recursively enumerable language it is undecidable to determine whether is finite Proof: We will reduce the.
Advertisements

CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
Programming Languages Wrap-up. Your Toolkit Object-oriented Imperative Functional Logic.
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.
Computability and Complexity 5-1 Classifying Problems Computability and Complexity Andrei Bulatov.
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 The Post Correspondence Problem continued We will prove that the MPC problem is undecidable 2. We will prove that the PC problem is undecidable.
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 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
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 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
Homework #9 Solutions.
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 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.
Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.
TM Design Universal TM MA/CSSE 474 Theory of Computation.
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.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
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.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 12 Mälardalen University 2007.
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.
1 Chapter 9 Undecidability  Turing Machines Coded as Binary Strings  Universal Turing machine  Diagonalizing over Turing Machines  Problems as Languages.
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.
1 Turing Machines. 2 The Language Hierarchy Regular Languages 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.
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 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
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Decidable Languages Costas Busch - LSU.
The Post Correspondence Problem
Undecidable problems:
Formal Languages, Automata and Models of Computation
Decidability continued….
More Undecidable Problems
Presentation transcript:

1 Decidability continued

2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input ?

3 Blank-tape halting problem: Does machine halt when starting on blank tape? Membership problem: Is a string member of a recursively enumerable language ?

4 Uncomputable Functions A function is uncomputable if it cannot be computed for all the domain Domain Values region

5 Function : maximum number of moves until any Turing machine with states halts when started with the blank tape

6 Theorem: Function is uncomputable Proof: If was computable then the blank-tape halting problem would be decidable

7 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

8 Rice’s Theorem

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

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

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

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

13 Membership problem: Inputs: machine and string Question: ?

14 Construct machine : When enters a final state, compare input with Observations: if and only if is empty

15 Algorithm for membership problem: Inputs: machine and string 1. Construct 2. Determine if is empty Yes: then No: then

16 construct Check if is empty yes no yes Membership machine

17 Theorem: For a recursively enumerable language it is undecidable to determine whether is finite Proof: We will reduce the halting problem to this problem

18 Halting problem: Inputs: machine and string Question: does halt on input ?

19 Construct machine : When enters a halt state, accept any input Initially, simulates on input (virtual input)

20 Observations: halts on if and only if is infinite If is finite then

21 Algorithm for halting problem: Inputs: machine and string 1. Construct 2. Determine if is finite Yes: then doesn’t halt on No: then halts on

22 construct Check if is finite yes no yes Machine for halting problem

23 Theorem: For a recursively enumerable language it is undecidable to determine whether contains two different string of same length Proof: We will reduce the halting problem to this problem

24 Halting problem: Inputs: machine and string Question: does halt on input ?

25 Construct machine : When enters a halt state, accept symbols or Initially, simulates on input (virtual input)

26 Observation: halts on if and only if accepts and (strings of equal length)

27 Algorithm for halting problem: Inputs: machine and string 1. Construct 2. Determine if accepts strings of equal length Yes: then halts on No: then doesn’t halt on

28 construct Check if Has equal length strings yes no yes no Machine for halting problem

29 The Post Correspondence Problem

30 Some undecidable problems for context-free languages: Is context-free grammar ambiguous? Is ?

31 We need a tool to prove that the previous problems for context-free languages are undecidable: The Post Correspondence Problem

32 The Post Correspondence Problem Input: Two sequences of strings

33 There is a Post Correspondence Solution if there is a sequence such that: PC-solution

34 Example: PC-solution:

35 Example: There is no solution Because total length of strings from is smaller than total length of strings from

36 The Modified Post Correspondence Problem Inputs: MPC-solution:

37 Example: MPC-solution:

38 We will show that: The Modified Post Correspondence Problem is undecidable In other words: There is not MPC-solution for any pair

39 Proof Technique: We will reduce the membership problem to the MPC problem

40 Membership problem: Does Turing machine accept string Equivalent Problem: Does unrestricted Grammar generate string ?