Definition
Exact Cover Problem
The Exact Cover Problem is a variant of the Set Cover Problem. The union of all subsets
must exactly match .
Reductions
Reduction to SAT
Let
Let
From that, two conditions of this problem emerge:
-
Every
must be contained by at least one , i.e.: where
, meaning the set of the indices of the set that contain . -
Every
must be contained by at most one . where
(De Morgan). The condition can be rewritten using index-pairs:
As a result, the SAT CNF formula is: