3-Dimensional Matching

Input

Set M⊆W×X×YM \subseteq W \times X \times Y, where WW, XX and YY are disjoint sets having the same number qq of elements.

Question

Does MM contain a matching, i.e. a subset M′⊆MM' \subseteq M such that ∣M′∣=q|M'| = q and no two elements of M′M' agree in any coordinate?

Classes

Comments

Remains NP-complete if MM is pairwise consistent, i.e. if for all elements aa, bb, cc, whenever there exist elements ww, zz, and yy such that (a,b,w)∈M(a, b, w) \in M, (a,x,c)∈M(a, x, c) \in M, and (y,b,c)∈M(y, b, c) \in M, then (a,b,c)∈M(a, b, c) \in M. Also remains NP-complete if no element occurs in more than three triples, but is solvable in polynomial time if no element occurs in more than two triples (Garey & Johnson, 1979). The related [problem:2-dimensional-matching] problem (where M⊆W×XM \subseteq W \times X) is also solvable in polynomial time (Lawler, 1976).

Proofs

NP-complete

Transformation from 3-Satisfiability (Karp, 1972).

Reducible from

Reducible to

References