Post-Correspondence Problem (PCP): A Structured “Short Note” for Learning

Post-Correspondence Problem (PCP): A Structured “Short Note” for Learning

Verified Sources
Sep 12, 2026

The Post Correspondence Problem (PCP) is a classic question in theoretical computer science used to demonstrate limits of computation. Given a finite set of “dominoes,” each with an upper string and a lower string over some alphabet, PCP asks whether there exists a nonempty sequence of domino indices such that the concatenation of upper strings equals the concatenation of lower strings.

Formally, an instance of PCP consists of pairs of strings (u1,v1),(u2,v2),,(un,vn)(u_1,v_1),(u_2,v_2),\dots,(u_n,v_n) over an alphabet Σ\Sigma. The problem asks whether there exists a length-kk sequence of indices (i1,i2,,ik)with k1(i_1,i_2,\dots,i_k)\quad\text{with }k\ge 1 such that ui1ui2uik=vi1vi2vik.u_{i_1}u_{i_2}\cdots u_{i_k}=v_{i_1}v_{i_2}\cdots v_{i_k}.

This simple-looking “string matching by concatenation” problem is undecidable: there is no general algorithm that decides PCP for every possible domino set. The undecidability result is attributed to Emil Post (and PCP is widely presented as a foundational stepping stone toward later undecidability theorems).2

Key learning terms:

  • instance: the domino list
  • concatenation: ui1uiku_{i_1}\cdots u_{i_k}
  • solution (witness): (i1,,ik)(i_1,\dots,i_k)

Mermaid view of what PCP is trying to “align”:

Footnotes

  1. Post correspondence problem - Defines PCP and states undecidability context.

  2. Emil Post - Background on Post and the historical place of PCP in computability.

Post Correspondence Problem (PCP) explained

Why PCP matters (high-level intuition)

PCP acts as a “universal template” for encoding computations. The undecidability proof shows that the question “does there exist a matching concatenation?” can simulate arbitrary computation steps. In other words, a hypothetical PCP-decider would enable solving other problems known to be undecidable (e.g., certain halting-type problems). This is why PCP is used as a standard reduction target in computability theory.2

reduction is the key idea: prove PCP undecidable by reducing from a known undecidable problem. Once you can embed computations into domino concatenations, any algorithm for PCP would indirectly solve the embedded source problem—impossible if the source is undecidable.

Footnotes

  1. Post correspondence problem - Defines PCP and states undecidability context.

  2. Emil Post - Background on Post and the historical place of PCP in computability.

How to reason about PCP instances

  1. 1
    Step 1

    List (ui,vi)(u_i,v_i) for each domino ii. Ensure all strings are over a common alphabet Σ\Sigma.

  2. 2
    Step 2

    Choose indices (i1,,ik)(i_1,\dots,i_k) with k1k\ge 1 (a witness).

  3. 3
    Step 3

    Compute ui1ui2uiku_{i_1}u_{i_2}\cdots u_{i_k}.

  4. 4
    Step 4

    Compute vi1vi2vikv_{i_1}v_{i_2}\cdots v_{i_k}.

  5. 5
    Step 5

    If the two concatenations are identical, the instance is a YES-instance; otherwise, the chosen sequence is not a solution.

Pro Tip: think in terms of witnesses

PCP is existential: a solution is a finite witness sequence of indices. For small instances you can brute-force search, but undecidability says no strategy works in general.

Example of a PCP “matching sequence” (concrete computation)

Suppose the instance includes dominoes: (u1,v1)=("a","a"),(u2,v2)=("ab","b").(u_1,v_1)=("a","a"),\quad (u_2,v_2)=("ab","b"). Consider the sequence (1,2)(1,2). Then:

  • Top concatenation: u1u2="a""ab"="aab"u_1u_2 = "a" \cdot "ab" = "aab"
  • Bottom concatenation: v1v2="a""b"="ab"v_1v_2 = "a" \cdot "b" = "ab"

These are not equal, so (1,2)(1,2) is not a solution.

If instead there existed some sequence (i1,,ik)(i_1,\dots,i_k) with equal concatenations, that sequence would be a witness for a YES answer.

This is exactly the behavior the PCP decision question asks about, for arbitrary domino sets.2

Footnotes

  1. Post correspondence problem - Defines PCP and states undecidability context.

  2. Emil Post - Background on Post and the historical place of PCP in computability.

Modified variants (brief context)

A common closely related variant is the Modified Post Correspondence Problem (MPCP) (sometimes called “modified PCP”). MPCP changes boundary conditions (e.g., fixed first/last domino constraints) but remains central in reductions and undecidability arguments. While different texts define MPCP constraints slightly differently, the overall theme is the same: enforce structured matching while retaining undecidability.

boundary condition: what MPCP alters relative to PCP.

Footnotes

  1. Modified Post correspondence problem - Defines MPCP as a related variant used in undecidability arguments.

PCP reasoning modes

Comparing practical checking vs. general decision capability

How PCP fits into computability theory (conceptual timeline)

Domino matching as a decision problem

Formulation

Convert string-concatenation equality into a yes/no existence question."

Encode computations into domino concatenations

Undecidability proof idea

Use reductions to show that solving PCP would imply solving a known undecidable problem."

Reduction target for other theorems

Use in later results

Many undecidability proofs reduce from PCP or MPCP to the problem of interest."

Common pitfalls & edge cases

Knowledge Check

Question 1 of 4
Q1Single choice

In PCP, what does a YES-instance mean?