Cardinality Networks: a theoretical and empirical study

  • Authors:
  • Roberto Asín;Robert Nieuwenhuis;Albert Oliveras;Enric Rodríguez-Carbonell

  • Affiliations:
  • Technical University of Catalonia, Barcelona, Spain;Technical University of Catalonia, Barcelona, Spain;Technical University of Catalonia, Barcelona, Spain;Technical University of Catalonia, Barcelona, Spain

  • Venue:
  • Constraints
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

We introduce Cardinality Networks, a new CNF encoding of cardinality constraints. It improves upon the previously existing encodings such as the sorting networks of Eén and Sörensson (JSAT 2:1---26, 2006) in that it requires much less clauses and auxiliary variables, while arc consistency is still preserved: e.g., for a constraint x 1驴+驴...驴+驴x n 驴驴驴k, as soon as k variables among the x i 's become true, unit propagation sets all other x i 's to false. Our encoding also still admits incremental strengthening: this constraint for any smaller k is obtained without adding any new clauses, by setting a single variable to false. Here we give precise recursive definitions of the clause sets that are needed and give detailed proofs of the required properties. We demonstrate the practical impact of this new encoding by careful experiments comparing it with previous encodings on real-world instances.