pith. sign in

arxiv: 1810.12975 · v1 · pith:25EWGPEXnew · submitted 2018-10-27 · 💻 cs.LO · math.CO

A comparison of encodings for cardinality constraints in a SAT solver

classification 💻 cs.LO math.CO
keywords encodingsmultiplesolutionscardinalityclausesconstraintsencodingfound
0
0 comments X
read the original abstract

Cardinality constraints are important in many Sat problems; previous studies provide contradictory conclusions about the best encoding to use. Here, three encodings are compared: Sinz's sequential-counter, Bailleux and Boufkhad's tree-based, and Ab\'{\i}o and coworkers' sort-based approaches. The sequential-counter approach is found to be the fastest of these for a range of related, combinatorial test cases. All encodings permit multiple solutions in the auxiliary variables for a single solution to the main variables; the numbers of multiple solutions can be very large, and might impede a Sat solver. Variants of the encodings are developed, where extra clauses reduce the numbers of multiple solutions. These variants are found to have remarkably little effect on solution time, even when the number of clauses is approximately doubled. The results accentuate the well-known observation that clause count and other measures of encoding size are not reliable indicators of the difficulty of a Sat problem.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Near-Optimal Encodings of Cardinality Constraints

    cs.CC 2026-03 conditional novelty 8.0

    New encodings achieve 2n + 2√(2n) + O(n^{1/3}) clauses for AtMostOne, refuting prior optimality conjectures, with a matching lower bound and grid compression yielding 2n + o(n) clauses for AtMost_k when k = o(n^{1/3}).