Decomposition Algorithms of Constraint Satisfaction Problems and Application in Solving Configuration Problems

Author
MaDongMei
Advisor
LiZhanShan
School
Jilin University
Major
Computer Software and Theory
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2007
Downloads
143
Citations
1

Request the full text

Abstract

Constraint Satisfaction Problem is an important and fundamentalproblemintheareaofartificialintelligence.TheresearchaboutConstraintSatisfaction Problem has been being popular in recent 30 years. Theabsolutely most constraint satisfaction problems existed are based onclassic Constraint Satisfaction Problems, that is, it begins with the sets ofvariables and researches how to obtain values ofvariables bythe relationsamongthevariables. AlthoughthedefinitionaboutConstraintSatisfactionProblem is very simple, it can effectively describe many applicationproblems in the area of artificial intelligence, such as computer vision,diagnosis,logicprogramming,theanalysisanddesigningofcircuitry,andthe product configuration which has been emphasized in recent 10 years.This paper describes and researches various methods on constraintdecomposition, implements the CaT (Cut-And-Traverse) decomposition,andappliesthedecompositionmethodtoexistedconfigurationsystem.In general, although CSPs are in NP-complete, decompositiontechniques borrowed from the area of databases have been used to reducethe complexity of computation. The basic principle is to decomposeConstraint Satisfaction Problem into the sub-problems which areorganized in a tree structure. The sub-problems are then solvedindependently, and the solutions of everysub-problem are propagated in abacktrack-free manner along the tree to yield a solution to the initial CSP.In early time of Artificial intelligence, people had controlled thecomplexity of problems by decomposing. Of course, it cannot improveabout the worst time complexity, but for the massive problems, in theory,it is smaller in computation to decompose CSP into the sub-problemswhichissolvedmucheasier.Graphtheoryandoperationalresearchmaybedescribedverynaturallyas constraint satisfaction problems. They involve putting together allinformation (constraints) to obtain global solutions which simultaneouslysatisfy all of them. On the other hand, when the size of the problem is verylarge,thewayofstoringinformationinadatabasemaybeseenastheway breaking down global information into pieces of manageable size.The relational database model tackles this problem by storing a databaseas a number of projections from which the original relation isreconstructed. By describing relevant definition in database theory likerelationscheme,tuple,relationinstanceandsoon,withthedecompositiontechniques of join-dependencies in a relational database, people relate thistractabilityof aconstraint satisfactionproblem totheassociatedconstrainthypergraph. Based on this, people decompose original problem efficientlywith the idea of the join-dependencies in database theory and the specialstructure of constraint hypergraph. The classic decomposition strategy isHingedecomposition.By the research about constraint decomposition of ConstraintSatisfaction problem, based on Hinge decomposition which uses databasetechniques,thispaperdescribesHinge+decompositionwhichisavariationof Hinge decomposition, Cut decomposition which is a variation ofHinge+decomposition, Traverse decomposition borrowed from Cutdecomposition, and the combining of Cut decomposition and Traversedecomposition, CaT decomposition and relevant definition. We chooseCaT decomposition which is best trade-off between the width of thegenerated tree and the computational cost of the decomposition; weimplement this decomposition algorithm in the system of Constraintsatisfaction problem’s solver, and make the method of decompositionmoreperfect.The idea of CaT decomposition borrowed from Hinge decomposition,and there is one shared edges in adjacent nodes in the hinge-tree which isproduced by Hinge decomposition, this method is not fit for constraintsatisfaction problem including complex constraints.We consider that thenumber of shared edges is more than one, and we can decompose theconstraints, which is a better method. CaTdecomposition complete it likethis: Cut the chosen constraints from the constraint-network, if it canobtain two or more sub-constraint-network, we add the chosen constraintsinto every sub-constraint-network. In this moment, we complete thedecomposition, and the number of shared constraints is not one. we solveit recursively to obtain a tree. This paper uses this method to decompose the constraints, annotates the algorithm, corrects and modifies thealgorithm with the whole idea of the algorithm, designs and implementsthealgorithm.Althoughthemainbodyofthealgorithmismainlyfunction,the data structure is clear, so this paper implements it with the idea ofobject-oriented,designs thehypergraph,hyperedge,variable,partitionandtree into the object, which is convenient to develop and extend, andintegrate with original constraint satisfaction problem solver. Meanwhile,we compare this decomposition technique with that of exitedconfigurationsystem intheideaofdecompositionandtheimplementationofthealgorithm.Itshowsthatthisdecompositionisefficient.This paper applies the decomposition technique to the productconfiguration system which uses java and struts in B/S structure. Whenapplying CaT decomposition to configuration system, we use the methodof using Eclipse platform to develop struts, import the package in whichdecomposition algorithm is into the integrated development environment,and then deploy the implement of the system to the package webapps ofwebserverTomcattorun.To fit for the wayof existed configuration system , the paper analyzesthinking in designing of existed configuration system, designs classesrelevant and relations between them, furthermore, gives the algorithmabout solving configuration by decomposition, at last, overwrite the classOrderActioninsolvingtheconfiguration.Atlast,wegivethetestshowofthedecompositionandtestresultsandanalysis when the number of the constraints, variables and the size of thecut are different. We verify the impact of minimal value of the cut on theefficiencyof the algorithm and width of tree, makingreaders further learnabout CaTdecomposition. Byabove analysis about the test data, we showthat the algorithm can tackle hundreds of constraints in 5 minutes. If wecan choose the cut properlylike reducing the number of the possible cuts,thealgorithmcantackleathousandconstraintsorso.The application of decomposition method to configuration systemmakes system more complete. Meanwhile, for the massive configurationproblems,decompositionisaavailableandeffectiveway.

Table of contents

Executive summary 4-7 first chapter 7-10 1.1 constraint satisfaction problems outlined 7-8 1.2 constraint decomposition status quo 8 1.3 This article generated background 8-9 1.4 The main content of this 9-10 constraint satisfaction problem decomposition strategy 10-32 2.1 Overview of database theory 10-12 2.2 HYPERGRAPH hypergraph 12-13 2.3 based on database theory HINGE decomposition 13-17 2.3.1 the related concept 17-29 13-14 2.3.2 HINGE, decomposition algorithm 14-17 2.4 CAT decomposition 2.4.1 CaT decomposition produce 17-19 2.4.1.1 Hinge to decompose 18-19 2.4.1.2 Cut decomposition 19 < br /> 2.4.1.3 Traverse decomposition the decomposition 19 2.4.2 CaT concept the 19-20 2.4.3 CaT decomposition step 20-29 < br /> 2.5 CSP solving thinking 29 2.6 various algorithms different the 29-32 2.6.1 from the time complexity theory 29 -30 2.6.2 Gottlob-based standard for comparison 30-32 constraint decomposition algorithm to achieve 32-41 3.1 on the original configuration system analysis decomposition algorithm 32-34 3.1.1 original configuration decomposition algorithm defined 32-33 the 3.1.2 original configuration decomposition algorithm analysis and compare 33-34 3.1.2.1 decomposition idea 33 3.1.2.2 algorithms compare the 33-34 3.2 decomposition algorithm and configuration algorithm 34-41 3.2.1 the constraint decomposition Module design 34-37 3.2.2 on the original the CaT decomposition algorithm the number of amendments 37-40 3.2 Overview .3 configuration system solving 40-41 Chapter decomposition algorithm system configurator 41-46 4.1 decomposition algorithm and configuration system integrated the 41-42 4.1.1 decomposition algorithm Import 4.1.2 before decomposition processing 41 41-42 4.2 configuration solving of design 42-46 4.2.1 on the analysis of the original configuration system 42 4.2.2 configuration solving design 42-44 4.2.3 configuration algorithm 44-46 Chapter experimental results and analysis 46-49 5.1 decomposition algorithm experimental results demonstrates 46 - 47 5.2 Experimental results of the decomposition algorithm and analysis 47-49 the sixth chapters Conclusion 49-50 6.1 summarizes 49 <br / > 6.2 outlook 49-50 Reference 50-52 summary for 52-55 ABSTRACT 55-58 Acknowledgements 58-59 tutors and Author 59

Related dissertations

  1. Research and Application of Decomposition Strategies in Solving Configuration Problems
    WangZuo ·Jilin University ·2006 ·Master's thesis
  2. Research in Hypertree Decomposition Algorithms of Constraint Satisfaction Porblems
    WangRuiQin ·Jilin University ·2011 ·Master's thesis