chickadee » exact-cover » make-exact-cover

make-exact-cover OPTIONS #!key primary branch-itemsprocedure

Returns the initial search state of an exact cover problem.

OPTIONS is a list of (LABEL ITEM ...): a label (any value, distinct under equal?) and one or more items (non-negative integers).

Items below primary must be covered exactly once, the others at most once. The default is that all items are primary.

branch-items is a list of primary items to branch on in preference to the others.