Abstract
We study the application of matching theory within a constraint programming framework. In this work we describe a filtering scheme based on weighted matchings. A first benefit of our pruning technique comes from the fact that it can be applied on various optimization constraints. In a number of important cases our method achieves domain consistency in polynomial time. A key feature in our implementation is the use of decomposition theory. The paper compares some of the optimization constraints reported in the literature and shows how they can be solved with the help of the weighted matching.
Similar content being viewed by others
Notes
In terms of linear programming potentials are called dual variables and reduced weights are slacks.
A bipartite graph \(G\) with bipartition \((V_1,V_2)\) is called convex on \(V_2\) if there exists an ordering of \(V_2\) so that for any \(x \in V_1\) the set \(\varGamma (x)\) forms an interval in the ordering.
The diameter of a connected digraph is the maximal distance between two of its vertices.
References
Ahuja, R. K., Magnanti, T. L., & Orlin, J. B. (1993). Network flows: Theory, Algorithms and Applications. New Jersey: Prentice Hall.
Apt, K. R. (2003). Principles of constraint programming. Cambridge: Cambridge University Press.
Ball, M. O., & Derigs, U. (1983). An analysis of alternative strategies for implementing matching algorithms. Networks, 13(4), 517–549.
Bayati, M., Borgs, C., Chayes, J., & Zecchina, R. (2011). Belief-propagation for weighted \(b\)-matchings on arbitrary graphs and its relation to linear programs with integer solutions. SIAM Journal on Discrete Mathematics, 25(2), 989–1011.
Beldiceanu, N. (2001). Pruning for the minimum constraint family and for the number of distinct values constraint family. Lecture Notes in Computer Science, 2239, 211–224.
Beldiceanu, N., Carlsson, M., & Rampon, J.-X. (2012) Global constraint catalog. Technical Report T2012–03, Swedish Institute of Computer Science, October 4, 2012.
Beldiceanu, N., Carlsson, M., & Thiel., S. (2002) Cost-filtering algorithms for the two sides of the sum of weights of distinct values constraint. Technical Report T2002–14, Swedish Institute of Computer Science, 2002.
Beldiceanu, N., & Contejean, E. (1994). Introducing global constraints in CHIP. Mathematical and Computer Modelling, 20(12), 97–123.
Benchimol, P., van Hoeve, W.-J., Régin, J-Ch., Rousseau, L.-M., & Rueher, M. (2012). Improved filtering for weighted circuit constraints. Constraints, 17(3), 205–233.
Bessiere, C., Hebrard, E., Hnich, B., Kiziltan, Z., & Walsh, T. (2005). Filtering algorithms for the NVALUE constraint. Lecture Notes in Computer Science, 3524, 79–93.
Bessiere, C., Hebrard, E., Hnich, B., Kiziltan, Z., & Walsh, T. (2006). Among, common and disjoint constraints. Lecture Notes in Computer Science, 3978, 29–43.
Bessiere, C., Hebrard, E., Hnich, B., & Walsh, T. (2004). The complexity of global constraints. National Conference of Artificial Intelligence (AAAI), pp. 112–117, 2004.
Bessiere, C., Hebrard, E., Hnich, B., & Walsh, T. (2004). The tractability of global constraints. Lecture Notes in Computer Science, 3258, 716–720.
Caseau, Y., & Laburthe, F. (1997). Solving small TSPs with constraints. Proceedings of the 14th International Conference on Logic Programming, pp. 316–330, 1997.
Caseau, Y., & Laburthe, F. (1997). Solving various weighted matching problems with constraints. Lecture Notes in Computer Science, 1330, 17–31.
Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2001). Introduction to algorithms (2nd ed.). Cambridge: MIT Press/McGraw-Hill.
Cymer, R. (2012). Dulmage–Mendelsohn canonical decomposition as a generic pruning technique. Constraints, 17(3), 234–272.
Cymer, R. (2013). Gallai–Edmonds decomposition as a pruning technique. Central European Journal of Operations Research, 2013.
Dechter, R. (2003). Constraint processing. San Francisco: Morgan Kaufmann Publishers.
Fahle T. (2002) . Cost based filtering versus upper bounds for maximum clique. Proceedings of the 4th International Workshop on Integration of AI and OR Techniques in Constraint Programming for Combinatorial Optimization Problems (CPAIOR), Le Croisic, France, pp. 93–107, 2002.
Focacci, F., Lodi, A., & Milano, M. (1999). Cost-based domain filtering. Lecture Notes in Computer Science, 1713, 189–203.
Gabow H. N. (1983). An efficient reduction technique for degree-constrained subgraph and bidirected network flow problem. Proceedings of the 15th Annual ACM Symposium on Theory of Computing, New York, pp. 448–456, 1983.
Gabow H. N. (1985). A scaling algorithm for weighted matching on general graphs. Proceedings of the 26th Annual Symposium on Foundations of Computer Science, New York, pp. 90–100, 1985.
Gabow, H. N. (1990). Data structures for weighted matching and nearest common ancestors with linking (pp. 434–443). Proceedings of the First Annual ACM-SIAM Symposium on Discrete Algorithms Philadephia.
Gabow, H. N., & Tarjan, R. E. (1985). A linear-time algorithm for a special case of disjoint set union. Journal of Computer and System Sciences, 30, 209–221.
Gabow, H. N., & Tarjan, R. E. (1989). Faster scaling algorithms for network problems. SIAM Journal on Computing, 18(5) , 1013–1036.
Gabow, H. N., & Tarjan, R. E. (1991). Faster scaling algorithms for general graph-matching problems. Journal of the Association for Computing Machinery, 38, 815–853.
Galil, Z., Micali, S., & Gabow, H. N. (1986). An O(EV log V) algorithm for finding a maximal weighted matching in general graphs. SIAM Journal on Computing, 15(1), 120–130.
Garey, M. R., & Johnson, D. S. (1979). Computers and intractability: A guide to the theory of NP-completeness. New York: Freeman.
Held, M., & Karp, R. M. (1970). The traveling-salesman problem and minimum spanning trees. Operations Research, 18(6), 1138–1162.
Held, M., & Karp, R. M. (1971). The traveling-salesman problem and minimum spanning trees: Part II. Mathematical Programming, 1, 6–25.
Hopcroft, J. E., & Karp, R. M. (1973). An \(O(n^{5/2})\) algorithm for maximum matchings in bipartite graphs. SIAM Journal on Computing, 2(4), 225–231.
Kocjan, W., Kreuger, P., & Lisper, B. (2004). Symmetric cardinality constraint with costs. Technical Report: MRTC, Mälardalen University.
Lovász, L., & Plummer, M. D. (1986). Matching theory. Annals of discrete mathematics (29). Amsterdam: North-Holland.
M. J. Maher (2002). Analysis of a global contiguity constraint. Workshop on Rule-Based Constraint Reasoning and Programming, 2002.
Micali S. & Vazirani V. V. (1980). An \(O(\sqrt{|V|}\cdot |E|)\) algorithm for finding maximum matching in general graphs. Proceedings of the 21st Annual Symposium on Foundations of Computer Science, pp. 17–27, 1980.
Pachet, F., & Roy, P. (1999). Automatic generation of music programs. Lecture Notes in Computer Science, 1713, 331–345.
Régin, J.-C. (2002). Cost-based arc consistency for global cardinality constraints. Constraints, 7, 387–405.
Régin, J.-C. (2003). Using constraint programming to solve the maximum clique problem. Lecture Notes in Computer Science, 2833, 634–648.
Régin, J.-C. (2008). Simpler and incremental consistency checking and arc consistency filtering algorithms for the weighted spanning tree constraint. Lecture Notes in Computer Science, 5015, 233–247.
Régin, J.-C., Rousseau, L.-M., Rueher, M., & van Hoeve, W.-J. (2010). The weighted spanning tree constraint revisited. Lecture Notes in Computer Science, 6140, 287–291.
Sellmann M. (2002). Reduction techniques in constraint programming and combinatorial optimization. Ph. D. Thesis, Paderborn University, Germany, 2002.
Spencer, T. H., & Mayr, E. W. (1984). Node weighted matching. Lecture Notes in Computer Science, 172, 454–464.
Thiel S. (2004). Efficient algorithms for constraint propagation and for processing tree description. Ph. D. Thesis, Saarlandes University, Germany, 2004.
Tsang, E. (1993). Foundations of constraint satisfaction. London: Academic Press.
Tutte, W. T. (1954). A short proof of the factor theorem for finite graphs. Canadian Journal of Mathematics, 6, 347–352.
Tutte, W. T. (1981). Graph factors. Combinatorica, 1, 79–97.
Vogel, W. (1963). Bemerkungen zur Theorie der Matrizen aus Nullen und Einsen. Archiv der Mathematik (Archives of Mathematics), 14, 139–144. In German.
Acknowledgments
The author would like to thank the anonymous reviewers whose valuable comments and suggestions improved the presentation of this paper.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Cymer, R. Weighted matching as a generic pruning technique applied to optimization constraints. Ann Oper Res 217, 165–211 (2014). https://doi.org/10.1007/s10479-014-1582-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10479-014-1582-x