基于广义选择网络的基数约束编码
Encoding Cardinality Constraints using Generalized Selection Networks
摘要:
布尔基数约束规定$n$命题文字中至多(至少或精确地)$k$可以为真。我们提出了一类新的选择网络,可用于它们的有效编码。最近提出了几种用于编码基数约束的比较器网络,实验证明了它们的有效性。这些主要是基于奇偶或成对比较网络。我们使用类似的想法,但我们扩展了比较器网络的模型,使基本组件不仅是比较器(2-排序器),但更一般的$m$ -排序器,为$m \geq 2$。输入被组织到$m$列中,在这些列中递归地选择元素,然后使用多路合并的思想合并列。我们提出了两个算法参数$m \geq 2$。我们称这些网络为$m$ -明智选择网络和$m$ -奇偶选择网络。给出了$m=4$时合并的详细构造。该构造可直接应用于$k$和$n$的任何值。分类器的编码是标准的,因此弧一致性被保留。我们证明了构造的正确性,并提出了理论和实验评估,这表明新的编码是竞争力的其他国家的最先进的编码。
英文摘要:
Boolean cardinality constraints state that at most (at least, or exactly) $k$ out of $n$ propositional literals can be true. We propose a new class of selection networks that can be used for an efficient encoding of them. Several comparator networks have been proposed recently for encoding cardinality constraints and experiments have proved their efficiency. Those were based mainly on the odd-even or pairwise comparator networks. We use similar ideas, but we extend the model of comparator networks so that the basic components are not only comparators (2-sorters) but more general $m$-sorters, for $m \geq 2$. The inputs are organized into $m$ columns, in which elements are recursively selected and, after that, columns are merged using an idea of multi-way merging. We present two algorithms parametrized by $m \geq 2$. We call those networks $m$-Wise Selection Network and $m$-Odd-Even Selection Network. We give detailed construction of the mergers when $m=4$. The construction can be directly applied to any values of $k$ and $n$. The proposed encoding of sorters is standard, therefore the arc-consistency is preserved. We prove correctness of the constructions and present the theoretical and experimental evaluation, which show that the new encodings are competitive to the other state-of-art encodings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。