Post Correspondence Problem and Applications

Graduate Depth 69 in the knowledge graph I know this Set as goal
pcp undecidability tiling string-matching canonical

Core Idea

The Post Correspondence Problem (PCP) asks: given domino pairs (u₁, v₁), ..., (uₙ, vₙ) of strings, can you arrange them to form identical strings? PCP is undecidable without direct reference to TMs—undecidability arises from combinatorial structure. PCP reductions elegantly prove undecidability of grammar problems (CFG equivalence, ambiguity of unrestricted grammars).

Explainer

From your work on reduction techniques, you know that proving a problem undecidable typically involves showing that a known undecidable problem (like the halting problem) can be reduced to it. The Post Correspondence Problem (PCP) is valuable because it provides an undecidable problem that looks nothing like Turing machines — it is purely about string manipulation — yet carries the same computational power, making it an ideal intermediate step for proving other problems undecidable.

Here is the setup. You are given a finite collection of dominoes, each with a string on top and a string on bottom. For example: domino 1 has "ab" on top and "a" on bottom; domino 2 has "b" on top and "ba" on bottom; domino 3 has "a" on top and "ab" on bottom. You may use any domino as many times as you like, in any order. The question is: can you arrange a sequence of dominoes so that the concatenation of all the top strings exactly equals the concatenation of all the bottom strings? In this example, choosing dominoes 1, 2, 3 gives top = "ab" + "b" + "a" = "abba" and bottom = "a" + "ba" + "ab" = "abba" — a match. Finding such a sequence, or determining that none exists, is the PCP.

The undecidability of PCP is established by reducing the acceptance problem for Turing machines to it. The construction encodes a TM's computation history — its sequence of configurations — into domino pairs, so that a matching sequence of dominoes exists if and only if the TM accepts its input. The top strings always "lag behind" the bottom strings by one configuration step, and the dominoes are designed so the only way to close this gap and achieve a match is if the TM reaches an accepting state. This encoding is intricate but the key insight is that the combinatorial freedom of choosing and repeating dominoes can simulate arbitrary computation.

PCP's real power is as a reduction tool. Because it involves only string concatenation and matching — no tapes, heads, or states — it connects naturally to problems about formal languages and grammars. For instance, proving that equivalence of context-free grammars is undecidable becomes straightforward by reducing PCP to it: construct two CFGs whose generated languages correspond to the top and bottom concatenations of domino sequences, so the grammars generate the same language if and only if PCP has a solution. Similarly, PCP reductions prove undecidability of ambiguity for context-free grammars and various properties of unrestricted grammars. PCP thus serves as a bridge between the Turing machine world and the formal language world, making many undecidability proofs cleaner and more direct than going through the halting problem itself.

Practice Questions 5 questions

Prerequisite Chain

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsOperators and ExpressionsArithmetic Operators and Operator PrecedenceComparison Operators and Boolean TestsLogical Operators and Boolean AlgebraBoolean Algebra and Fundamental LawsCombinational Circuit DesignFlip-Flops and LatchesFinite State Machines (FSMs)Deterministic Finite Automata (DFA)Nondeterministic Finite Automata (NFA)Two-Way Finite AutomataNFA to DFA Conversion (Subset Construction)DFA Properties and Minimization AlgorithmsRegular Languages: Definition and CharacterizationContext-Free Grammars (CFGs)Pushdown Automata (PDA)Equivalence of CFGs and Pushdown AutomataClosure Properties of Context-Free LanguagesLimitations of Context-Free LanguagesPumping Lemma for Context-Free LanguagesTuring MachinesVariants of Turing Machines and EquivalenceUniversal Turing Machine and Self-SimulationChurch-Turing Thesis and ComputabilityDecidable LanguagesThe Halting ProblemRecognizability vs. DecidabilityUndecidable Problems and the Halting ProblemReduction Techniques for Proving UndecidabilityPost Correspondence Problem and Applications

Longest path: 70 steps · 291 total prerequisite topics

Prerequisites (1)

Leads To (0)

No topics depend on this one yet.