Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Strange behavior of acyclic/2 constraint

30 views
Skip to first unread message

Peter Bernschneider

unread,
May 5, 2024, 2:20:10 PM5/5/24
to Picat
When solving the Janko Wamuzu puzzle I had used a matrix M containing arrows to describe the paths between respectively two circle squares. For instance 1 I got a result containing cycles. I then included the acyclic constraint (see line 29) and found the correct solution (see wamuzu_en.pi).
But for instance 17 the SAT solver found no solution. I then removed the acyclic constraint and got the correct solution, which in my eyes is acyclic anyway (see attached screen shot).
Is it possible, that acyclic/2 has a bug?
Cheers, Peter

wamuzu17.png

Neng-Fa Zhou

unread,
May 6, 2024, 9:37:44 AM5/6/24
to Picat
Hi Peter,

Thank you for the program. Yes, your program reveals a bug in the newly added constraint acyclic_d. The decomposer of the constraint over-constrains when there are side constraints involved in addition to acyclicity. The bug has been fixed and a patched version (3.6#5) has been released.

Cheers,
NF
Reply all
Reply to author
Forward
0 new messages