The Impact of Literal Sorting on Cardinality Constraint Encodings

Abstract

The effectiveness of satisfiability solvers strongly depends on the quality of the encoding of a given problem into conjunctive normal form. Cardinality constraints are prevalent in numerous problems, prompting the development and study of various types of encoding. We present a novel approach to optimizing cardinality constraint encodings by exploring the impact of literal orderings within the constraints. By strategically placing related literals nearby each other, the encoding generates auxiliary variables in a hierarchical structure, enabling the solver to reason more abstractly about groups of related literals. Unlike conventional metrics such as formula size or propagation strength, our method leverages structural properties of the formula to redefine the roles of auxiliary variables to enhance the solver's learning capabilities. The experimental evaluation on benchmarks from the maximum satisfiability competition demonstrates that literal orderings can be more influential than the choice of the encoding type. Our literal ordering technique improves solver performance across various encoding techniques, underscoring the robustness of our approach.

Cite

Text

Reeves et al. "The Impact of Literal Sorting on Cardinality Constraint Encodings." AAAI Conference on Artificial Intelligence, 2025. doi:10.1609/AAAI.V39I11.33232

Markdown

[Reeves et al. "The Impact of Literal Sorting on Cardinality Constraint Encodings." AAAI Conference on Artificial Intelligence, 2025.](https://mlanthology.org/aaai/2025/reeves2025aaai-impact/) doi:10.1609/AAAI.V39I11.33232

BibTeX

@inproceedings{reeves2025aaai-impact,
  title     = {{The Impact of Literal Sorting on Cardinality Constraint Encodings}},
  author    = {Reeves, Joseph E. and Filipe, João and Hsu, Min-Chien and Martins, Ruben and Heule, Marijn J. H.},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2025},
  pages     = {11327-11335},
  doi       = {10.1609/AAAI.V39I11.33232},
  url       = {https://mlanthology.org/aaai/2025/reeves2025aaai-impact/}
}