Title of Publication Encyclopedia of Cognitive Sci

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

TitleofPublication:EncyclopediaofCognitiveScience.Articletitle:ConstraintSatisfaction.Articlecode:26.Authors:RinaDechterDepartmentofComputerandInformationScienceUniversityofCalifornia,IrvineIrvine,California,USA92717Telephone:949-824-6556Fax:949-824-4056E-mail:dechter@ics.uci.eduFrancescaRossiDipartimentodiMatematicaPuraedApplicataUniversitadiPadovaViaBelzoni7,35131Padova,ItalyTelephone:+39-049-8275982Fax:+39-049-8275892E-mail:frossi@math.unipd.it1ConstraintSatisfactionKeywords:Constraints,constraintsatisfaction,constraintpropagation,con-straintprogramming.Contents1Introduction32Constraintpropagation53Constraintsatisfactionassearch74Tractableclasses95Constraintoptimizationandsoftconstraints106Constraintprogramming117Summary13Articledenition:Constraintsareadeclarativeknowledgerepresentationformalismthatallowsforacompactandexpressivemodelingofmanyreal-lifeproblems.Constraintsatisfactionandpropagationtools,aswellasconstraintprogramminglanguages,aresuccessfullyusedtomodel,solve,andreasonaboutmanyclassesofproblems,suchasdesign,diagnosis,scheduling,spatio-temporalreasoning,resourceallocation,conguration,networkoptimization,andgraphicalinterfaces.21IntroductionConstraintsatisfactionproblems.Aconstraintsatisfactionproblem(CSP)consistsofanitesetofvariables,eachassociatedwithadomainofvalues,andasetofconstraints.Eachoftheconstraintisarelation,denedonsomesubsetofthevariables,calleditsscope,denotingtheirlegalcombinationsofvalues.Aswell,constraintscanbedescribedbymathematicalexpressionsorbycomputableprocedures.Solutions.Asolutionisanassignmentofavaluetoeachvariablefromitsdomainsuchthatalltheconstraintsaresatised.Typicalconstraintsatisfactionproblemsaretodeterminewhetherasolutionexists,tondoneorallsolutions,andtondanoptimalsolutionrelativetoagivencostfunction.ExamplesofCSPs.Anexampleofaconstraintsatisfactionproblemisthewell-knownk-colorabilityproblem.Thetaskistocolor,ifpossible,agivengraphwithkcolorsonly,suchthatanytwoadjacentnodeshavedierentcolors.Aconstraintsatisfactionformulationofthisproblemassociatesthenodesofthegraphwithvariables,thepossiblecolorsaretheirdomainsandthenot-equalconstraintsbetweenadjacentnodesaretheconstraintsoftheproblem.Anotherknownconstraintsatisfactionproblemconcernssatisability(SAT),whichisthetaskofndingatruthassignmenttopropositionalvariablessuchthatagivensetofclausesaresatised.Forexample,giventhetwoclauses(A_B_:C);(:A_D),theassignmentoffalsetoA,truetoB,falsetoC,andfalsetoDisasatisfyingtruthvalueassignment.Theconstraintgraph.Thestructureofaconstraintproblemisusuallydepictedbyaconstraintgraphwhosenodesrepresentsthevariables,andanytwonodesareconnectedifthecorrespondingvariablesparticipateinthesameconstraintscope.Inthek-colorabilityformulation,thegraphtobecoloredistheconstraintgraph.IntheSATexampleabove,theconstraintgraphhasAconnectedwithD,andA;BandCareconnectedtoeachother.3Applicationsareas.Constraintproblemshaveprovensuccessfulinmod-elingmundanecognitivetaskssuchasvision,languagecomprehension,de-faultreasoningandabduction,aswellasinapplicationssuchasscheduling,design,diagnosis,andtemporalandspatialreasoning.Thereasonisthatconstraintsallowforanatural,expressiveanddeclarativeformulationofwhathastobesatised,withouttheneedtosayhowithastobesatised.Complexityofconstraint-relatedtasks.Ingeneral,constraintsatis-factiontasks(likendingoneorallsolutions,orthebestsolution)arecom-putationallyintractable(NP-hard).Intuitively,thismean,thatintheworstcaseallthepossiblevariableinstantiationsmayneedtobeconsideredbe-foreasolution(orbestsolution)canbefound.However,therearesometractableclassesofproblemsthatallowforecientsolutionalgorithmsevenintheworst-case.Moreover,alsofornon-tractableclasses,manytechniquesexhibitagoodperformanceinpracticeintheaveragecase.Constraintoptimizationproblems.Constraintprocessingtasksincludenotonlythesatisfactiontask,butalsoconstraintoptimizationproblems.Thisoccurswhenthesolutionsarenotequallypreferred.Thepreferencesamongsolutionscanbeexpressedviaanadditionalcostfunction(alsocalledanobjectivefunction),andthetaskistondabest-costsolutionorarea-sonableapproximationofit.Softconstraints.Thenotionofconstraintoptimizationleadsamoreex-ibleviewofconstraints,whereeachconstraintmayhavealevelofimpor-tance.Inthiscase,wetalkaboutsoftconstraints,whichallowforafaithfulmodelingofmanyapplicationsandcanaccommodateuserpreferencesanduncertaintieswithintheconstraintformalism.TechniquesforsolvingCSPs.Thetechniquesforprocessingconstraintproblemscanberoughlyclassiedintotwomaincategories:searchandcon-sistencyinference(orpropagation).However,suchtechniquescanalsobecombined,and,infact,inpracticeaconstraintprocessingtechniqueusuallycontainsaspectsofbothcategories.Searchalgorithmstraversethespaceofpartialinstantiations,buildingupacompleteinstantiationthatsatisesalltheconstraints,ortheydeterminethattheproblemisinconsistent.In4contrast,consistency-inferencealgorithmsreasonthroughequivalentprob-lems:ateachsteptheymodifythecurrentproblemtomakeitmoreexplicitwithoutloosinganyinformation(thatis,maintainingth

1 / 15
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功