再论SeqBin约束
The SeqBin Constraint Revisited
摘要:
我们重新考虑SeqBin约束。这个元约束包含了许多重要的全局约束,如Change,Smooth和IncreasingNValue。我们表明,以前提出的SeqBin过滤算法有两个缺点,即使在很强的限制:它不检测界限disentailment,它不是幂等的。我们确定这些问题的原因,并提出了一个新的传播,克服这两个问题。我们的算法是基于一个连接的问题,找到一个路径的一个给定的成本在一个限制$n$ -部图。我们的传播器在O(nd^2)内强制域一致性,对于SeqBin的特殊情况,包括Change,Smooth和IncreasingNValue,在O(nd)时间内。
英文摘要:
We revisit the SeqBin constraint. This meta-constraint subsumes a number of important global constraints like Change, Smooth and IncreasingNValue. We show that the previously proposed filtering algorithm for SeqBin has two drawbacks even under strong restrictions: it does not detect bounds disentailment and it is not idempotent. We identify the cause for these problems, and propose a new propagator that overcomes both issues. Our algorithm is based on a connection to the problem of finding a path of a given cost in a restricted $n$-partite graph. Our propagator enforces domain consistency in O(nd^2) and, for special cases of SeqBin that include Change, Smooth and IncreasingNValue, in O(nd) time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。