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.

Slides:



Advertisements
Similar presentations
CSCI 3130: Formal languages and automata theory Tutorial 9
Advertisements

INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Complex Rational Expressions
4.5 Inherently Ambiguous Context-free Language For some context-free languages, such as arithmetic expressions, may have many different CFG’s to generate.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
AB 11 22 33 44 55 66 77 88 99 10  20  19  18  17  16  15  14  13  12  11  21  22  23  24  25  26  27  28.
Undecidability of the Membership Problem for a Diagonal Matrix in a Matrix Semigroup* Paul Bell University of Liverpool *Joint work with I.Potapov.
Recursion Lecture 18: Nov 18.
Post's Correspondence Problem Word Problem in semi-Thue Systems
Decidable A problem P is decidable if it can be solved by a Turing machine T that always halt. (We say that P has an effective algorithm.) Note that the.
February 6, 2015CS21 Lecture 141 CS21 Decidability and Tractability Lecture 14 February 6, 2015.
Reducibility 2 Theorem 5.1 HALT TM is undecidable.
NKU CSC 685 Kirby First-Order Logic and Undecidability.
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.
July 13 th.  If/ Else if / Else  Variable Scope  Nested if/else's  Switch statements  Conditional Operator.
Fall 2004COMP 3351 Undecidable problems for Recursively enumerable languages continued…
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.
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.
Costas Busch - RPI1 Undecidable problems for Recursively enumerable languages continued…
Fall 2006Costas Busch - RPI1 The Post Correspondence Problem.
Creating Difficult Instances of the Post Correspondence Problem Presenter: Ling Zhao Department of Computing Science University of Alberta March 20, 2001.
Nondeterminism (Deterministic) FA required for every state q and every symbol  of the alphabet to have exactly one arrow out of q labeled . What happens.
Formal Grammars Denning, Sections 3.3 to 3.6. Formal Grammar, Defined A formal grammar G is a four-tuple G = (N,T,P,  ), where N is a finite nonempty.
Decidability A decision problem is a problem with a YES/NO answer. We have seen decision problems for - regular languages: - context free languages: [Sections.
Foundations of (Theoretical) Computer Science Chapter 5 Lecture Notes David Martin (with modifications by Karen Daniels) With thanks.
Context-Free Grammars – Derivations Lecture 15 Section 2.1 Mon, Sep 24, 2007.
EQUIVALENT FRACTIONS Section 4.3 KEY TERMS Fraction –A number in the form of a which represents a b part of a whole Numerator –The top number of a fraction,
Jeff Edmonds York University COSC 4111 Lecture 4 Different ModelsDifferent ModelsDifferent ModelsDifferent Models ReductionsReductionsReductions Simple.
©Brooks/Cole, 2001 Chapter 9 Regular Expressions.
Sec. 5.5 Law of sines.
Reducibility 1. 2 Text book Pages 187– 199 Reducibility A reduction is a way of converting one problem to another problem in such a way that a solution.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 11 Basic Structure : Sets, Functions, Sequences, and Sums Sets Operations.
EQUIVALENT FRACTIONS. Math Vocabulary Equivalent fraction(s): Fractions that are EQUAL to each other, even though they look different.
Transforming Grammars. CF Grammar Terms Parse trees. – Graphical representations of derivations. – The leaves of a parse tree for a fully filled out tree.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
CSCI 3130: Formal languages and automata theory Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
CSE 311 Foundations of Computing I Lecture 24 FSM Limits, Pattern Matching Autumn 2011 CSE 3111.
Suppose a sequence begins 2, 4, …………………. Would could the formula be?
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Undecidable.
CS 221 – May 24 What is it good for? – Many trials or iterations needed for maximum precision – Large input – Intractable problems Please note: – H2 due.
Costas Busch - LSU1 The Post Correspondence Problem.
CS 154 Formal Languages and Computability April 28 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
Section The Product Rule  Example: How many different license plates can be made if each plate contains a sequence of three uppercase English letters.
Lecture 6 Set Theory.
Instructor: Laura Kallmeyer
Context-free grammars, derivation trees, and ambiguity
FORMAL LANGUAGES AND AUTOMATA THEORY
Intro to Theory of Computation
Undecidable problems for CFGs
Undecidable problems for CFGs
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Jaya Krishna, M.Tech, Assistant Professor
CS154, Lecture 8: Undecidability, Mapping Reductions
More Undecidable Problems
CS154, Lecture 8: Undecidability, Mapping Reductions
BOTTOM UP PARSING Lecture 16.
Jeff Edmonds York University
The Post Correspondence Problem
Reducability Sipser, pages
CS21 Decidability and Tractability
Induction (Section 3.3).
Reading: ‘Washington, DC’
Bottom-up parsing is also known as shift-reduce parsing
CS 461 – Nov. 14 Section 5.2 – Undecidable problems starting from ATM:
Subject Name: FORMAL LANGUAGES AND AUTOMATA THEORY
Decidability continued….
Domino Relations Select two dominoes, use the operation desired, then find an equivalent domino using the same operation. You may also use different operations.
Post’s Correspondence Problem
Building pattern  Complete the following tables and write the rule 
Presentation transcript:

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 of dominos are allowed) in such a way so that the top forms the same string as the bottom? b ca abc c ca a a ab

Post Correspondence Problem [Section 5.2] Formally, given is a collection P of dominos: P = { (t 1,b 1 ), (t 2,b 2 ), …, t k,b k ) } A match is a sequence i 1,i 2,…,i s, where t i1 t i2 …t is = b i1 b i2 …b is. The Post Correspondence Problem (PCP) asks if there is a match for P. Thm 5.15: PCP is undecidable.

Post Correspondence Problem [Section 5.2] First, we’ll consider MPCP where we are looking for instances that have a match that starts with the first domino. MPCP = { | P = { (t 1,b 1 ), (t 2,b 2 ), …, t k,b k ) } is a PCP that has match starting with (t_1,b_1) } Claim: PCP is equivalent to MPCP.

Post Correspondence Problem [Section 5.2] Thm 5.15: PCP is undecidable.

Post Correspondence Problem [Section 5.2] Thm: Ambiguity of CFGs is undecidable.