Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)

Slides:



Advertisements
Similar presentations
Linear Bounded Automata LBAs
Advertisements

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.
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.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
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.
CHAPTER 4 Decidability Contents Decidable Languages
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 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.
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Non-regular languages (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.
CS5371 Theory of Computation Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)
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.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
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.
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 The Chomsky Hierarchy. 2 Unrestricted Grammars: Productions String of variables and terminals String of variables and terminals.
Costas Busch - LSU1 The Post Correspondence Problem.
Turing Machines Sections 17.6 – The Universal Turing Machine Problem: All our machines so far are hardwired. ENIAC
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Decidable.
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.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
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.
Chapters 11 and 12 Decision Problems and Undecidability.
The Acceptance Problem for TMs
A Universal Turing Machine
Recursively Enumerable and Recursive Languages
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
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
Decidable Languages Costas Busch - LSU.
Decidability and Undecidability
Decidable Problems of Regular Languages
Turing acceptable languages and Enumerators
Undecidable problems:
Formal Languages, Automata and Models of Computation
Decidability continued….
Automata, Grammars and Languages
Presentation transcript:

Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)

Prof. Busch - LSU2 Recall that: A language is decidable, if there is a Turing machine (decider) that accepts the language and halts on every input string Turing Machine Input string Accept Reject Decider for Decision On Halt: Decidable Languages YES NO

Prof. Busch - LSU3 A computational problem is decidable if the corresponding language is decidable We also say that the problem is solvable

Prof. Busch - LSU4 Problem: Does DFA accept the empty language ? Corresponding Language: Description of DFA as a string (For example, we can represent as a binary string, as we did for Turing machines) (Decidable)

Prof. Busch - LSU5 Determine whether there is a path from the initial state to any accepting state Decider for : On input : DFA Reject Decision: Accept

Prof. Busch - LSU6 Problem: Does DFA accept a finite language? Corresponding Language:(Decidable)

Prof. Busch - LSU7 Decider for : On input : DFA Reject Decision: Accept Check if there is a walk with a cycle from the initial state to an accepting state infinitefinite (NO) (YES)

Prof. Busch - LSU8 Problem: Does DFA accept string ? Corresponding Language:(Decidable)

Prof. Busch - LSU9 Decider for : On input string : Run DFA on input string If accepts Then accept (and halt) Else reject (and halt)

Prof. Busch - LSU10 Problem: Do DFAs and accept the same language? Corresponding Language:(Decidable)

Prof. Busch - LSU11 Let be the language of DFA Decider for : On input : Construct DFA such that: (combination of DFAs)

Prof. Busch - LSU12 and

Prof. Busch - LSU13 or

Prof. Busch - LSU14 Therefore, we only need to determine whether which is a solvable problem for DFAs:

Prof. Busch - LSU15 Undecidable Languages there is no Turing Machine which accepts the language and makes a decision (halts) for every input string undecidable language = not decidable language There is no decider: (machine may make decision for some input strings)

Prof. Busch - LSU16 For an undecidable language, the corresponding problem is undecidable (unsolvable): there is no Turing Machine (Algorithm) that gives an answer (yes or no) for every input instance (answer may be given for some input instances)

Prof. Busch - LSU17 We have shown before that there are undecidable languages: Decidable Turing-Acceptable is Turing-Acceptable and undecidable

Prof. Busch - LSU18 We will prove that two particular problems are unsolvable: Membership problem Halting problem

Prof. Busch - LSU19 Membership Problem Input:Turing Machine String Question: Does accept ? Corresponding language:

Prof. Busch - LSU20 Theorem: (The membership problem is unsolvable) Proof: We will assume that is decidable; We will then prove that every Turing-acceptable language is also decidable is undecidable Basic idea: A contradiction!

Prof. Busch - LSU21 Suppose that is decidable YES accepts NO rejects Decider for Input string

Prof. Busch - LSU22 Let be a Turing recognizable language Let be the Turing Machine that accepts We will prove that is also decidable: we will build a decider for

Prof. Busch - LSU23 NO YES accept reject Decider for (and halt) Decider for Input string accepts ? String description of This is hardwired and copied on the tape next to input string s, and then the pair is input to H

Prof. Busch - LSU24 Therefore,is decidable But there is a Turing-Acceptable language which is undecidable Contradiction!!!! Since is chosen arbitrarily, every Turing-Acceptable language is decidable END OF PROOF

Prof. Busch - LSU25 We have shown: Decidable Undecidable

Prof. Busch - LSU26 We can actually show: Decidable Turing-Acceptable

Prof. Busch - LSU27 Turing machine that accepts : 1. Run on input 2. If accepts then accept is Turing-Acceptable

Prof. Busch - LSU28 Halting Problem Input:Turing Machine String Question: Does halt while processing input string ? Corresponding language:

Prof. Busch - LSU29 Theorem: (The halting problem is unsolvable) Proof: Suppose that is decidable; we will prove that every Turing-acceptable language is also decidable is undecidable Basic idea: A contradiction!

Prof. Busch - LSU30 YES halts on input doesn’t halt on input NO Suppose that is decidable Decider for Input string

Prof. Busch - LSU31 Let be a Turing-Acceptable language Let be the Turing Machine that accepts We will prove that is also decidable: we will build a decider for

Prof. Busch - LSU32 halts and accepts halts on ? YES NO Run with input reject accept reject Decider for Input string Decider for and halt halts and rejects and halt

Prof. Busch - LSU33 Contradiction!!!! END OF PROOF Therefore,is decidable But there is a Turing-Acceptable language which is undecidable Since is chosen arbitrarily, every Turing-Acceptable language is decidable

Prof. Busch - LSU34 Theorem: Proof: Assume for contradiction that the halting problem is decidable; (The halting problem is unsolvable) is undecidable we will obtain a contradiction using a diagonilization technique An alternative proof Basic idea:

Prof. Busch - LSU35 YEShalts on doesn’t halt on NO Suppose that is decidable Decider for Input string

Prof. Busch - LSU36 Input string: YES NO Looking inside Decider for halts on ?

Prof. Busch - LSU37 NO Loop forever YES Construct machine : If halts on input Then Loop Forever Else Halt halts on ?

Prof. Busch - LSU38 Construct machine : Copy on tape If halts on input Then loop forever Else halt

Prof. Busch - LSU39 Run with input itself Copy on tape If halts on input Then loops forever on input Else halts on input END OF PROOF CONTRADICTION!!!

Prof. Busch - LSU40 We have shown: Decidable Undecidable

Prof. Busch - LSU41 We can actually show: Decidable Turing-Acceptable

Prof. Busch - LSU42 Turing machine that accepts : 1. Run on input 2. If halts on then accept is Turing-Acceptable