Exact Cover by 3-Sets

Input

Set XX with X=3q|X| = 3q, collection CC of 3-element subsets of XX.

Question

Does CC contain an exact cover for XX, i.e. a subcollection CCC' \subseteq C such that every element of XX occurs in exactly one member of CC'?

Classes

Comments

Remains NP-complete if no element occurs in more than three subsets, but is solvable in polynomial time if no element occurs in more than two subsets (Garey & Johnson, 1979). Related [problem:exact-cover-by-2-sets] problem is also solvable in polynomial time by matching techniques.

Proofs

NP-complete

Transformation from 3-Dimensional Matching (Karp, 1972).

Reducible from

Reducible to

References