Underestimating the cost of a soft constraint is dangerous: revisiting the edit-distance based soft regular constraint

  • Authors:
  • Jun He;Pierre Flener;Justin Pearson

  • Affiliations:
  • Department of Information Technology, Uppsala University, Uppsala, Sweden 751 05 and School of Information System and Management, National University of Defense Technology, Changsha, China 410073;Department of Information Technology, Uppsala University, Uppsala, Sweden 751 05;Department of Information Technology, Uppsala University, Uppsala, Sweden 751 05

  • Venue:
  • Journal of Heuristics
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

Many real-life problems are over-constrained, so that no solution satisfying all their constraints exists. Soft constraints, with costs denoting how much the constraints are violated, are used to solve these problems. We use the edit-distance based SoftRegular constraint as an example to show that a propagation algorithm that sometimes underestimates the cost may guide the search to incorrect (non-optimal) solutions to an over-constrained problem. To compute correctly the cost for the edit-distance based SoftRegular constraint, we present a quadratic-time propagation algorithm based on dynamic programming and a proof of its correctness. We also give an improved propagation algorithm using an idea of computing the edit distance between two strings, which may also be applied to other constraints with propagators based on dynamic programming. The asymptotic time complexity of our improved propagator is always at least as good as the one of our quadratic-time propagator, but significantly better when the edit distance is small. Our propagators achieve domain consistency on the problem variables and bounds consistency on the cost variable. Our method can also be adapted for the violation measure of the edit-distance based Regular constraint for constraint-based local search.