Abstract
Building on previous work about counting the number of spanning trees of an unweighted graph, we consider the case of edge-weighted graphs. We present a generalization of the former result to compute in pseudo-polynomial time the exact number of spanning trees of any given weight, and in particular the number of minimum spanning trees. We derive two ways to compute solution densities, one of them exhibiting a polynomial time complexity. These solution densities of individual edges of the graph can be used to sample weighted spanning trees uniformly at random and, in the context of constraint programming, to achieve domain consistency on the binary edge variables and, more importantly, to guide search through counting-based branching heuristics. We exemplify our contribution using constrained minimum spanning tree problems.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
We generalize slightly their definition in order to include multigraphs, which may occur when we contract edges in the context of cp search.
References
Achuthan, N.R., Caccetta, L., Caccetta, P., Geelen, J.F.: Algorithms for the minimum weight spanning tree with bounded diameter problem. Optim. Tech. Appl. 1(2), 297–304 (1992)
Beldiceanu, N., Flener, P., Lorca, X.: The tree constraint. In: Barták, R., Milano, M. (eds.) CPAIOR 2005. LNCS, vol. 3524, pp. 64–78. Springer, Heidelberg (2005). doi:10.1007/11493853_7
Brockbank, S., Pesant, G., Rousseau, L.-M.: Counting spanning trees to guide search in constrained spanning tree problems. In: Schulte, C. (ed.) CP 2013. LNCS, vol. 8124, pp. 175–183. Springer, Heidelberg (2013). doi:10.1007/978-3-642-40627-0_16
Broder, A.Z., Mayr, E.W.: Counting minimum weight spanning trees. J. Algorithms 24(1), 171–176 (1997)
de Uña, D., Gange, G., Schachte, P., Stuckey, P.J.: Weighted spanning tree constraint with explanations. In: Quimper, C.-G. (ed.) CPAIOR 2016. LNCS, vol. 9676, pp. 98–107. Springer, Cham (2016). doi:10.1007/978-3-319-33954-2_8
Dooms, G., Katriel, I.: The Minimum Spanning Tree constraint. In: Benhamou, F. (ed.) CP 2006. LNCS, vol. 4204, pp. 152–166. Springer, Heidelberg (2006). doi:10.1007/11889205_13
Dooms, G., Katriel, I.: The “Not-Too-Heavy Spanning Tree” constraint. In: Hentenryck, P., Wolsey, L. (eds.) CPAIOR 2007. LNCS, vol. 4510, pp. 59–70. Springer, Heidelberg (2007). doi:10.1007/978-3-540-72397-4_5
Hromčík, M., Šebek, M.: New algorithm for polynomial matrix determinant based on FFT. In: Proceedings of the 5th European Control Conference (ECC99), September 1–3, Karlsruhe, Germany, (1999)
Subhash, S.C., Ho, C.A.: Degree-constrained minimum spanning tree. Comput. Oper. Res. 7(4), 239–249 (1980)
Pesant, G.: Achieving domain consistency and counting solutions for dispersion constraints. INFORMS J. Comput. 27(4), 690–703 (2015)
Pesant, G.: Counting-based search for constraint optimization problems. In: Schuurmans, D., Wellman, M.P. (eds.) AAAI, pp. 3441–3448. AAAI Press, Palo Alto (2016)
Pesant, G., Quimper, C.-G., Zanarini, A.: Counting-based search: branching heuristics for constraint satisfaction problems. J. Artif. Intell. Res. 43, 173–210 (2012)
Régin, J.-C.: Simpler and incremental consistency checking and arc consistency filtering algorithms for the weighted spanning tree constraint. In: Perron, L., Trick, M.A. (eds.) CPAIOR 2008. LNCS, vol. 5015, pp. 233–247. Springer, Heidelberg (2008). doi:10.1007/978-3-540-68155-7_19
Régin, J.-C., Rousseau, L.-M., Rueher, M., Hoeve, W.-J.: The weighted spanning tree constraint revisited. In: Lodi, A., Milano, M., Toth, P. (eds.) CPAIOR 2010. LNCS, vol. 6140, pp. 287–291. Springer, Heidelberg (2010). doi:10.1007/978-3-642-13520-0_31
Tutte, W.T.: Graph Theory. Encyclopedia of Mathematics and Its Applications. Cambridge University Press, New york (2001)
Zanarini, A., Pesant, G.: Solution counting algorithms for constraint-centered search heuristics. In: Bessière, C. (ed.) CP 2007. LNCS, vol. 4741, pp. 743–757. Springer, Heidelberg (2007). doi:10.1007/978-3-540-74970-7_52
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Delaite, A., Pesant, G. (2017). Counting Weighted Spanning Trees to Solve Constrained Minimum Spanning Tree Problems. In: Salvagnin, D., Lombardi, M. (eds) Integration of AI and OR Techniques in Constraint Programming. CPAIOR 2017. Lecture Notes in Computer Science(), vol 10335. Springer, Cham. https://doi.org/10.1007/978-3-319-59776-8_14
Download citation
DOI: https://doi.org/10.1007/978-3-319-59776-8_14
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-59775-1
Online ISBN: 978-3-319-59776-8
eBook Packages: Computer ScienceComputer Science (R0)