Extended Conjunctive Normal Form and An Efficient Algorithm for Cardinality Constraints

Extended Conjunctive Normal Form and An Efficient Algorithm for Cardinality Constraints

Zhendong Lei, Shaowei Cai, Chuan Luo

Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence
Main track. Pages 1141-1147. https://doi.org/10.24963/ijcai.2020/159

Satisfiability (SAT) and Maximum Satisfiability (MaxSAT) are two basic and important constraint problems with many important applications. SAT and MaxSAT are expressed in CNF, which is difficult to deal with cardinality constraints. In this paper, we introduce Extended Conjunctive Normal Form (ECNF), which expresses cardinality constraints straightforward and does not need auxiliary variables or clauses. Then, we develop a simple and efficient local search solver LS-ECNF with a well designed scoring function under ECNF. We also develop a generalized Unit Propagation (UP) based algorithm to generate the initial solution for local search. We encode instances from Nurse Rostering and Discrete Tomography Problems into CNF with three different cardinality constraint encodings and ECNF respectively. Experimental results show that LS-ECNF has much better performance than state of the art MaxSAT, SAT, Pseudo-Boolean and ILP solvers, which indicates solving cardinality constraints with ECNF is promising.
Keywords:
Constraints and SAT: Constraint Satisfaction
Constraints and SAT: SAT: : Solvers and Applications
Constraints and SAT: MaxSAT, MinSAT