DOC PREVIEW
CMU CS 15381 - Means-Ends Analysis and Constraint Propagation

This preview shows page 1-2-3-4 out of 13 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 13 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

15-381 Artificial IntelligenceSearchPlanning: Parameterized OperationsSlide 3Slide 4Slide 5Means-Ends AnalysisControl Rules for MEASlide 8Constraint-Based SearchConstraint-Based SearchConstraintsSlide 12(Dis)Advantages of Constraints15-381 Artificial IntelligenceMeans-Ends Analysis and Constraint PropagationJaime Carbonell24 January 2002Topics Covered:Homework 1 (generalized state-space search)Means-Ends Analysis (backchaining)Search Control Rules in MEAConstraint-Based SearchSearchPlanning: Parameterized OperationsMulti-State TransitionsInstead of: Opi,j: Si Sj, We have Opk,l: {Sk}{ Sl}Preconditions and Post-ConditionsConjunctive set of first-order predicatesArguments can be constants or (typed) variablesIntentional description of subset of all statesPre-image {Sk} states where preconditions are truePost-image {S1} states where post-conditions are trueRequires Consistent variable bindings within and across preconditions and post-conditionsSearchPlanning: Parameterized OperationsFirst ExampleOPERATOR DRIVE-CAR(<car>, <driver>, <keys>, <loc-1>)[PRE: (AT <car> <loc-1>)(AT <driver> <loc-1>)(CONTAINS-GAS <car>)(HAVE <keys> <driver>)(CORRESPOND <keys> <car>)][POST: (AT <car> <loc-2>)(AT <driver> <loc-2>)(NOT (AT <car> <loc-1>))(NOT (AT <driver> <loc-1>))]]SearchPlanning: Parameterized OperationsSecond Example(Previous example: LISP-style, Current one: PROLOG-style)OPERATOR: move-robot(r,x,y)TYPE: ROBOT(r) & LOC(x) & LOC(y)PRE: AT(r,x) & EMPTY(y) & CONNECTED(x,y)POST: AT(r,y), NOT(AT(r,x))OPERATOR: pick-up(r,z)TYPE: ROBOT(r) & LOC(x) & LOC(y)PRE: AT(r,x) & AT(z,y) & NEXT-TO(x,y) & NOT(holding(r,w,))POST: HOLDING(r,z)NOT(AT(z,y))SearchPlanning: Parameterized OperationsInterpretationA plan is an o-path: S0 followed by a sequence of instantiated operators which result in the goal state.Variables match objects in state of specified types only for which the preconditions hold at plan execution time.Planning can proceed by forward or backward (or any other) search method.More on Planning expected from Veloso (later lecture)Means-Ends AnalysisBackchaining/Subgoaling Search1. Let Scurr:= S02. If Scurr = SG, then go to next goal (or DONE)3. Let OPSapp := match(SG {POST(Opi)}) 4. If OPSapp= empty, then FAIL • Else Select OP  OPSapp, (save alt's) 1. If match(PRE(OP), Scurr),a. let Scurr:= apply(OP, Scurr)b. Go to step 22. Else (i.e. if NOT(match(PRE(OP), Scurr)))a. MEA(SG):= {unmatched(PRE(OP))}, SI := Scurr)b. If fail, go to step 4c. If succeed, apply OP as aboveControl Rules for MEAChoice Points in MEAChoose Operator, if several applicableChoose Goal, if > 1 subgoals pendingChoose Variable Bindings, if > 1 tupleTypes of Control RulesSelect – choose an alternative and eliminate other contendersReject – Reject an alternative and retain other contendersPrefer – Try one alternative first and retain others for possible backtrackingControl Rules for MEAExampleCONTROL-RULE: Carry-before-moveTYPE: SELECTPRE: Goals(Move(r,x,y), Pick-up(r,z,v)))POST: Pick-up(r,z)CONTROL-RULE: Don’t polish before machiningTYPE: REJECTPRE: Goals(Mill(p,f), Drill(p,l,d,s), Polish(p))POST: Polish(p)Constraint-Based Search Satisfiability problemsFind consistent bindings to a set of variablesConsistent = satisfy all constraintsExample: (X v Y) & (~X v ~Y) Example: Match applicants to positionsTwo families of search methods applyState-space search on bindingsSatisfiability-search on constraintsConstraint-Based SearchExample: How fast can you solve this?Find a way to fit components (1,2,3,4) into slots (A,B,C,D) such that:Each slot only takes one componentSlots are in LEFT-RIGHT sequence A, B, C, DSlots A and C are T-shapedSlots B and D are I-shapedComponents 1,2, are 3-prongedComponents 3,4 are 2-pronged2-pronged fit into T-shaped or I-shaped3-pronged fit only into T-shapedComponent 3 must be LEFT of component 2ConstraintsLeast Commitment Method1. For each Variable find all legal unary-constrained assignments.2. If no assignments possible, return FAILURE3. Assign most-constrained unassigned variable.4. If all variables assigned, return SUCCESS5. If the assigned variable is a member of a binary constraint, propagate instantiation6. Delete all residual un-viable assignments7. Go to 2Constraint-Based SearchA = {1,2,3,4}B = {3,4}C = {1,2,3,4}D = {3,4}A = {1,2,4}C = {1,2,4}D = {4}A = {1,2}C = {1,2}C = {2}A = {1}SUCCESSA = {1,2,3}C = {1,2,3}D = {3}FAILUREB4D3A1C2D4B3(Dis)Advantages of ConstraintsReduce the search spaceEarly failure (upon constraint violation)Generate minimal-uncertainty step (least commitment strategy)Only applicable to satisfiability problemsFinds an answer, not necessarily optimalNot all problems can be cast as constraints to


View Full Document

CMU CS 15381 - Means-Ends Analysis and Constraint Propagation

Documents in this Course
Planning

Planning

19 pages

Planning

Planning

19 pages

Lecture

Lecture

42 pages

Lecture

Lecture

27 pages

Lecture

Lecture

19 pages

FOL

FOL

41 pages

lecture

lecture

34 pages

Exam

Exam

7 pages

Lecture

Lecture

22 pages

Handout

Handout

11 pages

Midterm

Midterm

14 pages

lecture

lecture

83 pages

Handouts

Handouts

38 pages

mdp

mdp

37 pages

HW2

HW2

7 pages

nn

nn

25 pages

lecture

lecture

13 pages

Handout

Handout

5 pages

Lecture

Lecture

27 pages

Lecture

Lecture

62 pages

Lecture

Lecture

5 pages

Load more
Download Means-Ends Analysis and Constraint Propagation
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Means-Ends Analysis and Constraint Propagation and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Means-Ends Analysis and Constraint Propagation 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?