anthem-rs/examples/exact-cover.lp

6 lines
114 B
Plaintext
Raw Normal View History

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