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

Fast and parallel decomposition of constraint satisfaction problems

Published: 01 July 2022 Publication History

Abstract

Constraint Satisfaction Problems (CSP) are notoriously hard. Consequently, powerful decomposition methods have been developed to overcome this complexity. However, this poses the challenge of actually computing such a decomposition for a given CSP instance, and previous algorithms have shown their limitations in doing so. In this paper, we present a number of key algorithmic improvements and parallelisation techniques to compute so-called Generalized Hypertree Decompositions (GHDs) faster. We thus advance the ability to compute optimal (i.e., minimal-width) GHDs for a significantly wider range of CSP instances on modern machines. This lays the foundation for more systems and applications in evaluating CSPs and related problems (such as Conjunctive Query answering) based on their structural properties.

References

[1]
Aberger, C. R., Tu, S., Olukotun, K., & Ré, C. (2016). Emptyheaded: A relational engine for graph processing. In Proceedings of the 2016 international conference on management of data, SIGMOD conference 2016, San Francisco, CA, USA, June 26 - July 01, 2016, (pp. 431–446).
[2]
Adler I, Gottlob G, and Grohe M Hypertree width and related hypergraph invariants European Journal of Combinatorics 2007 28 8 2167-2181
[3]
Akatov D Exploiting parallelism in decomposition methods for constraint satisfaction 2010 UK Ph.D. thesis, University of Oxford https://ora.ox.ac.uk/objects/uuid:30773f0c-9b53-4684-b1c4-2d20c2322edd
[4]
Amroun K, Habbas Z, and Aggoune-mtalaa W A compressed generalized hypertree decomposition-based solving technique for non-binary constraint satisfaction problems AI Comm. 2016 29 2 371-392
[5]
Aref, M., ten Cate, B., Green, T. J., Kimelfeld, B., Olteanu, D., Pasalic, E., Veldhuizen, T. L., & Washburn, G. (2015). Design and implementation of the logicblox system. In Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data, Melbourne, Victoria, Australia, May 31 - June 4, 2015, (pp. 1371–1382).
[6]
Baader F and Nipkow T Term Rewriting and All That 1998 Cambridge Cambridge University Press
[7]
Bodlaender HLA linear-time algorithm for finding tree-decompositions of small treewidthSIAM J. Comput.19962561305-1317https://doi.org/10.1137/S0097539793251219
[8]
Cohen DA, Jeavons P, and Gyssens M A unified theory of structural tractability for constraint satisfaction problems Journal of Computer and System Sciences 2008 74 5 721-743
[9]
Cox-Buday, K. (2017). Concurrency in Go: Tools and techniques for developers. “O’Reilly Media Inc.”.
[10]
Donovan, A. A. A., & Kernighan, B. W. (2015). The Go programming language. Addison-Wesley Professional.
[11]
Dzulfikar, M. A., Fichte, J. K., & Hecher, M. (2019). The PACE 2019 parameterized algorithms and computational experiments challenge: The fourth iteration (invited paper). In 14Th international symposium on parameterized and exact computation, IPEC 2019, september 11-13, 2019, munich, germany, (pp. 25:1–25:23).
[12]
Fagin RDegrees of acyclicity for hypergraphs and relational database schemesJ. ACM1983303514-550https://doi.org/10.1145/2402.322390
[13]
Fichte, J. K., Hecher, M., Lodha, N., & Szeider, S. (2018). An SMT approach to fractional hypertree width. In Principles and practice of constraint programming - 24th international conference, CP 2018, lille, france, august 27-31, 2018, proceedings, (pp. 109–127).
[14]
Fischl, W., Gottlob, G., Longo, D. M., & Pichler, R. (2021). HyperBench: A benchmark and tool for hypergraphs and empirical findings. ACM J. Exp. Algorithmics 26.
[15]
Fischl, W., Gottlob, G., & Pichler, R. (2018). General and fractional hypertree decompositions: Hard and easy cases. In Proceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, Houston, TX, USA, June 10-15, 2018, (pp. 17–32).
[16]
Floyd RW Algorithm 97: Shortest path Communications of the ACM 1962 5 6 345
[17]
Gottlob, G., Hutle, M., & Wotawa, F. (2002). Combining hypertree, bicomp, and hinge decomposition. In Proceedings of the 15th European Conference on Artificial Intelligence, ECAI 2002, (pp. 161–165). IOS Press.
[18]
Gottlob G, Leone N, and Scarcello F A comparison of structural CSP decomposition methods Artificial Intelligence 2000 124 2 243-282
[19]
Gottlob G, Leone N, and Scarcello F Hypertree decompositions and tractable queries Journal of Computer and System Sciences 2002 64 3 579-627
[20]
Gottlob G, Miklós Z, and Schwentick T Generalized hypertree decompositions: NP-hardness and tractable variants J. ACM 2009 56 6 30:1-30:32
[21]
Gottlob, G., Okulmus, C., & Pichler, R. (2020). Fast and parallel decomposition of constraint satisfaction problems. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI 2020, (pp. 1155–1162).
[22]
Gottlob, G., Okulmus, C., & Pichler, R. (2021). Raw data on extended experiments for balancedgo zenodo.
[23]
Gottlob, G., & Samer, M. (2008). A backtracking-based algorithm for hypertree decomposition. ACM J. Exp. Algorithmics 13.
[24]
Graham, M. H. (1979). On the universal relation. Tech. rep. University of Toronto.
[25]
Grohe M and Marx DConstraint solving via fractional edge coversACM Trans. Algorithms20141114:1-4:20https://doi.org/10.1145/2636918
[26]
Gyssens M, Jeavons P, and Cohen DA Decomposing constraint satisfaction problems using database techniques Artificial Intelligence 1994 66 1 57-89
[27]
Habbas Z, Amroun K, and Singer D A forward-checking algorithm based on a generalised hypertree decomposition for solving non-binary constraint satisfaction problems J. Exp. Theor. Artif. Intell. 2015 27 5 649-671
[28]
Hoare CAR Communicating sequential processes Communications of the ACM 1978 21 8 666-677
[29]
Kloks, T. (1994). Treewidth, computations and approximations. In Lecture notes in computer science, (vol. 842). Springer.
[30]
Kolaitis PG and Vardi MYConjunctive-query containment and constraint satisfactionJ. Comput. Syst. Sci.2000612302-332https://doi.org/10.1006/jcss.2000.1713
[31]
Korhonen, T., Berg, J., & Järvisalo, M. (2019). Enumerating potential maximal cliques via SAT and ASP. In S. Kraus (Ed.) Proceedings of the twenty-eighth international joint conference on artificial intelligence, IJCAI 2019, Macao, China, August 10-16, 2019, (pp. 1116–1122).
[32]
Lagergren, J. (1990). Efficient parallel algorithms for tree-decomposition and related problems. In 31st Annual symposium on foundations of computer science, St. Louis, Missouri, USA, October 22-24, 1990, (Vol. I, pp. 173–182). IEEE Computer Society.
[33]
Lalou, M., Habbas, Z., & Amroun, K. (2009). Solving hypertree structured CSP: sequential and parallel approaches. In Proceedings of the 16th RCRA workshop on Experimental Evaluation of Algorithms for Solving Problems with Combinatorial Explosion, RCRA@AI*IA 2009, Reggio Emilia, Italy, December 11-12, 2009, CEUR Workshop Proceedings, vol. 589. CEUR-WS.org.
[34]
Longo, D.M. (2019). Pace2019 hypertree width heuristic.
[35]
Marx D Tractable hypergraph properties for constraint satisfaction and conjunctive queries J. ACM 2013 60 6 42:1-42:51
[36]
Meiri, I., Pearl, J., & Dechter, R. (1990). Tree decomposition with applications to constraint processing. In Proceedings of the 8th national conference on artificial intelligence. Boston, Massachusetts, USA, July 29 - August 3, 1990, 2 Volumes, (pp. 10–16). AAAI Press / The MIT Press.http://www.aaai.org/Library/AAAI/1990/aaai90-002.php.
[37]
Robertson, N., & Seymour, P.D. (1986). Graph minors. II. algorithmic aspects of tree-width, (Vol. 7.
[38]
Schidler, A., & Szeider, S. (2020). Computing optimal hypertree decompositions. In Proceedings of the symposium on algorithm engineering and experiments, ALENEX 2020, Salt Lake City, UT, USA, January 5-6, 2020, (pp. 1–11). SIAM.
[39]
Thain D, Tannenbaum T, and Livny M Distributed computing in practice: the Condor experience Concurrency - Practice and Experience 2005 17 2-4 323-356
[40]
Warshall S A theorem on boolean matrices Journal of the ACM 1962 9 1 11-12
[41]
Yannakakis, M. (1981). Algorithms for acyclic database schemes. In Very large data bases, 7th international conference, September 9-11, 1981, Cannes, France, Proceedings, (pp. 82–94).
[42]
Yu, C. T., & Özsoyoğlu, M. Z. (1979). An algorithm for tree-query membership of a distributed query. In The EEE computer society’s third international computer software and applications conference, COMPSAC 1979, 6-8 November, 1979, Chicago, Illinois, USA, (pp. 306–312).

Cited By

View all
  • (2023)Fast Parallel Hypertree Decompositions in Logarithmic Recursion DepthACM Transactions on Database Systems10.1145/363875849:1(1-43)Online publication date: 30-Dec-2023
  • (2023)Computing optimal hypertree decompositions with SATArtificial Intelligence10.1016/j.artint.2023.104015325:COnline publication date: 1-Dec-2023

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Constraints
Constraints  Volume 27, Issue 3
Jul 2022
219 pages

Publisher

Kluwer Academic Publishers

United States

Publication History

Published: 01 July 2022
Accepted: 23 April 2022

Author Tags

  1. Constraint satisfaction
  2. Hypergraphs
  3. Structural decomposition methods
  4. Parallel computing

Qualifiers

  • Research-article

Funding Sources

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 25 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2023)Fast Parallel Hypertree Decompositions in Logarithmic Recursion DepthACM Transactions on Database Systems10.1145/363875849:1(1-43)Online publication date: 30-Dec-2023
  • (2023)Computing optimal hypertree decompositions with SATArtificial Intelligence10.1016/j.artint.2023.104015325:COnline publication date: 1-Dec-2023

View Options

View options

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media