Decidability and Undecidability

Slides:



Advertisements
Similar presentations
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,
Advertisements

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.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
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 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.
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.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 18 Instructor: Paul Beame.
CS21 Decidability and Tractability
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Prof. Busch - LSU1 Undecidable Problems (unsolvable problems)
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 Undecidability Reading: Chapter 8 & 9. 2 Decidability vs. Undecidability There are two types of TMs (based on halting): (Recursive) TMs that always.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
1 The Halting Problem and Decidability How powerful is a TM? Any program in a high level language can be simulated by a TM. Any algorithmic procedure carried.
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.
Computability Universal Turing Machine. Countability. Halting Problem. Homework: Show that the integers have the same cardinality (size) as the natural.
Recursively Enumerable and Recursive Languages
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
Turing Machines Sections 17.6 – The Universal Turing Machine Problem: All our machines so far are hardwired. ENIAC
The Church-Turing Thesis Chapter Are We Done? FSM  PDA  Turing machine Is this the end of the line? There are still problems we cannot solve:
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.
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.
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
CIS Automata and Formal Languages – Pei Wang
Recursively Enumerable and Recursive Languages
Busch Complexity Lectures: Reductions
FORMAL LANGUAGES AND AUTOMATA THEORY
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
MCC 2093 Advanced Theoretical Computer Science
LIMITS OF ALGORITHMIC COMPUTATION
Turing Machines Acceptors; Enumerators
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Decidable Languages Costas Busch - LSU.
Turing acceptable languages and Enumerators
Undecidable problems:
MA/CSSE 474 Theory of Computation
Proposed in Turing’s 1936 paper
Formal Languages, Automata and Models of Computation
CSCI 2670 Introduction to Theory of Computing
Theory of Computability
Theory of Computability
CSCI 2670 Introduction to Theory of Computing
Decidability continued….
Cpt S 317: Spring 2009 Reading: Chapter 8 & 9
Theory of Computability
Instructor: Aaron Roth
More Undecidable Problems
MA/CSSE 474 Theory of Computation
Presentation transcript:

Decidability and Undecidability Chapter 6 Decidability and Undecidability

Theory of Computation: Chapter 6 Gödel Numbering By definition, every TM has a finite description, and hence can be written as a finite string over some finite alphabet. So, what is the cardinality of: {M : M is a TM}? And, what is the cardinality of: {LM : M is a TM}? But, there are uncountable many languages! 12/8/2018 Theory of Computation: Chapter 6

Theory of Computation: Chapter 6 Post tag system A (finite) collection of pairs (α, β) such that strings are transformed as: αλ ⇒ λβ I.e. the prefix α is removed, and the suffix β is appended. A post machine is like a PDA, but with a queue instead of a stack. β λ α α leaving causes β to enter 12/8/2018 Theory of Computation: Chapter 6

Universal Turing Machines Without loss of generality, code all TM’s as binary strings over {0, 1} by taking the state symbols qᵢ → 10ⁱ1 and placing delimiters in appropriate places. Remember, every TM M has a finite description. Notation: Call that ‹M›, the code of M. Let ‹M, w› be the code of M followed by an arbitrary binary string w. Note: Not every binary string represents a TM. But those that do represent unique TM’s. Definition: Let the universal language be Lᵤ = {‹M, w› : M accepts w}. 12/8/2018 Theory of Computation: Chapter 6

The universal language is r.e. Theorem: Lᵤ = {‹M, w› : w  LM} is recursively enumerable (r.e.). Proof: Construct a fixed universal TM M* (an interpreter) as follows: (1) input tape copy ‹M› to (3) & w to (2) (2) simulation tape same contents as M’s tape (3) state tape remember state of M; look up next move of M. Accept/reject if M accepts/rejects, run forever otherwise. 12/8/2018 Theory of Computation: Chapter 6

The universal language is not recursive Theorem: Lᵤ = {‹M, w› : w ∈ LM} is not recursive. Proof: Suppose towards a contradiction that Lᵤ is recursive. Then the diagonal language Ld = {‹M› : ‹M› ∈ LM} would be also, since ‹M› ∈ LM iff ‹M, ‹M›› ∈ Lᵤ. Hence, Σ* \ Ld would also be recursive. Consider: Question: Is ‹M'› ∈ LM'? ‹M'› ∈ LM' ⇔ ‹M'› ∉ Ld ⇔ ‹M'› ∉ LM' This technique is known as diagonalization. 12/8/2018 Theory of Computation: Chapter 6

Lh = {‹M, w› : M halts on w} is unsolvable Corollary: The halting problem is not decidable – i.e. there is no algorithm. Proof: Suppose the halting problem were decidable. Show Lᵤ would be. Given a machine M and a string w, check if M halts on w before running M on w. If it doesn't halt, just reject. If it does halt, run M on input w, and output the answer. This shows Lᵤ is recursive, a contradiction. ‹M, w› no algorithm Mh NO ‹M, w› yes no Mu procedure NO yes YES 12/8/2018 Theory of Computation: Chapter 6