

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















Chris Brooks Department of Computer ScienceUniversity of San Francisco
combines search and knowledge representation. Construct a partially-ordered sequence of actions toachieve a goal. Insights:^ Only select actions that help achieve our plan^ Don’t have to solve the problem in order^ Don’t have to produce a linear ordering on events.^ Search through space of plans, rather than states.
Department of Computer Science — University of San Francisco – p.1/
at(Town)
has(Coins),
has(Dagger)
:not
(grown
(Beanstalk))
Finish:
has(Gold)
Department of Computer Science — University of San Francisco – p.3/
Pre:
has(w)
Effect:
holding(w)
go. Pre:
at(x),
!at(y)
Effect:
!at(x),
at(y)
plantBeans.
Pre:
at(Field),
has(Beans)
Effect:
!has(Beans),
grown(Beanstalk)
defeatDragon.
Pre:
at(Cave),
wearing(Armor),
holding(Sword) Effect:
has(Gold) wear.
Pre:
has(x)
Effect:
wearing(x)
climbBeanstalk:
Pre:
at(Field),
grown(Beanstalk)
Effect:
has(Armor) buyBeans.
Pre:
at(Town),
has(Coins)
Effect:
!has(Coins),
has(Beans)
getSwordFromLake
Pre:
at(Lake),
wearing(Armor)
Effect:
has(Sword)
Department of Computer Science — University of San Francisco – p.4/
Department of Computer Science — University of San Francisco – p.6/
GoOnTrip has(Brooks, ticket)
at(Brooks, Hawaii)
PackSuitcase
GetToAirport
GetOnPlane
at(Brooks, Hawaii) at(Brooks, SFO)has(Brooks, suitcase)at(Brooks, SFO) has(Brooks, suitcase)at(Brooks, home) FindSuitcase
FindSwimsuit
walkToCar^
DriveToSFO
WalkToGate ParkCar
FindSeat^ Department of Computer Science — University of San Francisco – p.7/
Start,^
F inish
,^ Start^
≺^ F inish
While (no solution)^ Select an open precondition
p^ on an action
B^ or an abstract action
′ a.
if we have selected a precondition:^ Find each action
A^ that satisfies that precondition; generate a new plan for each action. for each of these plans:^ •^ Add ordering constraints
A^ ≺^ B
, plus causal links
p^ A → B
-^ Resolve any conflicts between causal links. If no consistent plan exists,discard. else if we have selected an abstract plan Find each decomposition
d^ of action
′ a
For each decomposition: Add this new subplan Check for task sharing. Resolve conflicts.
Department of Computer Science — University of San Francisco – p.9/
subtask sharing
Two subplans both contain the same action or achievethe same effect.^ PackSuitcase and GoToAirport might both containcheckWeather as actions. We can eliminate one of them. This is sometimes called synergy
Department of Computer Science — University of San Francisco – p.10/
Department of Computer Science — University of San Francisco – p.12/
Department of Computer Science — University of San Francisco – p.13/
Department of Computer Science — University of San Francisco – p.15/
disjunctive
effects
. P utOnT ire
(tire) P reconditions
:^ On (tire, Ground
)^ ∧^ Clear
(Axle
)
Ef f ect
: (On
(tire, Axle
)^ ∧ ¬On
(tire, Ground
)^ ∧
¬Clear
(Axle
))^ ∨^ On
(tire, Ground
)^ Department of Computer Science — University of San Francisco – p.16/
. We plan, and then execute. This is fine when all possible failures are known inadvance. But what about worlds where there are problems wecan’t anticipate? In this case, our agent must be able to monitor itsexecution and replan if necessary.
Department of Computer Science — University of San Francisco – p.18/
Department of Computer Science — University of San Francisco – p.19/