CMU-Q Lecture 5: Classical Planning Factored Representations STRIPS. Teacher: Gianni A. Di Caro
|
|
- Anastasia Montgomery
- 5 years ago
- Views:
Transcription
1 CMU-Q Lecture 5: Classical Planning Factored Representations STRIPS Teacher: Gianni A. Di Caro
2 AUTOMATED PLANNING: FACTORED STATE REPRESENTATIONS 2
3 PLANNING, FOR (MORE) COMPLEX WORLDS Searching for plan of action to achieve one s goal is a critical part of AI (in both open and closed loop) In fact, planning is glorified search But search needs more powerful state representations than those used so far, in order to be effective So far: states are indivisible, they have no internal structure Planning exploiting structured representation of states And let s keep living in deterministic, known, fully observable, single agent worlds This is what is commonly termed Classical Planning 3
4 STATE REPRESENTATIONS So far Now (Structured) B C B C (a) Atomic (b) Factored (b) Structured 4
5 STATE REPRESENTATIONS The vacuum-world example 5
6 THE NEED FOR FACTORED STATES The goal is to reach the banana, but achieving the goal requires achieving, in the correct sequence, a number of sub-goals that overall make a Plan 6
7 PROPOSITIONAL STRIPS PLANNING STRIPS / PDDL language(s) to represent / solve planning problems based on propositional (factored) state representation STRIPS = Stanford Research Institute Problem Solver (1971) o Originally based on first-order logic, later simplified to include only propositional logic (Logic-based) Language expressive enough to describe a wide variety of problems, but restrictive enough to allow efficient algorithms to operate over it PDDL = Planning Domain Definition Language ( ), the standard language for defining planning domains and problems, it includes original STRIPS + more advanced features. Last version is 3.1, from Compact representation of planning. A state is a conjunction of propositions, e.g., at(truck 1,Shadyside) at(truck 2,Oakland) o Proposition: A statement that is either true or false à A fact o Predicate: a proposition that contains variables/parameters, such as at(truck, place) States are transformed via operators (actions) that have the form Preconditions Postconditions (effects) 7
8 RUNNING EXAMPLE: BLOCKS WORLD A C A B B C Start Goal Objects of the world: Block A Block B Block C Table Hand Predicates that can be used to describe the world: ontable(x) ( on(x, [Table Y] ) on(x, Y) clear(x) holding(x) handempty(x) Negation of all the above Actions: 8
9 REPRESENTING STATES AS SET OF FACTS World states are represented as sets of facts: conjunction of propositions (conditions) Fact(ored) representation of states! State 1 = { holding(a), clear(b), on(b,c), ontable(c)} Closed World Assumption (CWA): Facts not listed in a state are assumed to be false. Under CWA the assumption the agent has full observability and only positive facts need to be stated 9
10 STATES State: o Propositional literals: Poor Unknown o Ground first order literals: At(Plane 1, Rome) At(Plane 2, Tokyo) At(x, Rome) At(y, Tokyo) o Function-free: At(Father(Tom), NY) At(Alex, NY) Father(Alex, Tom) The world is represented through a set of features / objects (e.g., planes, people, cities) and each proposition states a fact that attributes values to features Objects State propositions CWA 10
11 REPRESENTING GOALS AS SET OF FACTS Also Goals (being world states) are represented as sets of facts Example: state { on(a,b) } can be set as a goal A goal state is any state that includes all the goal facts State 1 is a not goal state for the goal { on(a,b) } State 2 is a goal state for the goal { on(a,b) } 11
12 GOALS Goals: A conjunction of facts, At(P 1, JFK) At(P 2, SFO), that may also contain variables, such as: At(p, JFK) Plane(p) to have any plane at JFK The aim is to reach a state that entails a goal: OnTable(A) OnTable(B) OnTable(D) On(C, D) Clear(A) Clear(B) Clear(C) satisfies the goal to stack C on D A goal g is a conjunction of sub-goals! g = g 1 g 2 g n We can focus on getting individual sub-goals. Not possible in atomic representations! Goals are reached through sequences of actions (the plan) 12
13 ACTIONS Actions: Operators with Preconditions + Effects (Postconditions) Pre-cond is a conjunction of positive and negative conditions that must be satisfied to apply the operation Post-cond is a conjunction of positive and negative conditions that become true when the operation is applied PutDown(A,B): as PRE, robot hand is holding A + B s top is clear à the action puts A down on top of B A STRIPS action definition specifies: ü A set PRE of preconditions facts ü A set ADD of add effect facts (to state facts) ü A set DEL of delete effect facts (from state facts) In STRIPS only positive preconditions are used 13
14 EXAMPLE: MOVE OPERATOR 14
15 ACTION SCHEMA Action schema: a number of different actions that can be derived by universal quantification of the variables An action schema to fly a plane from one location to another: Action(Fly(p, from, to), PRECOND: At(p, from) Plane(p) Airport(from) Airport(to) EFFECT: At(p, from) At(p, to)) An action is applicable in state s if s entails the preconditions The facts negated by the effect of Action are removed from s, while the positive facts resulting from Action are added to s 15
16 ACTION SCHEMA Action schema: Action(Name(v 1, v 2,., v n ), PRECONDITIONS: P 1 (v) P 2 (v) P m (v) ADD-LIST: {F 1 (v), F 2 (v),., F q (v)} DELETE-LIST: {S i (p), S j (p) S k (p)} RESULT(s, a) = (s DELETE(a)) ADD(a) 16
17 (CLASSICAL, PROPOSITIONAL) PLANNING PROBLEM Planning domain: o Set of Action schemas (actions) o Set of Predicates (conjunction of predicates à states) Planning problem (instance): o Planning domain o Set of Objects (world features) o Initial state (facts/propositions about the objects) o Goal(s) Solution of the planning problem: A sequence of actions that, starting from the initial state, end in a state s that entails the goal 17
18 AUTOMATED PLANNING PROBLEM An action-state model P = < S, s +,-.,, S /0-1, A, T, c, G > S: the set of states (can be atomic, factorial) s start S: the initial state, in S S goal S : the subset of goal states, in S A : the set of possible actions, can be defined as A(s) T: S A S : the Successor / state Transition function c: S A R : the step cost for taking action a in state s G: S {0,1} : criterion to check whether or not at a goal / terminal state Solution plan: Path [s start, s 1, s 2, s goal ] associated to the feasible sequence of actions, [a 1, a 2, a n ] such that cost(path) is minimized 18
19 EXAMPLE: AIR CARGO TRANSPORTATION Air cargo transportation problem (from R&N) Predicates: At, Cargo, Plane, Airport, In Objects: C 1 (cargo container), C 2, P 1 (plane), P 2, SFO, JFK Actions: Load, Unload, Fly 19
20 BLOCKS WORLD C A Start B A B B C A C on(a,b), on(b,c) Goal A B C Plan: MoveToTable (C, A) MoveFromTable (B, C) MoveFromTable (A, B) MoveToTable(X, Y) Pre: clear(x) on(x,y) on(x,table) clear(x) on(x,y) Move (X, From, To): clear(x) on(x, From) clear(to) block(x) block(to) on(x,to) clear(to) on(x,from) MoveFromTable (X, Y) 20
21 COMPLEXITY OF PLANNING PLANSAT is the problem of determining whether a given planning problem is satisfiable In general PLANSAT is PSPACE-complete (~require an amount of space which is exponential in the size of the input) Bounded PlanSAT = decide if plan of given length exists (Bounded) PlanSAT decidable but PSPACE-hard Disallow neg effects: (Bounded) PlanSAT NP-hard Disallow neg preconditions: PlanSAT in P but finding optimal (shortest) plan still NP-hard 21
22 COMPLEXITY RESULTS FOR PLANSAT 22
23 PLANNING AS SEARCH (Forward) Search from initial state to goal Can use search techniques, including heuristic search At(P 1,A) At(P 2,A) Fly(P 1,A,B) Fly(P 2,A,B) At(P 1,B) At(P 2,A) At(P 1,A) At(P 2,B) 23
24 (FORWARD) STATE-SPACE SEARCH In absence of function symbols, the state space of a planning problem is finite Any graph search algorithm that is complete will be a complete planning algorithm Irrelevant action problem: All applicable actions are considered at each state! The resulting branching factor b is typically large and the state space is exponential in b Needs for good heuristics! At home get milk, bananas and a cordless drill return home 24
25 (FORWARD) STATE-SPACE SEARCH Air Cargo Example Initial state: 10 airports, each airport has 5 planes and 20 pieces of cargo Goal: transport all the cargos at airport A to airport B Solution: load the 20 pieces of cargo at A into one of the planes at A and fly it to B Avg Branching factor b: each of the 50 planes can fly to 9 other airports, and each of the 200 packages can be either unloaded (if it is loaded), or loaded into any plane at its airport (if it is unloaded) à ~ 2000 possible actions per state Number of states to explore: O(b d )
26 FIND A HEURISTIC: RELAX THE PROBLEM Define a Relaxed problem: (Potentially) Easy to solve The solution of the relaxed problem gives an admissible heuristic for A* Any ideas about how to perform a general relaxation? Relaxation: Remove all preconditions from actions Every action will always be applicable, and any condition (sub-goal) can be potentially achieved in one step (if there is an action that sets the sub-goal literal to true, otherwise the problem is impossible) h(x) = Cost-to-go(al) of the relaxed problem from state x Equivalent to adding edges to the state graph: including forbidden actions 26
27 DOMAIN-INDEPENDENT HEURISTIC Solving the relaxed problem should be easy enough, we can even think to take a shortcut, by setting the solution to be the same as the number of unsatisfied sub-goals from current state x h(x) =~ number of unsatisfied goals from current state x o It looks like a correct estimate and also admissible or maybe not? (we need admissibility!) Impossible to derive such a heuristic with atomic states! The successor function is a black box, here we exploit the structure of the representation The heuristic is domain-independent! With atomic states, in general only domain-specific heuristics are possible 27
28 HEURISTIC: IGNORE PRECONDITIONS Complications, that could made the heuristic function h(x) neither admissible nor being the solution of the relaxed problem: a. Some operations achieve multiple sub-goals (have multiple post-conditions) b. Some operations undo the effects of others To get an admissible and efficient heuristic ignore preconditions and, in addition ignore (i.e., further relax) 1. Just a 2. Just b 3. Both a and b 28
29 HEURISTIC: IGNORE PRECONDITIONS Complications, that could made the heuristic function h(x) neither admissible nor being the solution of the relaxed problem: a. Some operations achieve multiple sub-goals (have multiple post-conditions) h(x) doesn t correspond to the solution of the relaxed problem + it violates admissibility b. Some operations undo the effects of others h(x) doesn t correspond to the solution of the relaxed problem 29
30 IGNORE PRECONDITIONS + NON-GOAL EFFECTS To avoid actions that can cancel each other effects: remove all the effects of actions, except those that are facts g i, i=1,,n, in the goal g (i.e., sub-goals) Exploit factored structure! g 1 g 2 g 4 h x = from x, the min number of actions such that the union of their effects contains all n sub-goals g i Admissible g 5 g 3 g 6 Computing h(x) = solving a SET COVER problem: NP-hard! Greedy log n approximation: o Admissibility is lost! A2 A3 A4 A5 A6 A7 G1 x X X x G2 x X x G3 x x X G4 x X 30
31 IGNORE (SPECIFIC) PRECONDITIONS Ignore specific preconditions to derive domain-specific heuristics Sliding block puzzle, move(t,s 1,s 2 ) action: On(t, s 1 ) Blank(s 2 ) Adjacent(s 1, s 2 ) On(t, s 2 ) Blank(s 1 ) On(t, s 1 ) Blank(s 2 ) Consider two options for removing specific preconditions from move() a.removing Blank(s B ) Adjacent(s C, s B ) b.removing Blank(s B ) Poll: Match option to heuristic: 1.a Manhattan, b #misplaced tiles 2.a #misplaced tiles, b Manhattan 3.b #misplaced tiles, a is inadmissible 4.b Manhattan, a is inadmissible Example state Goal state 31
32 BACKWARD STATE-SPACE SEARCH Searching from a goal state to the initial state (regression) We only need to consider actions that are relevant to the goal (or current state) Relevant-state search This can makes a strong reduction in branching factor, such that it could be more efficient than forward (progression) search Imagine trying to figure out how to get to some small place with few traffic connections from somewhere with a lot of traffic connections At(P 1, A) At(P 2, A) Fly(P 1, A, B) Fly(P 2, A, B) At(P 1, B) At(P 2, A) At(P 1, A) At(P 2, B) At(P 1, A) At(P 2, B) At(P 1, B) At(P 2, A) Fly(P 1, A, B) Fly(P 2, A, B) At(P 1, B) At(P 2, B) 32
33 BACKWARD STATE-SPACE SEARCH Regression from a (goal) state g over the action a, gives state g o g = (g ADD(a)) Preconditions(a) DEL(a) doesn t appear: we don t know whether the facts negated by DEL(a) were true or not before a, therefore nothing can be said about them Variables can be included, such that a set of states is defined: o Goal At(C 2, SFO) Unload(C 2, p, SFO) g = In(C 2,p) At(p, SFO) Cargo(C 2 ) Plane(p) Airport(SFO) 33
34 BACKWARD STATE-SPACE SEARCH How to select actions? Relevant actions only o Have an effect which is in the set of (current) goal conditions Goal: At(C 1, JFK) At(C 2, SFO) Unload(C 2, p, SFO) is relevant, Fly(p, JFK, SFO) is not relevant Consistent actions only o Have no effect which negates an element of the goal Goal: A B C, action a with effect A B C is not consistent Ø How to define good heuristics? 34
35 CONCLUSIONS, SO FAR Representations using factored states allows to reason about the (factored) structure of the states (in terms of sets of variables) and exploit it A goal states is a conjunction of sub-goals that can be individually satisfied STRIPS / PDDL language to express problem domains and problem instances in a way which expressive enough while allowing for efficient solutions Forward search can in principle applied but the state space and, more importantly, the branching factor b is expected to be very large Uninformed search can t really be used Informed search, A*, is an option but it needs very good heuristics! It may not be obvious to define general, problem-independent, admissible heuristics (in polynomial time) Backward search can potentially be easier since it can partially overcome the problem of irrelevant actions, however, defining heuristics for backward search is even more difficult than forward search We need a better tool, possibly a way for generating tight admissible heuristics for A* in automatic 35
36 PLANNING GRAPHS Graph-based data structure representing a polynomial-size/time approximation of the exponential search tree Can be used to automatically produce good heuristic estimates (e.g., for A*) Can be used to search for a solution using the GRAPHPLAN algorithm 36
37 Planning Graphs Leveled graph: vertices organized into levels/stages, with edges only between levels Two types of vertices on alternating levels: o Conditions o Operations Two types of edges: o Precondition: from condition to operation o Postcondition: from operation to condition 37
38 GENERIC PLANNING GRAPH Condition S 0 contains all the conditions that hold in initial state 38
39 GENERIC PLANNING GRAPH Level S 0 Level O 0 Precondition Condition Add operation to level O i if its preconditions appear in level S i 39
40 GENERIC PLANNING GRAPH Precondition Level S 1 Add condition to level S i if it is the postcondition of an operation (it is in ADD or DELETE lists) in level O IJC Keep a previous condition of no action negates it (persistence, no-op action) Condition No-Op (Persistent action) 40
41 CONDITIONS MONOTONICALLY INCREASE p No-Op O 1 p p No-Op O 1 No-Op p p O 2 q No-Op q No-Op q r No-Op r No-Op r #Conditions (always carried forward by no-ops) 41
42 GENERIC PLANNING GRAPH No-Op (Persistent action) Level S 2 Level O 2 Condition Precondition Operation Postcondition Repeat 42
43 GENERIC PLANNING GRAPH Idea: S i contains all conditions that could hold at stage i based on past actions; O i contains all operations that could have their preconditions satisfied at time i No ordering among the operations is assumed at each stage, they could be executed in parallel The level j at which a condition first appears is a (good) estimate of how difficult is to achieve that condition Can optimistically estimate how many steps it takes to reach a goal g (or sub-goal g i ) from the initial state: admissible heuristic! 43
44 OPERATIONS MONOTONICALLY INCREASE p No-Op O 1 p p No-Op O 1 No-Op p p O 2 q No-Op q No-Op q r No-Op r No-Op r #Operations (as a result of conditions monotonic increase, that keep previous preconditions hold and set new preconditions true) 44
45 MUTUAL EXCLUSION LINKS As it is the graph would be too optimistic! The graph data structure also records conflicts between actions or conditions: two operations or conditions are mutually exclusive (mutex) if no valid plan can contain both at the same time A bit more formally: o Two operations are mutex if their preconditions or postconditions are mutex (inconsistent effects, competing needs, interference) o Two conditions are mutex if one is the negation of the other, or all action pairs that achieve them are mutex (inconsistent support) 45
46 A RUNNING EXAMPLE Have cake and eat cake too problem 46
47 A RUNNING EXAMPLE Only Eat(Cake) is applicable 47
48 A RUNNING EXAMPLE 48
49 MUTEX CASES Inconsistent postconditions (two ops): one operation negates the effect of the other; Eat(Cake) and no-op Have(Cake) Interference (two ops): a postcondition of one operation negates a precondition of other; Eat(Cake) and no-op Have(Cake) (issue in parallel execution, the order should not matter but here it would) B B Inconsistent Postconditions B B Interference 49
50 A RUNNING EXAMPLE Interference Inconsistent postconditions Negation of each other Interference Inconsistent post 50
51 MUTEX CASES Competing needs (two ops): a precondition of one operation is mutex with a precondition of the other because they are the negate of each other, like for Bake(Cake) and Eat(Cake), or because they have inconsistent support B B Competing Needs Inconsistent support (two conditions): each possible pair of operations that achieve the two conditions is mutex. Have(Cake) and Eaten(Cake), are mutex in S 1 but not in S 2 because they can be achieved by Bake(Cake) and Eaten(Cake) Inconsistent Support B C 51
52 A RUNNING EXAMPLE Inconsistent support Competing needs 52
53 SUMMARY STRIPS Language for Automated Planning Factored state representation Actions and action schema Planning problem Complexity of planning Planning as search problem Forward and Backward search Need for domain-independent heuristics Difficulty to define admissible heuristics for A* Planning graph data structure: construction and stored information 53
Set 9: Planning Classical Planning Systems Chapter 10 R&N. ICS 271 Fall 2017
Set 9: Planning Classical Planning Systems Chapter 10 R&N ICS 271 Fall 2017 Planning environments Classical Planning: Outline: Planning Situation calculus PDDL: Planning domain definition language STRIPS
More informationIn which we see how an agent can take advantage of the structure of a problem to construct complex plans of action.
Classical Planning CE417: Introduction to Artificial Intelligence Sharif University of Technology Soleymani In which we see how an agent can take advantage of the structure of a problem to construct complex
More informationFactored Representations. Classical Planning. Examples. Classical Planning
Factored Representations Classical Planning In a factored representation, a state is represented as a collection of ground, functionless atoms. atom means indivisible ground means only constants (no variables)
More informationOn Moving Objects in Dynamic Domains
On Moving Objects in Dynamic Domains Fangzhen Lin Department of Computer Science Hong Kong University of Science and Technology Clear Water Bay, Kowloon, Hong Kong Abstract In the physical world, an object
More informationDeterministic planning
Chapter 3 Deterministic planning The simplest planning problems involves finding a sequence of actions that lead from a given initial state to a goal state. Only deterministic actions are considered. Determinism
More informationExample: Robot Tasks. What is planning? Background: Situation Calculus. Issues in Planning I
What is planning? q A plan is any hierarchical process in the organism that can control the order in which a sequence of operations is to be performed. [Miller, Galanter and Pribram 1960] q Planning can
More informationPrinciples of AI Planning
Principles of 7. State-space search: relaxed Malte Helmert Albert-Ludwigs-Universität Freiburg November 18th, 2008 A simple heuristic for deterministic planning STRIPS (Fikes & Nilsson, 1971) used the
More informationClassical Planning Chapter 10. Mausam (Based on slides of Dan Weld, Marie desjardins)
Classical Planning Chapter 10 Mausam (ased on slides of Dan Weld, Marie desjardins) Given Planning a logical description of the world states, a logical description of a set of possible actions, a logical
More informationPlanning as Satisfiability
Planning as Satisfiability Alan Fern * Review of propositional logic (see chapter 7) Planning as propositional satisfiability Satisfiability techniques (see chapter 7) Combining satisfiability techniques
More informationGraduate AI Lecture 16: Planning 2. Teachers: Martial Hebert Ariel Procaccia (this time)
Graduate AI Lecture 16: Planning 2 Teachers: Martial Hebert Ariel Prcaccia (this time) Reminder State is a cnjunctin f cnditins, e.g., at(truck 1,Shadyside) at(truck 2,Oakland) States are transfrmed via
More informationChapter 3 Deterministic planning
Chapter 3 Deterministic planning In this chapter we describe a number of algorithms for solving the historically most important and most basic type of planning problem. Two rather strong simplifying assumptions
More informationCMU Lecture 4: Informed Search. Teacher: Gianni A. Di Caro
CMU 15-781 Lecture 4: Informed Search Teacher: Gianni A. Di Caro UNINFORMED VS. INFORMED Uninformed Can only generate successors and distinguish goals from non-goals Informed Strategies that can distinguish
More informationInference in first-order logic. Production systems.
CS 1571 Introduction to AI Lecture 17 Inference in first-order logic. Production systems. Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Sentences in Horn normal form Horn normal form (HNF) in
More informationGrundlagen der Künstlichen Intelligenz
Grundlagen der Künstlichen Intelligenz Formal models of interaction Daniel Hennes 27.11.2017 (WS 2017/18) University Stuttgart - IPVS - Machine Learning & Robotics 1 Today Taxonomy of domains Models of
More informationLecture 7: Logic and Planning
Lecture 7: Logic and Planning Planning and representing knowledge Logic in general Propositional (Boolean) logic and its application to planning COMP-424, Lecture 8 - January 30, 2013 1 What is planning?
More informationPrinciples of AI Planning
Principles of 7. Planning as search: relaxed Malte Helmert and Bernhard Nebel Albert-Ludwigs-Universität Freiburg June 8th, 2010 How to obtain a heuristic STRIPS heuristic Relaxation and abstraction A
More informationPrinciples of AI Planning
Principles of 5. Planning as search: progression and regression Malte Helmert and Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 4th, 2010 Planning as (classical) search Introduction Classification
More informationClassical Planning: instantiated actions, state search, heuristics. Manuela M. Veloso. Carnegie Mellon University Computer Science Department
Classical Planning: instantiated actions, state search, heuristics Manuela M. Veloso Carnegie Mellon University Computer Science Department 15-887 Planning, Execution, and Learning Fall 2016 Outline State-space
More informationLogic reasoning systems
Lecture 2 Logic reasoning systems Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Administration No class next week PS-5: Due on Thursda October 4, 2004 Submit directly to Tomas Singliar Midterm:
More informationCS-E4800 Artificial Intelligence
CS-E4800 Artificial Intelligence Jussi Rintanen Department of Computer Science Aalto University March 1, 2017 Second Assignment (out on February 3) Model your problem in the propositional logic (expressed
More informationPrinciples of AI Planning
Principles of AI Planning 5. Planning as search: progression and regression Albert-Ludwigs-Universität Freiburg Bernhard Nebel and Robert Mattmüller October 30th, 2013 Introduction Classification Planning
More informationChapter 7 Propositional Satisfiability Techniques
Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau CMSC 722, AI Planning University of Maryland, Spring 2008 1 Motivation Propositional
More informationAI Planning. goal states B Definition Example Matrices Reachability Algorithm. Transition systems. Succinct TS. initial state
C goal states B Matrices Reachability Algorithm D A E F initial state Formalization of the dynamics of the world/application A transition system is S, I, {a 1,..., a n }, G where S is a finite set of states
More informationSecond Assignment (out on February 3) CS-E4800 Artificial Intelligence. Example of the modeling language for logic used in the 2nd assignment
Second Assignment (out on February 3) CS-E4800 Artificial Intelligence Jussi Rintanen Department of Computer Science Aalto University March 1, 2017 Second Assignment (out on February 3) Assignments emailed
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short
More informationArtificial Intelligence Chapter 7: Logical Agents
Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent State University February 20, 2006 AI: Chapter 7: Logical Agents 1 Contents Knowledge Based Agents
More informationIntelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University
Intelligent Agents Formal Characteristics of Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University Extensions to the slides for chapter 3 of Dana Nau with contributions by
More informationIntroduction on Situational Calculus
Introduction on Situational Calculus Fangkai Yang Department of Computer Sciences The University of Texas at Austin September 24, 2010 Fangkai Yang (fkyang@cs.utexas.edu) September 24, 2010 1 / 27 Outline
More informationSolving Problems By Searching
Solving Problems By Searching Instructor: Dr. Wei Ding Fall 2010 1 Problem-Solving Agent Goal-based agents: considering future actions and the desirability of their outcomes. Decide what to do by finding
More informationPropositional Logic: Methods of Proof. Chapter 7, Part II
Propositional Logic: Methods of Proof Chapter 7, Part II Inference in Formal Symbol Systems: Ontology, Representation, ti Inference Formal Symbol Systems Symbols correspond to things/ideas in the world
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (previous lecture, Part I) Chapter 7.5 (this lecture, Part II) (optional: 7.6-7.8)
More informationOn the Complexity of Domain-Independent Planning
On the Complexity of Domain-Independent Planning Kutluhan Erol Dana S. Nau V. S. Subrahmanian kutluhan@cs.umd.edu nau@cs.umd.edu vs@cs.umd.edu Computer Science Department University of Maryland College
More informationChapter 7 Propositional Satisfiability Techniques
Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau University of Maryland 12:58 PM February 15, 2012 1 Motivation Propositional satisfiability:
More informationWhat happens to the value of the expression x + y every time we execute this loop? while x>0 do ( y := y+z ; x := x:= x z )
Starter Questions Feel free to discuss these with your neighbour: Consider two states s 1 and s 2 such that s 1, x := x + 1 s 2 If predicate P (x = y + 1) is true for s 2 then what does that tell us about
More informationPlanning Graphs and Knowledge Compilation
Planning Graphs and Knowledge Compilation Héctor Geffner ICREA and Universitat Pompeu Fabra Barcelona, SPAIN 6/2004 Hector Geffner, Planning Graphs and Knowledge Compilation, 6/2004 1 Planning as SAT (Kautz
More informationChapter 7 R&N ICS 271 Fall 2017 Kalev Kask
Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing
More informationBelief Tracking for Planning with Sensing
Belief Tracking for Planning with Sensing Blai Bonet Universidad Simón Boĺıvar 2nd Brazilian Conf. on Intelligent Systems (BRACIS) Fortaleza, Brazil 2013 (joint work with Hector Geffner) Recap on Early
More information9. PSPACE 9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete
Geography game Geography. Alice names capital city c of country she is in. Bob names a capital city c' that starts with the letter on which c ends. Alice and Bob repeat this game until one player is unable
More information9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete
9. PSPACE PSPACE complexity class quantified satisfiability planning problem PSPACE-complete Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley Copyright 2013 Kevin Wayne http://www.cs.princeton.edu/~wayne/kleinberg-tardos
More informationMotivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory
Motivation CS389L: Automated Logical Reasoning Lecture 10: Overview of First-Order Theories Işıl Dillig Last few lectures: Full first-order logic In FOL, functions/predicates are uninterpreted (i.e., structure
More informationEE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 10, 5/9/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Logical Agents Chapter 7
More informationChapter 9. PSPACE: A Class of Problems Beyond NP. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.
Chapter 9 PSPACE: A Class of Problems Beyond NP Slides by Kevin Wayne. Copyright @ 2005 Pearson-Addison Wesley. All rights reserved. 1 Geography Game Geography. Alice names capital city c of country she
More information6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch
6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch Today: More Complexity Theory Polynomial-time reducibility, NP-completeness, and the Satisfiability (SAT) problem Topics: Introduction
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Frank Hutter and Bernhard Nebel Albert-Ludwigs-Universität Freiburg
More informationCS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018
CS 580: Algorithm Design and Analysis Jeremiah Blocki Purdue University Spring 2018 Chapter 9 PSPACE: A Class of Problems Beyond NP Slides by Kevin Wayne. Copyright @ 2005 Pearson-Addison Wesley. All rights
More informationSAT, NP, NP-Completeness
CS 473: Algorithms, Spring 2018 SAT, NP, NP-Completeness Lecture 22 April 13, 2018 Most slides are courtesy Prof. Chekuri Ruta (UIUC) CS473 1 Spring 2018 1 / 57 Part I Reductions Continued Ruta (UIUC)
More informationComplexity of domain-independent planning. José Luis Ambite
Complexity of domain-independent planning José Luis Ambite 1 Decidability Decision problem: a problem with a yes/no answer e.g. is N prime? Decidable: if there is a program (i.e. a Turing Machine) that
More informationPlanning as Problem Solving. Planning. Planning as Problem Solving. Planning as Problem Solving. Situation Calculus.
6.825 Techniques in Artificial Intelligence Planning Planning vs solving Situation calculus Plan-space planning A B C D I J K L Can be cast as solving Actions: N,S,,W not known exactly?.g. N in bottom
More informationOptimal Planning for Delete-free Tasks with Incremental LM-cut
Theoretical Background Contributions Experiments Conclusion Optimal Planning for Delete-free Tasks with Incremental LM-cut Florian Pommerening and Malte Helmert Universität Basel Departement Informatik
More informationChapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013
Chapter 2 Reductions and NP CS 573: Algorithms, Fall 2013 August 29, 2013 2.1 Reductions Continued 2.1.1 The Satisfiability Problem SAT 2.1.1.1 Propositional Formulas Definition 2.1.1. Consider a set of
More informationPart of this work we present an extension for Language PP and we show how this
Chapter 5 Planning problems Currently, we can find different definitions for Planning. For instance, McCarthy defines planning in [25] as the restricted problem of finding a finite sequence of actions
More informationLogical Agents. Chapter 7
Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem
More informationTry to find a good excuse!
Try to find a good excuse! BRA-2015 (Workshop on Belief Revision and Argumentation) Bernhard Nebel & Moritz Göbelbecker Department of Computer Science Foundations of Artificial Intelligence Finding excuses
More informationLogical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5
rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical
More informationLogic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning
Logic Knowledge Representation & Reasoning Mechanisms Logic Logic as KR Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logical inferences Resolution and Theorem-proving Logic
More informationIntelligent Agents. Pınar Yolum Utrecht University
Intelligent Agents Pınar Yolum p.yolum@uu.nl Utrecht University Logical Agents (Based mostly on the course slides from http://aima.cs.berkeley.edu/) Outline Knowledge-based agents Wumpus world Logic in
More informationn Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B
Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.7, 5.5) TOPICS Sets and Functions Propositional and Predicate Logic Logical Operators and Truth Tables Logical Equivalences and Inference
More informationCollaborative Planning with Privacy
Collaborative Planning with Privacy Protocol exchange May 7, 2007 Max Kanovich 1, Paul Rowe 2, Andre Scedrov 2 1 Quenn Mary, University of London 2 University of Pennsylvania Context Many examples of collaboration
More information15-780: Grad AI Lecture 17: Probability. Geoff Gordon (this lecture) Tuomas Sandholm TAs Erik Zawadzki, Abe Othman
15-780: Grad AI Lecture 17: Probability Geoff Gordon (this lecture) Tuomas Sandholm TAs Erik Zawadzki, Abe Othman Review: probability RVs, events, sample space Ω Measures, distributions disjoint union
More informationPrinciples of AI Planning
Principles of AI Planning 4. Normal forms Albert-Ludwigs-Universität Freiburg Bernhard Nebel and Robert Mattmüller October 31st, 2012 Similarly to s in propositional logic (DNF, CNF, NNF,... ) we can define
More informationOn the Role of Possibility in Action Execution and Knowledge in the Situation Calculus
On the Role of Possibility in Action Execution and Knowledge in the Situation Calculus Vahid Vaezian (B) and James P. Delgrande School of Computing Science, Simon Fraser University, Burnaby, BC V5A 1S6,
More informationLecture 22: Quantum computational complexity
CPSC 519/619: Quantum Computation John Watrous, University of Calgary Lecture 22: Quantum computational complexity April 11, 2006 This will be the last lecture of the course I hope you have enjoyed the
More informationEssential facts about NP-completeness:
CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions
More informationLogical Agent & Propositional Logic
Logical Agent & Propositional Logic Berlin Chen 2005 References: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 7 2. S. Russell s teaching materials Introduction The representation
More informationConjunctive Normal Form and SAT
Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca October 4, 2015 These notes are a preliminary draft. Please use freely, but do not re-distribute
More informationConjunctive Normal Form and SAT
Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 19, 2013 This is a preliminary draft of these notes. Please do not distribute without
More informationTitle: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)
B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876
More informationReasoning About Imperative Programs. COS 441 Slides 10b
Reasoning About Imperative Programs COS 441 Slides 10b Last time Hoare Logic: { P } C { Q } Agenda If P is true in the initial state s. And C in state s evaluates to s. Then Q must be true in s. Program
More information6. Logical Inference
Artificial Intelligence 6. Logical Inference Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder University of Zagreb Faculty of Electrical Engineering and Computing Academic Year 2016/2017 Creative Commons
More informationAgenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World
Agenda Artificial Intelligence 10. Propositional Reasoning, Part I: Principles How to Think About What is True or False 1 Introduction Álvaro Torralba Wolfgang Wahlster 2 Propositional Logic 3 Resolution
More informationWeek 3: Reductions and Completeness
Computational Complexity Theory Summer HSSP 2018 Week 3: Reductions and Completeness Dylan Hendrickson MIT Educational Studies Program 3.1 Reductions Suppose I know how to solve some problem quickly. How
More informationKnowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):
Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building
More informationLecture 10: Feb. 11, 2015
CS324: AI (Situation Calculus & Reasoning.) Spring 2015 Lecturer: K.R. Chowdhary Lecture 10: Feb. 11, 2015 : Professor of CS (VF) Disclaimer: These notes have not been subjected to the usual scrutiny reserved
More informationConjunctive Normal Form and SAT
Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 10, 2014 These notes are a preliminary draft. Please use freely, but do not re-distribute
More informationThe Assignment Axiom (Hoare)
The Assignment Axiom (Hoare) Syntax: V := E Semantics: value of V in final state is value of E in initial state Example: X:=X+ (adds one to the value of the variable X) The Assignment Axiom {Q[E/V ]} V
More informationReasoning about State Constraints in the Situation Calculus
Reasoning about State Constraints in the Situation Calculus Joint work with Naiqi Li and Yi Fan Yongmei Liu Dept. of Computer Science Sun Yat-sen University Guangzhou, China Presented at IRIT June 26,
More information7. Propositional Logic. Wolfram Burgard and Bernhard Nebel
Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics
More informationPL: Truth Trees. Handout Truth Trees: The Setup
Handout 4 PL: Truth Trees Truth tables provide a mechanical method for determining whether a proposition, set of propositions, or argument has a particular logical property. For example, we can show that
More informationProof Rules for Correctness Triples
Proof Rules for Correctness Triples CS 536: Science of Programming, Fall 2018 A. Why? We can t generally prove that correctness triples are valid using truth tables. We need proof axioms for atomic statements
More informationPrice: $25 (incl. T-Shirt, morning tea and lunch) Visit:
Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and
More informationDeliberative Agents Knowledge Representation I. Deliberative Agents
Deliberative Agents Knowledge Representation I Vasant Honavar Bioinformatics and Computational Biology Program Center for Computational Intelligence, Learning, & Discovery honavar@cs.iastate.edu www.cs.iastate.edu/~honavar/
More informationFinal exam of ECE 457 Applied Artificial Intelligence for the Fall term 2007.
Fall 2007 / Page 1 Final exam of ECE 457 Applied Artificial Intelligence for the Fall term 2007. Don t panic. Be sure to write your name and student ID number on every page of the exam. The only materials
More informationNP-Completeness Part II
NP-Completeness Part II Recap from Last Time NP-Hardness A language L is called NP-hard iff for every L' NP, we have L' P L. A language in L is called NP-complete iff L is NP-hard and L NP. The class NPC
More informationCS360 Homework 12 Solution
CS360 Homework 12 Solution Constraint Satisfaction 1) Consider the following constraint satisfaction problem with variables x, y and z, each with domain {1, 2, 3}, and constraints C 1 and C 2, defined
More information21. Set cover and TSP
CS/ECE/ISyE 524 Introduction to Optimization Spring 2017 18 21. Set cover and TSP ˆ Set covering ˆ Cutting problems and column generation ˆ Traveling salesman problem Laurent Lessard (www.laurentlessard.com)
More informationArtificial Intelligence
Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2016/17 (slides based on Stuart Russell s AI course) Motivation: Most students will have learnt about propositional
More informationComputational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)
Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/30) Propositional Logic - sequent calculus To overcome the problems of natural
More informationAnnouncements CompSci 102 Discrete Math for Computer Science
Announcements CompSci 102 Discrete Math for Computer Science Read for next time Chap. 1.4-1.6 Recitation 1 is tomorrow Homework will be posted by Friday January 19, 2012 Today more logic Prof. Rodger Most
More informationCS 771 Artificial Intelligence. Propositional Logic
CS 771 Artificial Intelligence Propositional Logic Why Do We Need Logic? Problem-solving agents were very inflexible hard code every possible state E.g., in the transition of 8-puzzle problem, knowledge
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard, Maren Bennewitz, and Marco Ragni Albert-Ludwigs-Universität Freiburg Contents 1 Agents
More informationAI Programming CS S-06 Heuristic Search
AI Programming CS662-2013S-06 Heuristic Search David Galles Department of Computer Science University of San Francisco 06-0: Overview Heuristic Search - exploiting knowledge about the problem Heuristic
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 17, 2016
More informationCS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón
CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS Santiago Ontañón so367@drexeledu Summary of last day: Logical gents: The can reason from the knowledge they have They can make deductions from their perceptions,
More informationLogical Agents: Propositional Logic. Chapter 7
Logical Agents: Propositional Logic Chapter 7 Outline Topics: Knowledge-based agents Example domain: The Wumpus World Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity,
More informationNP-Complete and Non-Computable Problems. COMP385 Dr. Ken Williams
NP-Complete and Non-Computable Problems COMP385 Dr. Ken Williams Start by doing what s necessary; then do what s possible; and suddenly you are doing the impossible. Francis of Assisi Our Goal Define classes
More informationPlanning as X X {SAT, CSP, ILP, }
Planning as X X {SAT, CSP, ILP, } José Luis Ambite* [* Some slides are taken from presentations by Kautz, Selman, Weld, and Kambhampati. Please visit their websites: http://www.cs.washington.edu/homes/kautz/
More informationIntroduction to Arti Intelligence
Introduction to Arti Intelligence cial Lecture 4: Constraint satisfaction problems 1 / 48 Constraint satisfaction problems: Today Exploiting the representation of a state to accelerate search. Backtracking.
More informationIntelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.
Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015
More informationCOMP4418, 25 October 2017 Planning. Planning. KRR for Agents in Dynamic Environments. David Rajaratnam 2017 ( Michael Thielscher 2015) COMP s2
1 Planning KRR for Agents in Dynamic Environments 2 Overview Last week discussed Decision Making in some very general settings: Markov process, MDP, HMM, POMDP. This week look at a practical application
More informationLogical Agent & Propositional Logic
Logical Agent & Propositional Logic Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. S. Russell and P. Norvig. Artificial Intelligence:
More information