Skip to main content

A Soft Constraint of Equality: Complexity and Approximability

  • Conference paper
Book cover Principles and Practice of Constraint Programming (CP 2008)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 5202))

Abstract

We introduce the SoftAllEqual global constraint, which maximizes the number of equalities holding between pairs of assignments to a set of variables. We study the computational complexity of propagating this constraint, showing that it is intractable in general, since maximizing the number of pairs of equally assigned variables in a set is NP-hard. We propose three ways of coping with NP-hardness. Firstly, we develop a greedy linear-time algorithm to approximate the maximum number of equalities within a factor of 2. Secondly, we identify a tractable (polynomial) class for this constraint. Thirdly, we identify a parameter based on this class and show that the SoftAllEqual constraint is fixed-parameter tractable with respect to this parameter.

This work was supported by Science Foundation Ireland (Grant Number 05/IN/I886). Hebrard is also supported by an Embark Initiative (IRCSET) Post-doctoral Fellowship.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 99.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 129.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Bailleux, O., Marquis, P.: Some Computational Aspects of Distance-SAT. Journal of Automated Reasoning 37(4), 231–260 (2006)

    Article  MATH  MathSciNet  Google Scholar 

  2. Beldiceanu, N.: Pruning for the Minimum Constraint Family and for the Number of Distinct Values Constraint Family. In: Walsh, T. (ed.) CP 2001. LNCS, vol. 2239, pp. 211–224. Springer, Heidelberg (2001)

    Chapter  Google Scholar 

  3. Bessière, C., Hebrard, E., Hnich, B., Kiziltan, Z., Walsh, T.: Filtering Algorithms for the NValue Constraint. In: Barták, R., Milano, M. (eds.) CPAIOR 2005. LNCS, vol. 3524, pp. 79–93. Springer, Heidelberg (2005)

    Google Scholar 

  4. Crescenzi, P., Rossi, G.: On the Hamming Distance of Constraint Satisfaction Problems. Theor. Comput. Sci. 288(1), 85–100 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  5. Forbus, K.D.: Introducing Actions into Qualitative Simulation. In: IJCAI, pp. 1273–1278 (1989)

    Google Scholar 

  6. Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-completeness. W.H. Freeman and Company, New York (1979)

    MATH  Google Scholar 

  7. Hebrard, E., Hnich, B., O’Sullivan, B., Walsh, T.: Finding Diverse and Similar Solutions in Constraint Programming. In: AAAI, pp. 372–377 (2005)

    Google Scholar 

  8. Hebrard, E., O’Sullivan, B., Walsh, T.: Distance Constraints in Constraint Satisfaction. In: IJCAI, pp. 106–111 (2007)

    Google Scholar 

  9. Niedermeier, R.: Invitation to Fixed-Parameter Algorithms. Oxford University Press, Oxford (2006)

    MATH  Google Scholar 

  10. Petit, T., Régin, J.-C., Bessière, C.: Specific Filtering Algorithms for Over-Constrained Problems. In: CP, pp. 451–463 (2001)

    Google Scholar 

  11. Régin, J.-C.: A Filtering Algorithm for Constraints of Difference in CSPs. In: AAAI, pp. 362–367 (1994)

    Google Scholar 

  12. Régin, J.-C., Petit, T., Bessière, C., Puget, J.-F.: An Original Constraint Based Approach for Solving over Constrained Problems. In: CP, pp. 543–548 (2000)

    Google Scholar 

  13. Smyth, B., McClave, P.: Similarity vs. Diversity. In: Aha, D.W., Watson, I. (eds.) ICCBR 2001. LNCS (LNAI), vol. 2080, pp. 347–361. Springer, Heidelberg (2001)

    Chapter  Google Scholar 

  14. Tversky, A.: Features of Similarity. Psychological Review 84, 327–352 (1977)

    Article  Google Scholar 

  15. van Hoeve, W.-J., Pesant, G., Rousseau, L.-M.: On Global Warming: Flow-Based Soft Global Constraints. Journal of Heuristics 12(4-5), 347–373 (2006)

    Article  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Peter J. Stuckey

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Hebrard, E., O’Sullivan, B., Razgon, I. (2008). A Soft Constraint of Equality: Complexity and Approximability. In: Stuckey, P.J. (eds) Principles and Practice of Constraint Programming. CP 2008. Lecture Notes in Computer Science, vol 5202. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-85958-1_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-85958-1_24

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-85957-4

  • Online ISBN: 978-3-540-85958-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics