skip to main content
10.1007/11564751_73guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

Towards an optimal CNF encoding of Boolean cardinality constraints

Published: 01 October 2005 Publication History

Abstract

We consider the problem of encoding Boolean cardinality constraints in conjunctive normal form (CNF). Boolean cardinality constraints are formulae expressing that at most (resp. at least) k out of n propositional variables are true. We give two novel encodings that improve upon existing results, one which requires only 7n clauses and 2n auxiliary variables, and another one demanding O(n·k) clauses, but with the advantage that inconsistencies can be detected in linear time by unit propagation alone. Moreover, we prove a linear lower bound on the number of required clauses for any such encoding.

References

[1]
Küchlin, W., Sinz, C.: Proving consistency assertions for automotive product data management. J. Automated Reasoning 24, 145-163 (2000)
[2]
Cabon, B., de Givry, S., Lobjois, L., Schiex, T., Warners, J.P.: Radio link frequency assignment. Constraints 4, 79-89 (1999)
[3]
Bailleux, O., Boufkhad, Y.: Efficient CNF encoding of boolean cardinality constraints. In: Rossi, F. (ed.) CP 2003. LNCS, vol. 2833, pp. 108-122. Springer, Heidelberg (2003)
[4]
Warners, J.P.: A linear-time transformation of linear inequalities into conjunctive normal form. Inf. Process. Lett. 68, 63-69 (1998)
[5]
Tseitin, G.S.: On the complexity of derivation in propositional calculus. In: Slisenko, A.O. (ed.) Studies in Constructive Mathematics and Mathematical Logic, pp. 115-125 (1970)
[6]
Jackson, P., Sheridan, D.: The optimality of a fast CNF conversion and its use with SAT. Technical Report APES-82-2004, APES Research Group (2004), Available from http://www.dcs.st-and.ac.uk/~apes/apesreports.html
[7]
Muller, D.E., Preparata, F.P.: Bounds to complexities of networks for sorting and for switching. J. ACM 22, 195-201 (1975)
[8]
Wegener, I.: The Complexity of Boolean Functions. Wiley-Teubner, Chichester (1987)

Cited By

View all
  • (2024)A uniform language to explain decision treesProceedings of the 21st International Conference on Principles of Knowledge Representation and Reasoning10.24963/kr.2024/6(60-70)Online publication date: 2-Nov-2024
  • (2024)Engineering an exact pseudo-boolean model counterProceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence and Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence10.1609/aaai.v38i8.28660(8200-8208)Online publication date: 20-Feb-2024
  • (2024)SuperStack: Superoptimization of Stack-Bytecode via Greedy, Constraint-Based, and SAT TechniquesProceedings of the ACM on Programming Languages10.1145/36564358:PLDI(1437-1462)Online publication date: 20-Jun-2024
  • Show More Cited By
  1. Towards an optimal CNF encoding of Boolean cardinality constraints

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image Guide Proceedings
    CP'05: Proceedings of the 11th International Conference on Principles and Practice of Constraint Programming
    October 2005
    883 pages
    ISBN:9783540292388
    • Editor:
    • Peter van Beek

    Sponsors

    • Spanish Ministry of Education and Science
    • Intelligent Information Systems Institute
    • Cork Constraint Computation Centre
    • Association for Constraint Programming
    • CoLogNET: CoLogNET

    Publisher

    Springer-Verlag

    Berlin, Heidelberg

    Publication History

    Published: 01 October 2005

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 06 Jan 2025

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    View options

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media