Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article

Constraint programming viewed as rule-based programming

Published: 01 November 2001 Publication History

Abstract

We study here a natural situation when constraint programming can be entirely reduced to rule-based programming. To this end we explain first how one can compute on constraint satisfaction problems using rules represented by simple first-order formulas. Then we consider constraint satisfaction problems that are based on predefined, explicitly given constraints. To solve them we first derive rules from these explicitly given constraints and limit the computation process to a repeated application of these rules, combined with labeling. We consider two types of rule here. The first type, that we call equality rules, leads to a new notion of local consistency, called rule consistency that turns out to be weaker than arc consistency for constraints of arbitrary arity (called hyper-arc consistency in Marriott & Stuckey (1998)). For Boolean constraints rule consistency coincides with the closure under the well-known propagation rules for Boolean constraints. The second type of rules, that we call membership rules, yields a rule-based characterization of arc consistency. To show feasibility of this rule-based approach to constraint programming, we show how both types of rules can be automatically generated, as CHR rules of Frühwirth (1995). This yields an implementation of this approach to programming by means of constraint logic programming. We illustrate the usefulness of this approach to constraint programming by discussing various examples, including Boolean constraints, two typical examples of many valued logics, constraints dealing with Waltz's language for describing polyhedral scenes, and Allen's qualitative approach to temporal logic.

References

[1]
Abdennadher, S. & Rigotti, C. (2000) Automatic generation of propagation rules for finite domains. In: Dechter, R. (ed.), Proceedings of the 6th International Conference on Principles and Practice of Constraint Programming (CP'00), pp. 18-34. Lecture Notes in Computer Science 1894. Springer-Verlag.
[2]
Agrawal, R., Mannila, H., Srikant, R., Toivonen & Verkamo, A. I. (1996) Fast discovery of association rules. In: Fayyad, U. M., Piatetsky-Shapiro, G., Smyth, P. & Uthurusamy, R. (eds.), Advances in Knowledge Discovery and Data Mining, pp. 307-328. AAAI Press.
[3]
Allen, J. F. (1983) Maintaining knowledge about temporal intervals. Comm. ACM, 26(11), 832-843.
[4]
Apt, K. R. (1998) A proof theoretic view of constraint programming. Fundamenta informaticae, 33(3), 263-293. (Available via http://arXiv.org/archive/cs/.)
[5]
Apt, K. R. (1999a) The essence of constraint propagation. Theoretical Computer Science, 221(1-2), 179-210. (Available via http://arXiv.org/archive/cs/.)
[6]
Apt, K. R. (1999b) The rough guide to constraint propagation. In: Jaffar, J. (ed.), Fifth International Conference on Principles and Practice of Constraint Programming (CP'99), pp. 1-23. Lecture Notes in Computer Science 1713. Springer-Verlag. (Available via http://arXiv.org/archive/cs/.)
[7]
Apt, K. R. & Monfroy, E. (1999) Automatic generation of constraint propagation algorithms for small finite domains. In: Jaffar, J. (ed.), Fifth International Conference on Principles and Practice of Constraint Programming (CP'99), pp. 58-72. Lecture Notes in Computer Science. Springer-Verlag. (Available via http://arXiv.org/archive/cs/.)
[8]
Apt, K. R. (2000) Some remarks on Boolean constraint propagation. In: Apt, K. R., Kakas, A. C., Monfroy, E. & Rossi, F. (eds.), New Trends in Constraints: Lecture Notes in Artificial Intelligence 1865, pp. 91-107. Springer-Verlag. (Available via http://arXiv.org/archive/cs/.)
[9]
Bessière, C. (1999) Non-binary constraints. In: Jaffar, J. (ed.), Proceedings of the 5th International Conference on Principles and Practice of Constraint Programming (CP'99): Lecture Notes in Computer Science 1713, pp. 24-27. Springer-Verlag.
[10]
Bessière, C. & Régin, J. C. (1997) Arc consistency for generalized constraint networks: preliminary results. Proceedings International Joint Conference on Artificial Intelligence (IJCAI'97), p. 398-404.
[11]
Borovansky, P., Kirchner, C., Kirchner, H., Moreau, P.-E. & Ringeissen, Ch. (1998) An Overview of ELAN. In: Kirchner, C. & Kirchner, H. (eds.), Proceedings Second International Workshop on Rewriting Logic and its Applications: Electronic Notes in Theoretical Computer Science 15, pp. 398-404. Elsevier.
[12]
By, T. (1997) Line labelling by meta-programming. Technical report CS-97-07, University of Sheffield, UK.
[13]
Caseau, Y. & Laburthe, F. (1996) Introduction to the CLAIRE programming language. Technical report, Departement Mathématiques et Informatique, Ecole Normale Supérieure, Paris, France.
[14]
Castro, C. (1998) Building constraint satisfaction problem solvers using rewrite rules and strategies. Fundamenta informaticae, 33(3), 263-293.
[15]
Davis, E. (1987) Constraint propagation with interval labels. Artif. Intell., 32(3), 281-331.
[16]
Dechter, R. & van Beek, P. (1997) Local and global relational consistency. Theoretical Computer Science, 173(1), 283-308.
[17]
Fleming, J. (2000) Rainy day games. Dell Logic Puzzles 67, 7.
[18]
Forgy, C. L. (1981) The OPS5 user's manual. Technical report CMU-CS-81-135, Carnegie-Mellon University.
[19]
Frühwirth, T. (1998) Theory and practice of constraint handling rules. J. Logic Programming, 37(1-3), 95-138. (Special Issue on Constraint Logic Programming (P. Stuckey and K. Marriot, eds.).).
[20]
Frühwirth, T. (1995) Constraint handling rules. In: Podelski, A. (ed.), Constraint programming: Basics and trends: Lecture Notes in Computer Science 910, pp. 90-107. Springer-Verlag.
[21]
Kirchner, C. & Ringeissen, C. (1998) Rule-based constraint programming. Fundamenta Informaticae, 34(3), 225-262.
[22]
Kleene, S. C. (1952) Introduction to Metamathematics. van Nostrand.
[23]
Luger, G. F. & Stubblefield, W. A. (1998) Artificial Intelligence. 3rd ed. Addison-Wesley.
[24]
Mackworth, A. (1977a) Consistency in networks of relations. Artif. Intell., 8(1), 99-118.
[25]
Mackworth, A. K. (1977b) On reading sketch maps. Proceedings International Joint Conference on Artificial Intelligence (IJCAI'77), pp. 598-606.
[26]
Marriott, K. & Stuckey, P. (1998) Programming with Constraints. MIT Press.
[27]
Mohr, R. & Masini, G. (1988) Good old discrete relaxation. In: Kodratoff, Y. (ed.), Proceedings of the 8th European Conference on Artificial Intelligence (ECAI), pp. 651-656. Pitman.
[28]
Montanari, U. & Rossi, F. (1991) Constraint relaxation may be perfect. Artif. Intell., 48, 143-170.
[29]
Muggleton, S. & de Raedt, L. (1994) Inductive logic programming: Theory and methods. J. Logic Programming, 19, 20, 629-680.
[30]
Muth, P. (1976) A nine-valued circuit model for test generation. IEEE Trans. Computers, C-25(6), 630-636.
[31]
Pedrycz, W. & Gomide, F. (1998) An Introduction to Fuzzy Sets. MIT Press.
[32]
Quinlan, J. R. (1993) C4.5: Programs for Machine Learning. Morgan Kaufmann.
[33]
Ringeissen, C. & Monfroy, E. (2000) Generating propagation rules for finite domains: a mixed approach. In: Apt, K. R., Kakas, A. C., Monfroy, E. & Rossi, F. (eds.), New Trends in Constraints: Lecture Notes in Artificial Intelligence 1865, pp. 150-172. Springer-Verlag.
[34]
Sabin, D. & Freuder, E. (1994) Contradicting conventional wisdom in constraint satisfaction. In: Borning, A. (ed.), PPCP'94: Second Workshop on Principles and Practice of Constraint Programming.
[35]
Tsang, E. (1993) Foundations of Constraint Satisfaction. Academic Press.
[36]
Ullman, J. D. (1988) Principles of Database and Knowledge-base Systems, Vol. i. Computer Science Press.
[37]
Van Hentenryck, P., Simonis, H. & Dincbas, M. (1992) Constraint satisfaction using constraint logic programming. Artif. Intell., 58, 113-159.
[38]
Waltz, D. L. (1975) Generating semantic descriptions from drawings of scenes with shadows. In: Winston, P. H. (ed.), The Psychology of Computer Vision, pp. 19-91. McGraw Hill.
[39]
Winston, P. H. (1992) Artificial Intelligence. 3rd ed. Addison-Wesley.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Theory and Practice of Logic Programming
Theory and Practice of Logic Programming  Volume 1, Issue 6
November 2001
96 pages

Publisher

Cambridge University Press

United States

Publication History

Published: 01 November 2001

Author Tags

  1. constraint programming
  2. finite domain
  3. rule-based programming

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 05 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Best of Both Worlds: Solving the Cyclic Bandwidth Problem by Combining Pre-existing Knowledge and Constraint Programming TechniquesComputational Science – ICCS 202410.1007/978-3-031-63775-9_14(197-211)Online publication date: 2-Jul-2024
  • (2014)Generating custom propagators for arbitrary constraintsArtificial Intelligence10.1016/j.artint.2014.03.001211:1(1-33)Online publication date: 1-Jun-2014
  • (2013)On rule systems whose consistency can be locally maintainedAI Communications10.5555/2594638.259464426:1(67-77)Online publication date: 1-Jan-2013
  • (2011)Optimizing Limousine Service with AIAI Magazine10.1609/aimag.v32i2.234632:2(27-41)Online publication date: 1-Jun-2011
  • (2010)Generating special-purpose stateless propagators for arbitrary constraintsProceedings of the 16th international conference on Principles and practice of constraint programming10.5555/1886008.1886030(206-220)Online publication date: 6-Sep-2010
  • (2008)Using AI for olympic equestrian event preparationProceedings of the 20th national conference on Innovative applications of artificial intelligence - Volume 310.5555/1620138.1620141(1616-1623)Online publication date: 13-Jul-2008
  • (2007)Removing propagation redundant constraints in redundant modelingACM Transactions on Computational Logic10.1145/1276920.12769258:4(23-es)Online publication date: 1-Aug-2007
  • (2006)Boolean Propagation Based on Literals for Quantified Boolean FormulaeProceedings of the 2006 conference on ECAI 2006: 17th European Conference on Artificial Intelligence August 29 -- September 1, 2006, Riva del Garda, Italy10.5555/1567016.1567115(452-456)Online publication date: 22-May-2006
  • (2006)A hybrid BDD and SAT finite domain constraint solverProceedings of the 8th international conference on Practical Aspects of Declarative Languages10.1007/11603023_8(103-117)Online publication date: 9-Jan-2006
  • (2005)Explaining constraint programmingProcesses, Terms and Cycles10.5555/2168279.2168285(55-69)Online publication date: 1-Jan-2005
  • Show More Cited By

View Options

View options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media