The exact cover (English Exact Cover ) is a decision problem of combinatorics . It is one of the 21 classic NP-complete problems that Richard M. Karp showed in 1972 to be NP-complete .
Given are a set and a set of non-empty subsets of , that is , where denotes the power set of .
Find a subset of whose disjoint union is:
-
.
That means: Each element in should occur in exactly one of the sets in . The sets in thus form an exact cover of ( is a partition of ).
Graphic representation of the example (the exact overlap is shown in red)
For example be
-
and
-
.
The amount
shows that an exact coverage exists.
See also