Skip to content

[Rule] ThreeDimensionalMatching to ExactCoverBy3Sets #1103

Description

@isPANN

Source

ThreeDimensionalMatching

Target

ExactCoverBy3Sets

Motivation

The tagged-disjoint-union construction exposes the direct equivalence between perfect 3-dimensional matching and exact cover by 3-sets. It adds a missing decision-to-decision connection between two canonical set problems with identity solution extraction.

Reference

Karp, “Reducibility Among Combinatorial Problems,” 1972; Garey and Johnson, Computers and Intractability, 1979, Appendix A (3-Dimensional Matching and Exact Cover by 3-Sets definitions). The direction below follows directly from the definitions.

Reduction Algorithm

Let the source contain three coordinate domains W=X=Y={0,...,q-1} and triples M=(t_0,...,t_{r-1}).

  1. Create target universe {0,...,3q-1}, interpreted as the tagged disjoint union W union X union Y.
  2. Map source triple (w,x,y) to target subset {w, q+x, 2q+y}.
  3. Keep the configuration vector unchanged: selecting a target subset selects the corresponding source triple.

Every target subset has three distinct tagged elements even when w=x numerically. Selecting q pairwise disjoint target subsets covers all 3q elements iff the corresponding triples use every coordinate in each domain exactly once.

Size Overhead

Target metric Formula
universe_size 3 * universe_size
num_subsets num_triples
num_sets num_triples

Validation Method

  • Exhaust every family of triples for q=2 and compare witness configurations exactly.
  • Test duplicate triples, empty q=0, unused coordinates, and triples with equal numeric coordinates across domains.
  • Verify identity extraction and target tagging.

Example

  1. Source instance: q=3, triples [(0,0,0),(1,1,1),(2,2,2),(0,1,2),(1,2,0)].
  2. Construction: target universe {0,...,8} and subsets {0,3,6}, {1,4,7}, {2,5,8}, {0,4,8}, {1,5,6}.
  3. Target instance: X3C with five candidate subsets and exact-cover size 3.
  4. Round trip: selecting the first three subsets covers every target element exactly once and maps to the diagonal perfect matching. The two cross triples are mutually disjoint, but no available third triple covers the remaining tagged coordinates without overlap, so this partial matching cannot be extended to an exact cover.

BibTeX

@incollection{Karp1972,
  author = {Karp, Richard M.},
  title = {Reducibility Among Combinatorial Problems},
  booktitle = {Complexity of Computer Computations},
  pages = {85--103},
  publisher = {Springer},
  year = {1972},
  doi = {10.1007/978-1-4684-2001-2_9}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    GoodAn issue passed all checks.ruleA new reduction rule to be added.

    Type

    No type

    Projects

    Status
    Final review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions