Generalised arc consistency for the AllDifferent constraint: An empirical survey

  • Authors:
  • Ian P. Gent;Ian Miguel;Peter Nightingale

  • Affiliations:
  • School of Computer Science, University of St Andrews, St Andrews, Fife KY16 9SX, UK;School of Computer Science, University of St Andrews, St Andrews, Fife KY16 9SX, UK;School of Computer Science, University of St Andrews, St Andrews, Fife KY16 9SX, UK

  • Venue:
  • Artificial Intelligence
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

The AllDifferent constraint is a crucial component of any constraint toolkit, language or solver, since it is very widely used in a variety of constraint models. The literature contains many different versions of this constraint, which trade strength of inference against computational cost. In this paper, we focus on the highest strength of inference, enforcing a property known as generalised arc consistency (GAC). This work is an analytical survey of optimizations of the main algorithm for GAC for the AllDifferent constraint. We evaluate empirically a number of key techniques from the literature. We also report important implementation details of those techniques, which have often not been described in published papers. We pay particular attention to improving incrementality by exploiting the strongly-connected components discovered during the standard propagation process, since this has not been detailed before. Our empirical work represents by far the most extensive set of experiments on variants of GAC algorithms for AllDifferent. Overall, the best combination of optimizations gives a mean speedup of 168 times over the same implementation without the optimizations.