Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…

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

Variants of Turing machines
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.
Turing -Recognizable vs. -Decidable
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen Department of Computer Science University of Texas-Pan American.
February 6, 2015CS21 Lecture 141 CS21 Decidability and Tractability Lecture 14 February 6, 2015.
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.
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 ).
The Halting Problem Sipser 4.2 (pages ).
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
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)
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.
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.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
Theory of Computing Lecture 20 MAS 714 Hartmut Klauck.
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 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)
Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 15-1 Mälardalen University 2012.
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.
Turing -Recognizable vs. -Decidable
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.
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.
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.
Costas Busch - RPI1 Decidability. Costas Busch - RPI2 Another famous undecidable problem: The halting problem.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Decidability.
Recursively Enumerable and Recursive Languages
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
FORMAL LANGUAGES AND AUTOMATA THEORY
Undecidable Problems Costas Busch - LSU.
CSCI 2670 Introduction to Theory of Computing
Reductions Costas Busch - LSU.
LIMITS OF ALGORITHMIC COMPUTATION
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Decidable Languages Costas Busch - LSU.
Decidability and Undecidability
The Post Correspondence Problem
Undecidable problems:
Computability and Complexity
Subject Name: FORMAL LANGUAGES AND AUTOMATA THEORY
Decidability continued….
More Undecidable Problems
Presentation transcript:

Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…

Fall 2004COMP 3352 is empty? is finite? contains two different strings of the same length? Take a recursively enumerable language Decision problems: All these problems are undecidable

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

Fall 2004COMP 3354 finite language problem decider YES NO Suppose we have a decider for the finite language problem: Let be the TM with finite not finite

Fall 2004COMP 3355 Halting problem decider YES NO halts on We will build a decider for the halting problem: doesn’t halt on

Fall 2004COMP 3356 YES NO YES Halting problem decider finite language problem decider We want to reduce the halting problem to the finite language problem

Fall 2004COMP 3357 YES NO YES Halting problem decider finite language problem decider We need to convert one problem instance to the other problem instance convert input ?

Fall 2004COMP 3358 Construct machine : If enters a halt state, accept ( inifinite language) Initially, simulates on input Otherwise, reject ( finite language) On arbitrary input string

Fall 2004COMP 3359 halts on is infinite if and only if

Fall 2004COMP construct YES NO YES halting problem decider finite language problem decider

Fall 2004COMP is empty? is finite? contains two different strings of the same length? Take a recursively enumerable language Decision problems: All these problems are undecidable

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

Fall 2004COMP Two-strings problem decider YES NO Suppose we have the decider for the two-strings problem: Let be the TM with contains Doesn’t contain two equal length strings

Fall 2004COMP Halting problem decider YES NO halts on We will build a decider for the halting problem: doesn’t halt on

Fall 2004COMP YES NO YES NO Halting problem decider Two-strings problem decider We want to reduce the halting problem to the empty language problem

Fall 2004COMP YES NO YES NO Halting problem decider Two-strings problem decider We need to convert one problem instance to the other problem instance convert inputs ?

Fall 2004COMP Construct machine : When enters a halt state, accept if or Initially, simulate on input (two equal length strings ) On arbitrary input string Otherwise, reject ( )

Fall 2004COMP halts on if and only if accepts two equal length strings accepts and

Fall 2004COMP construct YES NO YES NO Halting problem decider Two-strings problem decider

Fall 2004COMP Rice’s Theorem

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

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

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

Fall 2004COMP The Post Correspondence Problem

Fall 2004COMP Some undecidable problems for context-free languages: Is context-free grammar ambiguous? Is ? are context-free grammars

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

Fall 2004COMP The Post Correspondence Problem Input: Two sequences of strings

Fall 2004COMP There is a Post Correspondence Solution if there is a sequence such that: PC-solution: Indices may be repeated or omitted

Fall 2004COMP Example: PC-solution:

Fall 2004COMP Example: There is no solution Because total length of strings from is smaller than total length of strings from

Fall 2004COMP The MPC problem is undecidable 2. The PC problem is undecidable (by reducing MPC to PC) (by reducing the membership to MPC) We will show:

Fall 2004COMP Theorem: The PC problem is undecidable Proof: We will reduce the MPC problem to the PC problem

Fall 2004COMP Some undecidable problems for context-free languages: Is context-free grammar ambiguous? Is ? are context-free grammars We reduce the PC problem to these problems

Fall 2004COMP Theorem: Proof: Let be context-free grammars. It is undecidable to determine if Rdeduce the PC problem to this problem

Fall 2004COMP Suppose we have a decider for the empty-intersection problem Empty- interection problem decider YES NO Context-free grammars

Fall 2004COMP For a context-free grammar, Theorem: it is undecidable to determine if G is ambiguous Proof: Reduce the PC problem to this problem