The Post Correspondence Problem

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

Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…
Courtesy Costas Busch - RPI1 A Universal Turing Machine.
Courtesy Costas Busch - RPI1 More Applications of the Pumping Lemma.
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 2006Costas Busch - RPI1 Regular Expressions.
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)
Costas Busch - RPI1 NPDAs Accept Context-Free Languages.
Costas Busch - RPI1 Standard Representations of Regular Languages Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Courtesy Costas Busch - RPI1 NPDAs Accept Context-Free Languages.
Costas Busch - RPI1 Grammars. Costas Busch - RPI2 Grammars Grammars express languages Example: the English language.
1 The Chomsky Hierarchy. 2 Unrestricted Grammars: Rules have form String of variables and terminals String of variables and terminals.
Fall 2006Costas Busch - RPI1 The Post Correspondence Problem.
Courtesy Costas Busch - RPI
Fall 2003Costas Busch - RPI1 Decidable Problems of Regular Languages.
Fall 2004COMP 3351 Reducibility. Fall 2004COMP 3352 Problem is reduced to problem If we can solve problem then we can solve problem.
Costas Busch - RPI1 The Pumping Lemma for Context-Free Languages.
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.
Fall 2006Costas Busch - RPI1 More Applications of the Pumping Lemma.
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 The Chomsky Hierarchy.
Fall 2006Costas Busch - RPI1 PDAs Accept Context-Free Languages.
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Fall 2003Costas Busch - RPI1 Turing Machines (TMs) Linear Bounded Automata (LBAs)
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.
Fall 2003Costas Busch - RPI1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
Costas Busch - LSU1 Linear Grammars Grammars with at most one variable at the right side of a production Examples:
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.
Costas Busch - LSU1 PDAs Accept 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.
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.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
Recursively Enumerable and Recursive Languages
PDAs Accept Context-Free Languages
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
FORMAL LANGUAGES AND AUTOMATA THEORY
Reductions.
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
NPDAs Accept Context-Free Languages
PDAs Accept Context-Free Languages
LIMITS OF ALGORITHMIC COMPUTATION
NPDAs Accept Context-Free Languages
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
DPDA Deterministic PDA
Decidable Languages Costas Busch - LSU.
Pumping Lemma for Context-free Languages
Elementary Questions about Regular Languages
Non-regular languages
Decidable Problems of Regular Languages
The Off-Line Machine Input File read-only (once) Input string
Turing acceptable languages and Enumerators
Undecidable problems:
Properties of Context-Free languages
Subject Name: FORMAL LANGUAGES AND AUTOMATA THEORY
Decidability continued….
The Chomsky Hierarchy Costas Busch - LSU.
Presentation transcript:

The Post Correspondence Problem Fall 2006 Costas Busch - RPI

Some undecidable problems for context-free languages: Is ? are context-free grammars Is context-free grammar ambiguous? Fall 2006 Costas Busch - RPI

The Post Correspondence Problem Input: Two sets of strings Fall 2006 Costas Busch - RPI

There is a Post Correspondence Solution if there is a sequence such that: PC-solution: Indices may be repeated or omitted Fall 2006 Costas Busch - RPI

Example: PC-solution: Fall 2006 Costas Busch - RPI

Because total length of strings from Example: There is no solution Because total length of strings from is smaller than total length of strings from Fall 2006 Costas Busch - RPI

The Modified Post Correspondence Problem Inputs: MPC-solution: Fall 2006 Costas Busch - RPI

Example: MPC-solution: Fall 2006 Costas Busch - RPI

Membership problem Input: Turing machine string Question: Undecidable Fall 2006 Costas Busch - RPI

Input: unrestricted grammar string Membership problem Input: unrestricted grammar string Question: Undecidable Fall 2006 Costas Busch - RPI

Suppose we have a decider for the MPC problem String Sequences MPC solution? YES MPC problem decider NO Fall 2006 Costas Busch - RPI

We will build a decider for the membership problem YES Membership problem decider NO Fall 2006 Costas Busch - RPI

Membership problem decider The reduction of the membership problem to the MPC problem: Membership problem decider yes yes MPC problem decider no no Fall 2006 Costas Busch - RPI

Membership problem decider We need to convert the input instance of one problem to the other Membership problem decider yes yes MPC problem decider Reduction? no no Fall 2006 Costas Busch - RPI

Convert grammar and string Reduction: Convert grammar and string to sets of strings and Such that: There is an MPC solution for generates Fall 2006 Costas Busch - RPI

Membership problem decider yes yes Construct MPC problem decider no no Fall 2006 Costas Busch - RPI

Since the membership problem is undecidable, The MPC problem is undecidable END OF PROOF Fall 2006 Costas Busch - RPI

Some undecidable problems for context-free languages: Is ? are context-free grammars Is context-free grammar ambiguous? We reduce the PC problem to these problems Fall 2006 Costas Busch - RPI

grammars. It is undecidable to determine if Theorem: Let be context-free grammars. It is undecidable to determine if (intersection problem) Proof: Reduce the PC problem to this problem Fall 2006 Costas Busch - RPI

Suppose we have a decider for the intersection problem Context-free grammars Empty- interection problem decider YES NO Fall 2006 Costas Busch - RPI

We will build a decider for the PC problem String Sequences PC solution? YES PC problem decider NO Fall 2006 Costas Busch - RPI

PC problem decider no yes yes no The reduction of the PC problem to the empty-intersection problem: PC problem decider no yes Intersection problem decider yes no Fall 2006 Costas Busch - RPI

PC problem decider no yes Reduction? yes no We need to convert the input instance of one problem to the other PC problem decider no yes Intersection problem decider Reduction? yes no Fall 2006 Costas Busch - RPI

Introduce new unique symbols: Context-free grammar : Context-free grammar : Fall 2006 Costas Busch - RPI

has a PC solution if and only if Fall 2006 Costas Busch - RPI

Because are unique There is a PC solution: Fall 2006 Costas Busch - RPI

PC problem decider no yes yes no Construct Intersection Context-Free Grammars Intersection problem decider yes no Fall 2006 Costas Busch - RPI

Since PC is undecidable, the Intersection problem is undecidable END OF PROOF Fall 2006 Costas Busch - RPI

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

PC problem decider no yes yes no Construct Ambiguous Context-Free Grammar Ambiguous problem decider yes no Fall 2006 Costas Busch - RPI

start variable of start variable of start variable of Fall 2006 Costas Busch - RPI

has a PC solution if and only if if and only if is ambiguous Fall 2006 Costas Busch - RPI