anthem-rs/examples/example-exact-cover.lp

6 lines
138 B
Plaintext
Raw Normal View History

{in_cover(1..n)}.
2020-05-07 02:54:13 +02:00
:- I != J, in_cover(I), in_cover(J), s(X, I), s(X, J).
covered(X) :- in_cover(I), s(X, I).
:- s(X, I), not covered(X).