Skip to main content

Models of Injection Problems

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2470))

Abstract

There are many problems that can be modelled as injection problems. These problems can be scheduling problems, combinatorial graph problems, cryptarithmetic puzzles, etc. Injection problems can be modelled as constraint satisfaction problems. The straightforward formulation would be to have as many variables as the elements of the source set that range over the target set, which captures a total function. To enforce that the function is injective, we would need to state an alldifferent constraint among all the variables. Dual variables can also be used along with the primal ones and linked through channeling constraints. We propose three different ways of achieveing this, as well as we add some implied constraints. The proposed models of injection problems are compared using the constraint tightness parameterized by the level of local consistency being enforced [2]. We proved that, with respect to arc-consistency a single primal alldifferent constraint is tighter than channeling constraints together with the implied or the dual not-equals constraints, but that the channeling constraints alone are as tight as the primal not-equals constraints. Both these gaps can lead to an exponential reduction in search cost when MAC or MGAC are used. The theoretical results showed that occurs constraints on dual variables are redundant, so we can safely discard them. The asymptotic analysis added details to the theoretical results. We conclude that it is safe to discard some of the models because they achieve less pruning than other models at the same cost. However, we keep a model employing primal and dual variables even though it achieves the same amount of pruning as a primal model at a higher cost because it might allow the development of cheap value ordering heuristics. Experimental results on a sport scheduling problem confirmed that MGAC on channeling and implied constraints outperformed MAC on primal not-equals constraints, and could be competitive with maintaining GAC on a primal alldifferent constraint.

Full version of this work can be found at [1].

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.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

Learn about institutional subscriptions

References

  1. B. Hnich and T. Walsh. Models of Injection Problems. In Proc. of the ECAI’02 Workshop on Modelling and Solving Problems with Constraints. 2002.

    Google Scholar 

  2. T. Walsh. Permutation Problems and Channeling Constraints. In Proc. of the IJCAI’01 Workshop on Modelling and Solving Problems with Constraints. 2001.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Hnich, B., Walsh, T. (2002). Models of Injection Problems. In: Van Hentenryck, P. (eds) Principles and Practice of Constraint Programming - CP 2002. CP 2002. Lecture Notes in Computer Science, vol 2470. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-46135-3_76

Download citation

  • DOI: https://doi.org/10.1007/3-540-46135-3_76

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-44120-5

  • Online ISBN: 978-3-540-46135-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics