Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.

Slides:



Advertisements
Similar presentations
CSCI 3130: Formal languages and automata theory Tutorial 9
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,
Post Correspondence Problem [Section 5.2] Suppose we have dominos of strings, e.g.: The question: is it possible to arrange the dominos in line (repetitions.
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.
Rice ’ s Theorem. Def: A property of the Turing-recognizable languages is simply a subset of all Turing- recognizable languages.
Turing -Recognizable vs. -Decidable
February 6, 2015CS21 Lecture 141 CS21 Decidability and Tractability Lecture 14 February 6, 2015.
CS355 – The Mathematics and Theory of Computer Science Reductions.
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.
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.
Reducibility A reduction is a way of converting one problem into another problem in such a way that a solution to the second problem can be used to solve.
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)
Decidability. Why study un-solvability? When a problem is algorithmically unsolvable, we realize that the problem must be simplified or altered before.
Computability and Complexity 7-1 Computability and Complexity Andrei Bulatov Recursion Theorem.
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Rules have form String of variables and terminals String of variables and terminals.
Decidable and undecidable problems deciding regular languages and CFL’s Undecidable problems.
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
1 Decidability continued. 2 Undecidable Problems Halting Problem: Does machine halt on input ? State-entry Problem: Does machine enter state halt on input.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
February 4, 2015CS21 Lecture 131 CS21 Decidability and Tractability Lecture 13 February 4, 2015.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
Decidable languages Section 4.1 CSC 4170 Theory of Computation.
CS 3813: Introduction to Formal Languages and Automata Chapter 12 Limits of Algorithmic Computation These class notes are based on material from our textbook,
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.
CSCI 2670 Introduction to Theory of Computing October 13, 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.
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
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Consider problems with answer YES or NO Examples: Does Machine have three states ? Is string a binary.
Turing Machines- Cont. Theory of Computation Lecture 11 Tasneem Ghnaimat.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
February 1, 2016CS21 Lecture 121 CS21 Decidability and Tractability Lecture 12 February 1, 2016.
CIS Automata and Formal Languages – Pei Wang
Linear Bounded Automata LBAs
FORMAL LANGUAGES AND AUTOMATA THEORY
Computing with Turing Machines
LIMITS OF ALGORITHMIC COMPUTATION
Turing acceptable languages and Enumerators
Jaya Krishna, M.Tech, Assistant Professor
CS154, Lecture 8: Undecidability, Mapping Reductions
CS154, Lecture 8: Undecidability, Mapping Reductions
Decidable Languages Costas Busch - LSU.
Decidability Turing Machines Coded as Binary Strings
Decidability Turing Machines Coded as Binary Strings
CSC 4170 Theory of Computation Decidable languages Section 4.1.
The Post Correspondence Problem
Turing acceptable languages and Enumerators
Undecidable problems:
Computability and Complexity
Proposed in Turing’s 1936 paper
CS 461 – Nov. 14 Section 5.2 – Undecidable problems starting from ATM:
Subject Name: FORMAL LANGUAGES AND AUTOMATA THEORY
Decidability continued….
More Undecidable Problems
CIS Automata and Formal Languages – Pei Wang
Presentation transcript:

Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections 5.4 and 8.3]

Decidability A real-life decision problem (important e.g. for cryptography): “Given is a number p, is p a prime ?” How to view this problem as a language ? Which class of languages describes decidable problems ? [Section 10.5]

Decidability Are all decision problems decidable ? (I.e., is every language recursive ?) [Section 10.5]

The Halting Problem Input: a program P and an input x Answer: YES if P halts on x, otherwise (i.e. P goes into an infinite loop on x), NO. Note: the problem is typically phrased for Turing machines, i.e. P is a TM. [Sections 11.1 and 11.2]

Variants of the Halting Problem Input: a Turing machine T and an input x Answer: YES if x 2 L(T), otherwise NO. [Sections ]

Variants of the Halting Problem Input: a Turing machine T Answer: YES if T halts on the empty input, otherwise NO. [Sections ]

Variants of the Halting Problem Input: a Turing machine T, an input x, and a state q Answer: YES if the computation of T on input x reaches the state q, otherwise NO. [Sections ]

Variants of the Halting Problem Input: a Turing machine T Answer: YES if L(T) = ;, otherwise NO. [Sections ]

Variants of the Halting Problem Input: two Turing machines T 1 and T 2 Answer: YES if L(T 1 ) = L(T 2 ), otherwise NO. [Sections ]

Rice’s Theorem Rice’s Thm: Let R be a property on languages. If R holds for some but not all recursive enumerable languages, then the following problem is undecidable: Input: a Turing machine T Answer: YES if L(T) has the property R, otherwise NO. [Section 11.4]

Post’s Correspondence Problem Post’s Correspondence Problem (PCP) is a string matching problem: Input: a collection of k types of dominoes, each domino contains two strings (  i is at the top of the i-th domino,  i is at the bottom; i=1,…,k). Output: YES, if it’s possible to find a nonempty sequence of dominoes so that the string at the top matches the string on the bottom. (The domino types in the sequence can repeat.) An easy example: [Section 11.5]

Post’s Correspondence Problem Some more examples: Another example: [Section 11.5]

Post’s Correspondence Problem Thm: The Post’s Correspondence Problem is undecidable. Is PCP recursively enumerable? [Section 11.5]

Undecidable Problems for CFL’s Ambiguity of context-free grammars Input: a CFG G Output: YES if G is ambiguous, otherwise NO. Consider an instance of a PCP: (  1,  1 ), (  2,  2 ), …, (  k,  k ) Create the following CFG: S  A | B A   1 A a 1 |  2 A a 2 | … |  k A a k |  1 a 1 |  2 a 2 | … |  k a k B   1 B a 1 |  2 B a 2 | … |  k B a k |  1 a 1 |  2 a 2 | … |  k a k [Section 11.6]

Undecidable Problems for CFL’s 1.Given a CFG G, is G ambiguous ? 2.Given a CFG G, is L(G) =  * ? 3.Given two CFG’s G 1 and G 2, is L(G 1 ) = L(G 2 ) ? 4.Given two CFG’s G 1 and G 2, is L(G 1 ) Å L(G 2 ) = ; ? [Section 11.6]