Chapter 4 Deliberation with Temporal Domain Models
|
|
- Janice Douglas
- 5 years ago
- Views:
Transcription
1 Last update: April 10, 2018 Chapter 4 Deliberation with Temporal Domain Models Section 4.4: Constraint Management Section 4.5: Acting with Temporal Models Automated Planning and Acting Malik Ghallab, Dana Nau and Paolo Traverso Dana S. Nau University of Maryland Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License 1
2 Outline Introduction Representation Temporal planning = 4.4 Constraint Management Ø Consistency of object constraints and time constraints Ø Controlling the actions when we don t know how long they ll take = 4.5 Acting with temporal models 2
3 Constraint Management = Each time TemPlan applies a resolver, it modifies (T,C) Ø Some resolvers will make (T,C) inconsistent No solution in this part of the search space Detect inconsistency => prune this part of the search space Don t detect it => waste time looking for a solution = Analogy: PSP checked simple cases of inconsistency Ø E.g., can t create a constraint a b if there s already a constraint b a Ø Ignored more complicated cases = Example: Ø c 1, c 2, c 3 Containers = {c1, c2} Ø Suppose that to resolve 3 threats, PSP chooses these resolvers: c 1 c 2, c 2 c 3, c 1 c 3 Ø No solutions in this part of the search space, but PSP searches it anyway 3
4 Constraint Management in TemPlan = At various points, check consistency of C Ø If C is inconsistent, then (T,C) is inconsistent Can prune this part of the search space Ø If C is consistent then (T,C) may or may not be consistent = Example of a case where C is consistent but (T,C) isn t: T = {[t 1,t 2 ] loc(r1)=loc1, [t 3,t 4 ] loc(r1)=loc2} C = (t 1 < t 3 < t 4 < t 2 ) Ø Gives loc(r1) two values during [t 3,t 4 ] 4
5 Consistency of C = C contains two kinds of constraints Ø Object constraints loc(r) l 2, l {loc3, loc4}, r = r1, o o Ø Temporal constraints t 1 < t 3, a < t, t < t, a t t b = Assume object constraints are independent of temporal constraints and vice versa Ø exclude things like t < f (l,r) = Then two separate subproblems Ø (1) check consistency of object constraints Ø (2) check consistency of temporal constraints Ø C is consistent iff both are consistent 5
6 Object Constraints = Constraint-satisfaction problem (CSP) NP-hard = Can write an algorithm that s complete but runs in exponential time If there s an inconsistency, always finds it Might do a lot of pruning, but spend lots of time at each node = Instead, use a constraint-satisfaction technique that s incomplete but takes polynomial time arc consistency, path consistency = Detects some inconsistencies but not others Ø Runs much faster, but prunes fewer nodes 6
7 To represent time constraints: = Simple Temporal Networks (STNs) Time Constraints Ø Networks of constraints on time points = Synthesize incrementally them starting from ϕ 0 Ø Templan can check time constraints in time O(n 3 ) = Incrementally instantiated at acting time = Kept consistent throughout planning and acting t1 [6, 7] [1, 2] t2 [1, 7] t3 [4, 5] t5 [3, 4] [1, 2] t4 7
8 = Simple Temporal Network (STN): = a pair (V,E), where Time Constraints V = {a set of temporal variables {t 1,, t n } E V 2 is a set of arcs = Each arc (t i,t j ) is labeled with an interval [a,b] Represents constraint a t j t i b Equivalently, b t i t j a = Representing unary constraints: dummy variable t 0 = 0 Ø Arc r 0i = (t 0,t i ) labeled with [a,b] represents a t i 0 b = Solution to an STN: integer value for each t i, all constraints satisfied = Consistent STN: has a solution = Minimal STN: for every arc (t i,t j ) with label [a,b], for every t [a,b] Ø there s at least one solution such that t j t i = t t 1 t 1 t 2 [1,2] [3,4] [2,3] t 2 [1,2] [3,4] [ 3, 2] t 3 t 3 = Shorthand: instead of a t j t i b, write r ij = [a ij,b ij ] 8
9 Operations on STNs = Intersection, r ij t j t i r ij = [a ij, b ij ] t j t i r ij = [a ij, b ij ] t i r ij t j Infer t j t i r ij r ij = [max(a ij,a ij ), min(b ij,b ij )] r ij r ij = Composition, t k t i r ik = [a ik,b ik ] r ik t k r kj t j t k r kj = [a kj,b kj ] t i t j Infer t j t i r ik r kj = [a ik +a kj, b ik +b kj ] r ik r kj Reason: shortest and longest times for the two intervals = Consistency checking r ik t k r kj r ik, r kj, r ij are consistent if r ij (r ik r kj ) t i r ij r ik r kj t j r ij (r ik r kj ) 9
10 Two Examples t 2 [1,2] [3,4] t 2 [1,2] [3,4] t 1 [2,3] = STN (V,E), where Ø V = {t 1, t 2, t 3 } Ø E = {r 12 =[1,2], r 23 =[3,4], r 13 =[2,3]} = Composition: Ø r 13 = r 12 r 23 = [4,6] = Can t satisfy both r 13 and r 13 Ø r 13 r 13 = [2,3] [4,6] = = (V,E) is inconsistent t 3 t 1 [2,5] = STN (V,E), where Ø V = {t 1, t 2, t 3 } Ø E = {r 12 =[1,2], r 23 =[3,4], r 13 =[2,5]} = As before, r 13 = [4,6] = This time, (V,E) is consistent Ø r 13 r 13 = [4,5] = Minimal network: change r 13 to [4,5] t 2 [1,2] [3,4] t 3 t 1 [4,5] t 3 10
11 Operations on STNs PC(V,E): for 1 k n do for 1 i < j n, i k, j k do r ij r ij [r ik r kj ] if r ij = then return inconsistent i t1 [6, 7] [1, 2] k t2 t3 [4, 5] [3, 4] [1, 2] t4 j = PC (Path Consistency) algorithm: Ø Consistency checking on all triples Ø If an arc has no constraint, use [, + ] Ø n constraints => n 3 triples => time O(n 3 ) t5 = Example: k = 2, i = 1, j = 2 r 12 = [1,2] r 24 = [3,4] r 14 = [, ] r 12 r 24 = [1+3, 2+4] = [4,6] r 14 [max(,4), min(,6)] = [4,6] 11
12 Operations on STNs PC(V,E): for 1 k n do for 1 i < j n, i k, j k do r ij r ij [r ik r kj ] if r ij = then return inconsistent i t1 [6, 7] [1, 2] k t2 t3 [4, 5] [3, 4] [1, 2] t4 j = Detects inconsistent networks Ø r ij = [a ij,b ij ] empty => inconsistent = Makes STN minimal Ø Shrinks each r ij to exclude values that aren t in any solution = Can modify it to make it incremental Ø Input: a consistent, minimal STN, and a new constraint r ij Ø Incorporate r ij in time O(n 2 ) t5 = Example: k = 2, i = 1, j = 2 r 12 = [1,2] r 24 = [3,4] r 14 = [, ] r 12 r 24 = [1+3, 2+4] = [4,6] r 14 [max(,4), min(,6)] = [4,6] 12
13 Pruning TemPlan s search space = Take the time constraints in C Ø Write them as an STN Ø Use Path Consistency to check whether STN is consistent Ø If it s inconsistent, TemPlan can backtrack 13
14 Controllability = Section of the book = Suppose TemPlan gives you a chronicle and you want to execute it Ø Constraints on time points Ø Need to reason about these in order to decide when to start each action t1 [30, 50] bring&move t2 [-5, 5] t3 uncover [5, 10] t4 14
15 Controllability = Solid lines: duration constraints Ø Robot will do bring&move, will take 30 to 50 time units Ø Crane will do uncover, will take 5 to 10 time units = Dashed line: synchronization constraint Ø Don t want either the crane or robot to wait long Ø At most 5 seconds between the two ending times = Objective Ø Choose time points that will satisfy all the constraints t1 [30, 50] t2 bring&move uncover t3 [5, 10] [-5, 5] t4 15
16 Controllability = Suppose we run PC = PC returns a minimal and consistent network = There exist time points that satisfy all the constraints = Would work if we could choose all four time points Ø But we can t choose t 2 and t 4 t1 [30, 50] t2 bring&move uncover t3 [5, 10] [-5, 5] t4 = t 1 and t 3 are controllable Ø Actor can control when each action starts = t 2 and t 4 are contingent Ø can t control how long the actions take Ø random variables that are known to satisfy the duration constraints t 2 [t 1 +30, t 1 +50] t 4 [t 3 +5, t 3 +10] t1 [15, 50] bring&move [30, 50] [25,55] t3 t2 [0, 15] [-5, 5] uncover [5, 10] t4 16
17 Controllability = Can t guarantee that all of the constraints will be satisfied = Start bring&move at time t 1 = 0 = Suppose the durations are bring&move 30, uncover 10 Ø t 2 = = 30 Ø t 4 = t Ø t 4 t 2 = t 3 20 = Constraint 5 t 4 t 2 5 à 5 t = Need to start uncover at t 3 25 Ø If t 3 > 25 then t 4 t 2 > 5 t1 [15, 50] bring&move [30, 50] [25,55] t3 = But if we start uncover at t 3 25, neither action has finished yet Ø We don t yet know how long they ll take = Might instead get this: bring&move 50, uncover 5 Ø t 2 = = 50 Ø t 4 = t = 30 Ø t 4 t = 20 t2 [0, 15] [-5, 5] uncover [5, 10] t4 17
18 STNUs = STNU (Simple Temporal Network with Uncertainty): Ø A 4-tuple (V,Ṽ,E,Ẽ ) V ={controllable time points} = {starting times of actions} Ṽ ={contingent time points} = {ending times of actions} E ={controllable constraints}, Ẽ ={contingent constraints} = Controllable and contingent constraints: Ø Synchronization between two starting times: controllable Ø Duration of an action: contingent Ø Synchronization between ending points of two actions: contingent Ø Synchronization between end of one action, start of another: Controllable if the new action starts after the old one ends Contingent if the new action starts before the old one ends = Want a way for the actor to choose time points in V (starting times) that guarantee that the constraints are satisfied 18
19 Three kinds of controllability = (V,Ṽ,E,Ẽ ) is strongly controllable if the actor can choose values for V such that success will occur for all values of Ṽ that satisfy Ẽ Ø Actor can choose the values for V offline Ø The right choice will work regardless of Ṽ = (V,Ṽ,E,Ẽ ) is weakly controllable if the actor can choose values for V such that success will occur for at least one combination of values for Ṽ Ø Actor can choose the values for V only if the actor knows in advance what the values of Ṽ will be = Dynamic controllability: Ø Game-theoretic model: actor vs. environment Two player, zero sum, extensive form, imperfect information Ø A player s strategy: a function σ telling what to do in every situation Choices may differ depending on what has happened so far Ø (V,Ṽ,E,Ẽ ) is dynamically controllable if strategy for actor that will guarantee success regardless of the environment s strategy 19
20 For t = 0, 1, 2, Dynamic Execution 1. Actor chooses an unassigned set of variables V t V that all can be assigned the value t without violating any constraints in E actions the actor chooses to start at time t 2. Simultaneously, environment chooses an unassigned set of variables Ṽ t Ṽ that all can be assigned the value t without violating any constraints in Ẽ actions that finish at time t 3. Each chosen time point v is assigned v t 4. Failure if any of the constraints in E Ẽ are violated There might be violations that neither V t nor Ṽ t caused individually 5. Success if all variables in V Ṽ have values and no constraints are violated = Dynamic execution strategies σ A for actor, σ E for environment Ø σ A (h t 1 ) = {what events in V to assign = t, given h t 1 } Ø σ E (h t 1 ) = {what events in Ṽ to trigger at time t, given h t 1 } h t = h t 1. (σ A (h t 1 ) σ E (h t 1 )) r ij = [l,u] is violated if t i and t j have values and t j t i [l,u] Ø (V,Ṽ,E,Ẽ ) is dynamically controllable if σ A that will guarantee success σ E 20
21 Example = Instead of a single bring&move task, two separate bring and move tasks = Actor s dynamic execution strategy Ø trigger t 1 at whatever time you want Ø wait and observe t Ø trigger t at any time from t to t + 5 Ø trigger t 3 = t + 10 t 1 [15, 25] t [0, 5] t [15, 20] bring move Ø for every t 2 [t + 15, t + 20] and every t 4 [t 3 + 5, t ] t 4 [t + 15, t + 20] so t 4 t 3 [ 5, 5] Ø So all the constraints are satisfied t 3 t 2 uncover [5, 10] [-5, 5] t4 21
22 Dynamic Controllability Checking = For a chronicle ϕ = (A,ST,T,C) Ø Temporal constraints in C correspond to an STNU Ø Put code into TemPlan to keep the STNU dynamically controllable = If we detect cases where it isn t dynamically controllable, then backtrack = If PC(V Ṽ,E Ẽ ) reduces a contingent constraint then (V,Ṽ,E,Ẽ ) isn t dynamically controllable can prune this branch = If it doesn t reduce any contingent contraints, we don t know whether (V,Ṽ,E,Ẽ ) is dynamically controllable = Two options Ø Either continue down this branch and backtrack later if necessary, or Ø Extend PC to detect more cases where (V,Ṽ,E,Ẽ ) isn t dynamically controllable additional constraint propagation rules PC(V,E): for 1 k n do for 1 i < j n, i k, j k do r ij r ij [r ik r kj ] if r ij = then return inconsistent 22
23 Additional Constraint Propagation Rules = Case 1: u 0 Ø t must come before t e = Add a composition constraint [a,b ] = Find [a,b ] such that [a,b ] [u,v] = [a,b] Ø [a +u, b +v] = [a,b] Ø a = a u, b = b v t s [a, b] t e [u, v] t contingent controllable 23
24 Additional Constraint Propagation Rules = Case 2: u < 0 and v 0 Ø t may be either before or after t e = Add a wait constraint Ø Wait until either t e occurs or current time is t s + b v, whichever comes first t s [a, b] t e [u, v] t contingent controllable 24
25 Extended Version of PC = We want a fast algorithm that TemPlan can run at each node, to decide whether to backtrack = There s an extended version of PC that runs in polynomial time, but it has high overhead = Possible compromise: use ordinary PC most of the time Ø Run extended version occasionally, or at end of search before returning plan 25
26 Outline Introduction Representation Temporal planning Consistency and controllability = 4.5 Acting with temporal models Ø Acting with atemporal refinement Ø Dispatching Ø Observation actions 26
27 Atemporal Refinement of Primitive Actions = Templan s action templates may correspond to compound tasks Ø In RAE, refine into commands with refinement methods Ø Action template (descriptive model) Ø Refinement method (operational model) 27
28 Atemporal Refinement of Primitive Actions = Templan s action templates may correspond to compound tasks Ø In RAE, refine into commands with refinement methods Ø Action template (descriptive model) unstack(k,c,p) assertions: constraints: Ø Refinement method (operational model) 28
29 Discussion = Pros Ø Simple online refinement with RAE Ø Avoids breaking down uncertainty of contingent duration Ø Can be augmented with temporal monitoring functions in RAE Ø E.g., watchdogs, methods with duration preferences = Cons Ø Does not handle temporal requirements at the command level, e.g., synchronize two robots that must act concurrently = Can augment RAE to include temporal reasoning Ø Call it erae Ø One essential component: a dispatching function 29
30 Acting With Temporal Models = Dispatching procedure: a dynamic execution strategy Ø Controls when to start each action Ø Given a dynamically controllable plan with executable primitives, triggers corresponding commands from online observations = Example Ø robot r2 needs to leave dock d2 before robot r1 can enter d2 Ø crane k needs to uncover c then put c onto r1 w2 k r2 q cʹ c p d2 t 1 t 2 t 3 leave(r2,d2) t 5 w1 r1 d1 leave(r1,d1) navigate(r1) enter(r1,d2) t 4 unstack(k,cʹ,p) t 6 unstack(k,c) putdown(k,c,r1) leave(r1,d2) t 7 t 8 t 9 stack(k,cʹ,q) 30
31 Dispatching = Let (V,Ṽ,E,Ẽ ) be a controllable STNU that s grounded = Different from a grounded expression in logic Ø At least one time point t is instantiated = This bounds each time point t within an interval [l t,u t ] Controllable time point t in the future: = t is alive if current time now [l t, u t ] = t is enabled if Ø it s alive Dispatch(V,Ṽ,E,Ẽ ) = initialize the network Ø for every precedence constraint t < t, t has occurred = while there are time points in V that haven t been triggered, do Ø update now Ø update the time points in Ṽ that were triggered since the last iteration Ø update enabled Ø trigger every t enabled such that now = u t Ø arbitrarily choose other time points in enabled, and trigger them Ø propagate values of triggered timepoints (change [l t,u t ] for each future timepoint t) Ø for every wait constraint t e, α, t e has occurred or α has expired 31
32 Example = trigger t 1, observe leave finish = enable and trigger t 2, this enables t 3, t 4 = trigger t 3 soon enough to allow enter(r1,d2) at time t 5 = trigger t 4 soon enough to allow stack(k,cʹ) at time t 6 = rest of plan is linear: choose each t i after the previous action ends t 3 leave(r2,d2) Dispatch(V,Ṽ,E,Ẽ ) = initialize the network = while there are time points in V that haven t been triggered, do Ø update now Ø update the time points in Ṽ that were triggered since the last iteration Ø update enabled Ø trigger every t enabled such that now = u t Ø arbitrarily choose other time points in enabled, and trigger them Ø propagate values of triggered timepoints (change [l t,u t ] for each future timepoint t) t 1 t 2 t 5 leave(r1,d1) t 4 navigate(r1) unstack(k,cʹ,p) enter(r1,d2) t 7 t 8 t 9 t 6 unstack(k,c) putdown(k,c,r1) leave(r1,d2) stack(k,cʹ,q) What about a more detailed example? 32
33 t 1 Example from slide 21 Dispatch(V,Ṽ,E,Ẽ ) [15, 25] t [0, 5] bring = trigger t 1 at time 0 t [15, 20] move = wait and observe t; this enables t t 3 t 2 uncover [5, 10] = trigger t at any time from t to t+5 = trigger t 3 at time t + 10 t 2 [t + 15, t + 20] t 4 [t 3 + 5, t ] = [t + 15, t + 20] = so t 4 t 3 [ 5, 5] [-5, 5] t4 = initialize the network = while there are time points in V that haven t been triggered, do Ø update now Ø update the time points in Ṽ that were triggered since the last iteration Ø update enabled Ø trigger every t enabled such that now = u t Ø arbitrarily choose other time points in enabled, and trigger them Ø propagate values of triggered timepoints (change [l t,u t ] for each future timepoint t) 33
34 t 1 Example from slide 21 [15, 25] t [0, 5] t [15, 20] bring move = trigger t 1 at time 0 = wait and observe t; this enables t = trigger t at any time from t to t+5 = trigger t 3 at time t + 10 t 2 [t + 15, t + 20] t 4 [t 3 + 5, t ] = [t + 15, t + 20] = so t 4 t 3 [ 5, 5] t 3 t 2 uncover [5, 10] [-5, 5] t4 Dispatch(V,Ṽ,E,Ẽ ) = initialize the network = while there are time points in V that haven t been triggered, do Ø update now Ø update the time points in Ṽ that were triggered since the last iteration Ø update enabled Ø trigger every t enabled such that now = u t Ø arbitrarily choose other time points in enabled, and trigger them Ø propagate values of triggered timepoints (change [l t,u t ] for each future timepoint t) To use the extended PC algorithm here, I think we would need additional rule(s) Current ones seem inapplicable 34
35 Deadline Failures = Suppose something makes it impossible to start an action on time = Do one of the following: Ø stop the delayed action, and look for new plan Ø let the delayed action finish; try to repair the plan by resolving violated constraints at the STNU propagation level e.g., accommodate a delay in navigate by delaying the whole plan Ø let the delayed action finish; try to repair the plan some other way t 3 leave(r2,d2) t 1 t 2 t 5 leave(r1,d1) t 4 navigate(r1) unstack(k,cʹ,p) enter(r1,d2) t 7 t 8 t 9 t 6 unstack(k,c) putdown(k,c,r1) leave(r1,d2) stack(k,cʹ,q) 35
36 Partial Observability = Tacit assumption: all occurrences of contingent events are observable Ø Observation needed for dynamic controllability Ø In general not all events are observable = POSTNU (Partially Observable STNU) Controllable Timepoints Contingent = Dynamically controllable? Invisible Observable 36
37 Observation Actions t0 [19:00, 19:30] t1 t [1, 2] working tʹ [20, 25] driving t2 [-5, 10] t3 [25, 30] cooking t4 Controllable Contingent Invisible observable
38 Dynamic Controllability = A POSTNU is dynamically controllable if Ø there exists an execution strategy that chooses future controllable points to meet all the constraints, given the observation of past visible points = Observable visible = Observable means it will be known when observed = It can be temporarily hidden Timepoints Controllable Contingent Invisible Observable Visible Hidden 38
39 Outline Introduction Representation Temporal planning Consistency and controllability Acting with executable primitives = Summary 39
40 Summary = Managing constraints in TemPlan: like CSPs Ø Temporal constraints: STNs, PC algorithm (path consistency) = Acting Ø Dynamic controllability Ø STNUs Ø RAE and erae Ø Dispatching 40
Chapter 14 Temporal Planning
Lecture slides for Automated Planning: Theory and Practice Chapter 14 Temporal Planning Dana S. Nau CMSC 722, AI Planning University of Maryland, Spring 2008 1 Temporal Planning Motivation: want to do
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 informationCMSC 722, AI Planning. Planning and Scheduling
CMSC 722, AI Planning Planning and Scheduling Dana S. Nau University of Maryland 1:26 PM April 24, 2012 1 Scheduling Given: actions to perform set of resources to use time constraints» e.g., the ones computed
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 informationBayes Nets III: Inference
1 Hal Daumé III (me@hal3.name) Bayes Nets III: Inference Hal Daumé III Computer Science University of Maryland me@hal3.name CS 421: Introduction to Artificial Intelligence 10 Apr 2012 Many slides courtesy
More informationChapter 6 Constraint Satisfaction Problems
Chapter 6 Constraint Satisfaction Problems CS5811 - Artificial Intelligence Nilufer Onder Department of Computer Science Michigan Technological University Outline CSP problem definition Backtracking search
More informationName: UW CSE 473 Final Exam, Fall 2014
P1 P6 Instructions Please answer clearly and succinctly. If an explanation is requested, think carefully before writing. Points may be removed for rambling answers. If a question is unclear or ambiguous,
More informationAnnouncements. CS 188: Artificial Intelligence Fall Causality? Example: Traffic. Topology Limits Distributions. Example: Reverse Traffic
CS 188: Artificial Intelligence Fall 2008 Lecture 16: Bayes Nets III 10/23/2008 Announcements Midterms graded, up on glookup, back Tuesday W4 also graded, back in sections / box Past homeworks in return
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 informationQuadratic Equations Part I
Quadratic Equations Part I Before proceeding with this section we should note that the topic of solving quadratic equations will be covered in two sections. This is done for the benefit of those viewing
More informationChapter 5 Plan-Space Planning
Lecture slides for Automated Planning: Theory and Practice Chapter 5 Plan-Space Planning Dana S. Nau University of Maryland 5:10 PM February 6, 2012 1 Problem with state-space search Motivation In some
More informationConsistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms. CS 249 Project Fall 2005 Wing Wong
Consistent Global States of Distributed Systems: Fundamental Concepts and Mechanisms CS 249 Project Fall 2005 Wing Wong Outline Introduction Asynchronous distributed systems, distributed computations,
More informationThe Gauss-Jordan Elimination Algorithm
The Gauss-Jordan Elimination Algorithm Solving Systems of Real Linear Equations A. Havens Department of Mathematics University of Massachusetts, Amherst January 24, 2018 Outline 1 Definitions Echelon Forms
More informationAppendix A. Formal Proofs
Distributed Reasoning for Multiagent Simple Temporal Problems Appendix A Formal Proofs Throughout this paper, we provided proof sketches to convey the gist of the proof when presenting the full proof would
More informationCS 301. Lecture 18 Decidable languages. Stephen Checkoway. April 2, 2018
CS 301 Lecture 18 Decidable languages Stephen Checkoway April 2, 2018 1 / 26 Decidable language Recall, a language A is decidable if there is some TM M that 1 recognizes A (i.e., L(M) = A), and 2 halts
More informationDRAFT. Efficient Execution of Dynamically Controllable Simple Temporal Networks with Uncertainty. Luke Hunsberger
Efficient Execution of Dynamically Controllable Simple Temporal Networks with Uncertainty Luke Hunsberger PRE-PUBLICATION Abstract A Simple Temporal Network with Uncertainty (STNU) is a data structure
More informationThe core of solving constraint problems using Constraint Programming (CP), with emphasis on:
What is it about? l Theory The core of solving constraint problems using Constraint Programming (CP), with emphasis on: l Modeling l Solving: Local consistency and propagation; Backtracking search + heuristics.
More informationChapter 16 Planning Based on Markov Decision Processes
Lecture slides for Automated Planning: Theory and Practice Chapter 16 Planning Based on Markov Decision Processes Dana S. Nau University of Maryland 12:48 PM February 29, 2012 1 Motivation c a b Until
More informationSearch and Lookahead. Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 4/6, 2012
Search and Lookahead Bernhard Nebel, Julien Hué, and Stefan Wölfl Albert-Ludwigs-Universität Freiburg June 4/6, 2012 Search and Lookahead Enforcing consistency is one way of solving constraint networks:
More informationMulti-Agent Systems. Bernhard Nebel, Felix Lindner, and Thorsten Engesser. Summer Term Albert-Ludwigs-Universität Freiburg
Multi-Agent Systems Albert-Ludwigs-Universität Freiburg Bernhard Nebel, Felix Lindner, and Thorsten Engesser Summer Term 2017 Course outline 1 Introduction 2 Agent-Based Simulation 3 Agent Architectures
More informationPolynomial Space. The classes PS and NPS Relationship to Other Classes Equivalence PS = NPS A PS-Complete Problem
Polynomial Space The classes PS and NPS Relationship to Other Classes Equivalence PS = NPS A PS-Complete Problem 1 Polynomial-Space-Bounded TM s A TM M is said to be polyspacebounded if there is a polynomial
More informationBefore we show how languages can be proven not regular, first, how would we show a language is regular?
CS35 Proving Languages not to be Regular Before we show how languages can be proven not regular, first, how would we show a language is regular? Although regular languages and automata are quite powerful
More informationTemporal Constraint Networks
Ch. 5b p.1/49 Temporal Constraint Networks Addition to Chapter 5 Ch. 5b p.2/49 Outline Temporal reasoning Qualitative networks The interval algebra The point algebra Quantitative temporal networks Reference:
More informationNondeterministic finite automata
Lecture 3 Nondeterministic finite automata This lecture is focused on the nondeterministic finite automata (NFA) model and its relationship to the DFA model. Nondeterminism is an important concept in the
More informationAutomated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving
Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson SAT Solving 1 / 36 Review: Propositional
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 informationCS 188: Artificial Intelligence. Bayes Nets
CS 188: Artificial Intelligence Probabilistic Inference: Enumeration, Variable Elimination, Sampling Pieter Abbeel UC Berkeley Many slides over this course adapted from Dan Klein, Stuart Russell, Andrew
More informationChapter 17 Planning Based on Model Checking
Lecture slides for Automated Planning: Theory and Practice Chapter 17 Planning Based on Model Checking Dana S. Nau University of Maryland 1:19 PM February 9, 01 1 Motivation c a b Actions with multiple
More informationCS 188: Artificial Intelligence Spring Announcements
CS 188: Artificial Intelligence Spring 2011 Lecture 16: Bayes Nets IV Inference 3/28/2011 Pieter Abbeel UC Berkeley Many slides over this course adapted from Dan Klein, Stuart Russell, Andrew Moore Announcements
More informationTemporal Constraint Networks
Ch. 6b p.1/49 Temporal Constraint Networks Addition to Chapter 6 Ch. 6b p.2/49 Outline Temporal reasoning Qualitative networks The interval algebra The point algebra Quantitative temporal networks Reference:
More informationAnnouncements. Inference. Mid-term. Inference by Enumeration. Reminder: Alarm Network. Introduction to Artificial Intelligence. V22.
Introduction to Artificial Intelligence V22.0472-001 Fall 2009 Lecture 15: Bayes Nets 3 Midterms graded Assignment 2 graded Announcements Rob Fergus Dept of Computer Science, Courant Institute, NYU Slides
More informationMath Models of OR: Branch-and-Bound
Math Models of OR: Branch-and-Bound John E. Mitchell Department of Mathematical Sciences RPI, Troy, NY 12180 USA November 2018 Mitchell Branch-and-Bound 1 / 15 Branch-and-Bound Outline 1 Branch-and-Bound
More informationConstraint Satisfaction Problems
Constraint Satisfaction Problems Chapter 5 AIMA2e Slides, Stuart Russell and Peter Norvig, Completed by Kazim Fouladi, Fall 2008 Chapter 5 1 Outline CSP examples Backtracking search for CSPs Problem structure
More informationLatches. October 13, 2003 Latches 1
Latches The second part of CS231 focuses on sequential circuits, where we add memory to the hardware that we ve already seen. Our schedule will be very similar to before: We first show how primitive memory
More informationSection 0.6: Factoring from Precalculus Prerequisites a.k.a. Chapter 0 by Carl Stitz, PhD, and Jeff Zeager, PhD, is available under a Creative
Section 0.6: Factoring from Precalculus Prerequisites a.k.a. Chapter 0 by Carl Stitz, PhD, and Jeff Zeager, PhD, is available under a Creative Commons Attribution-NonCommercial-ShareAlike.0 license. 201,
More informationComputability Theory
CS:4330 Theory of Computation Spring 2018 Computability Theory P versus NP and NP-Completeness Haniel Barbosa Readings for this lecture Chapter 7 of [Sipser 1996], 3rd edition. Section 7.4. The P versus
More informationReinforcement Learning II
Reinforcement Learning II Andrea Bonarini Artificial Intelligence and Robotics Lab Department of Electronics and Information Politecnico di Milano E-mail: bonarini@elet.polimi.it URL:http://www.dei.polimi.it/people/bonarini
More informationLecture 9: Search 8. Victor R. Lesser. CMPSCI 683 Fall 2010
Lecture 9: Search 8 Victor R. Lesser CMPSCI 683 Fall 2010 ANNOUNCEMENTS REMEMBER LECTURE ON TUESDAY! EXAM ON OCTOBER 18 OPEN BOOK ALL MATERIAL COVERED IN LECTURES REQUIRED READINGS WILL MOST PROBABLY NOT
More information#29: Logarithm review May 16, 2009
#29: Logarithm review May 16, 2009 This week we re going to spend some time reviewing. I say re- view since you ve probably seen them before in theory, but if my experience is any guide, it s quite likely
More informationWeek 2: Defining Computation
Computational Complexity Theory Summer HSSP 2018 Week 2: Defining Computation Dylan Hendrickson MIT Educational Studies Program 2.1 Turing Machines Turing machines provide a simple, clearly defined way
More informationDeep Algebra Projects: Algebra 1 / Algebra 2 Go with the Flow
Deep Algebra Projects: Algebra 1 / Algebra 2 Go with the Flow Topics Solving systems of linear equations (numerically and algebraically) Dependent and independent systems of equations; free variables Mathematical
More informationTemporal Constraint Networks
Ch. 5b p.1/24 Temporal Constraint Networks Addition to Chapter 5 Ch. 5b p.2/24 Outline Qualitative networks The interval algebra The point algebra Quantitative temporal networks Reference: Chapter 12 of
More informationSolving Fuzzy PERT Using Gradual Real Numbers
Solving Fuzzy PERT Using Gradual Real Numbers Jérôme FORTIN a, Didier DUBOIS a, a IRIT/UPS 8 route de Narbonne, 3062, Toulouse, cedex 4, France, e-mail: {fortin, dubois}@irit.fr Abstract. From a set of
More informationLanguages, regular languages, finite automata
Notes on Computer Theory Last updated: January, 2018 Languages, regular languages, finite automata Content largely taken from Richards [1] and Sipser [2] 1 Languages An alphabet is a finite set of characters,
More informationClojure Concurrency Constructs, Part Two. CSCI 5828: Foundations of Software Engineering Lecture 13 10/07/2014
Clojure Concurrency Constructs, Part Two CSCI 5828: Foundations of Software Engineering Lecture 13 10/07/2014 1 Goals Cover the material presented in Chapter 4, of our concurrency textbook In particular,
More informationCS/COE
CS/COE 1501 www.cs.pitt.edu/~nlf4/cs1501/ P vs NP But first, something completely different... Some computational problems are unsolvable No algorithm can be written that will always produce the correct
More informationThe key is that there are two disjoint populations, and everyone in the market is on either one side or the other
Econ 805 Advanced Micro Theory I Dan Quint Fall 2009 Lecture 17 So... two-sided matching markets. First off, sources. I ve updated the syllabus for the next few lectures. As always, most of the papers
More informationMath101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:
Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2: 03 17 08 3 All about lines 3.1 The Rectangular Coordinate System Know how to plot points in the rectangular coordinate system. Know the
More informationLogic. Propositional Logic: Syntax. Wffs
Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about
More informationShannon-Fano-Elias coding
Shannon-Fano-Elias coding Suppose that we have a memoryless source X t taking values in the alphabet {1, 2,..., L}. Suppose that the probabilities for all symbols are strictly positive: p(i) > 0, i. The
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 informationAnswers in blue. If you have questions or spot an error, let me know. 1. Find all matrices that commute with A =. 4 3
Answers in blue. If you have questions or spot an error, let me know. 3 4. Find all matrices that commute with A =. 4 3 a b If we set B = and set AB = BA, we see that 3a + 4b = 3a 4c, 4a + 3b = 3b 4d,
More informationLecture 2: Connecting the Three Models
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 2: Connecting the Three Models David Mix Barrington and Alexis Maciel July 18, 2000
More informationSection Handout 5 Solutions
CS 188 Spring 2019 Section Handout 5 Solutions Approximate Q-Learning With feature vectors, we can treat values of states and q-states as linear value functions: V (s) = w 1 f 1 (s) + w 2 f 2 (s) +...
More informationSome Remarks on Alternating Temporal Epistemic Logic
Some Remarks on Alternating Temporal Epistemic Logic Corrected version: July 2003 Wojciech Jamroga Parlevink Group, University of Twente, Netherlands Institute of Mathematics, University of Gdansk, Poland
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional
More informationCoalitional Structure of the Muller-Satterthwaite Theorem
Coalitional Structure of the Muller-Satterthwaite Theorem Pingzhong Tang and Tuomas Sandholm Computer Science Department Carnegie Mellon University {kenshin,sandholm}@cscmuedu Abstract The Muller-Satterthwaite
More informationLine Integrals and Path Independence
Line Integrals and Path Independence We get to talk about integrals that are the areas under a line in three (or more) dimensional space. These are called, strangely enough, line integrals. Figure 11.1
More informationTask Assignment. Consider this very small instance: t1 t2 t3 t4 t5 p p p p p
Task Assignment Task Assignment The Task Assignment problem starts with n persons and n tasks, and a known cost for each person/task combination. The goal is to assign each person to an unique task so
More informationAnnouncements. CS 188: Artificial Intelligence Spring Bayes Net Semantics. Probabilities in BNs. All Conditional Independences
CS 188: Artificial Intelligence Spring 2011 Announcements Assignments W4 out today --- this is your last written!! Any assignments you have not picked up yet In bin in 283 Soda [same room as for submission
More informationChapter 4. Solving Systems of Equations. Chapter 4
Solving Systems of Equations 3 Scenarios for Solutions There are three general situations we may find ourselves in when attempting to solve systems of equations: 1 The system could have one unique solution.
More informationNotes: Pythagorean Triples
Math 5330 Spring 2018 Notes: Pythagorean Triples Many people know that 3 2 + 4 2 = 5 2. Less commonly known are 5 2 + 12 2 = 13 2 and 7 2 + 24 2 = 25 2. Such a set of integers is called a Pythagorean Triple.
More informationTask Decomposition on Abstract States, for Planning under Nondeterminism
Task Decomposition on Abstract States, for Planning under Nondeterminism Ugur Kuter a, Dana Nau a, Marco Pistore b, Paolo Traverso b a Department of Computer Science and Institute of Systems Research and
More informationReinforcement Learning
Reinforcement Learning Ron Parr CompSci 7 Department of Computer Science Duke University With thanks to Kris Hauser for some content RL Highlights Everybody likes to learn from experience Use ML techniques
More information6.080 / Great Ideas in Theoretical Computer Science Spring 2008
MIT OpenCourseWare http://ocw.mit.edu 6.080 / 6.089 Great Ideas in Theoretical Computer Science Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
More informationPreptests 59 Answers and Explanations (By Ivy Global) Section 1 Analytical Reasoning
Preptests 59 Answers and Explanations (By ) Section 1 Analytical Reasoning Questions 1 5 Since L occupies its own floor, the remaining two must have H in the upper and I in the lower. P and T also need
More informationAlgebra Exam. Solutions and Grading Guide
Algebra Exam Solutions and Grading Guide You should use this grading guide to carefully grade your own exam, trying to be as objective as possible about what score the TAs would give your responses. Full
More informationAlgebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.
This document was written and copyrighted by Paul Dawkins. Use of this document and its online version is governed by the Terms and Conditions of Use located at. The online version of this document is
More informationDistributed Systems. 06. Logical clocks. Paul Krzyzanowski. Rutgers University. Fall 2017
Distributed Systems 06. Logical clocks Paul Krzyzanowski Rutgers University Fall 2017 2014-2017 Paul Krzyzanowski 1 Logical clocks Assign sequence numbers to messages All cooperating processes can agree
More informationAt the start of the term, we saw the following formula for computing the sum of the first n integers:
Chapter 11 Induction This chapter covers mathematical induction. 11.1 Introduction to induction At the start of the term, we saw the following formula for computing the sum of the first n integers: Claim
More informationWORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}
WORKSHEET ON NUMBERS, MATH 215 FALL 18(WHYTE) We start our study of numbers with the integers: Z = {..., 2, 1, 0, 1, 2, 3,... } and their subset of natural numbers: N = {1, 2, 3,...} For now we will not
More informationThe State Explosion Problem
The State Explosion Problem Martin Kot August 16, 2003 1 Introduction One from main approaches to checking correctness of a concurrent system are state space methods. They are suitable for automatic analysis
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 informationLecture 17: Floyd-Hoare Logic for Partial Correctness
Lecture 17: Floyd-Hoare Logic for Partial Correctness Aims: To look at the following inference rules Page 1 of 9 sequence; assignment and consequence. 17.1. The Deduction System for Partial Correctness
More informationLab 4. Current, Voltage, and the Circuit Construction Kit
Physics 2020, Spring 2009 Lab 4 Page 1 of 8 Your name: Lab section: M Tu Wed Th F TA name: 8 10 12 2 4 Lab 4. Current, Voltage, and the Circuit Construction Kit The Circuit Construction Kit (CCK) is a
More informationAndrew/CS ID: Midterm Solutions, Fall 2006
Name: Andrew/CS ID: 15-780 Midterm Solutions, Fall 2006 November 15, 2006 Place your name and your andrew/cs email address on the front page. The exam is open-book, open-notes, no electronics other than
More informationChapter 17 Planning Based on Model Checking
Lecture slides for Automated Planning: Theory and Practice Chapter 17 Planning Based on Model Checking Dana S. Nau CMSC 7, AI Planning University of Maryland, Spring 008 1 Motivation c Actions with multiple
More informationSYST 101: Intro to Systems. Lecture 28
SYST 101: Intro to Systems Lecture 28 April 29, 2004 C. Wells, SEOR Dept. Syst 101 - Lec. 28 Spring 2004 Slide 1 Announcements FINAL EXAM May 11 1:30 4:15 Open book, open notes Syst 101 - Lec. 28 Spring
More informationSequences and infinite series
Sequences and infinite series D. DeTurck University of Pennsylvania March 29, 208 D. DeTurck Math 04 002 208A: Sequence and series / 54 Sequences The lists of numbers you generate using a numerical method
More informationEfficient Workplan Management in Maintenance Tasks
Efficient Workplan Management in Maintenance Tasks Michel Wilson a Nico Roos b Bob Huisman c Cees Witteveen a a Delft University of Technology, Dept of Software Technology b Maastricht University, Dept
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 informationA First Course on Kinetics and Reaction Engineering Supplemental Unit S4. Numerically Fitting Models to Data
Supplemental Unit S4. Numerically Fitting Models to Data Defining the Problem Many software routines for fitting a model to experimental data can only be used when the model is of a pre-defined mathematical
More informationMI 4 Mathematical Induction Name. Mathematical Induction
Mathematical Induction It turns out that the most efficient solution to the Towers of Hanoi problem with n disks takes n 1 moves. If this isn t the formula you determined, make sure to check your data
More informationMore on Regular Languages and Non-Regular Languages
More on Regular Languages and Non-Regular Languages CSCE A35 Decision Properties of Regular Languages Given a (representation, e.g., RE, FA, of a) regular language L, what can we tell about L? Since there
More information15-780: LinearProgramming
15-780: LinearProgramming J. Zico Kolter February 1-3, 2016 1 Outline Introduction Some linear algebra review Linear programming Simplex algorithm Duality and dual simplex 2 Outline Introduction Some linear
More informationInduction on Failing Derivations
Induction on Failing Derivations Technical Report PL-Sep13 September 2013, with addenda from Spring 2016 ay Ligatti Department of Computer Science and Engineering University of South Florida Abstract A
More informationCISC 4090: Theory of Computation Chapter 1 Regular Languages. Section 1.1: Finite Automata. What is a computer? Finite automata
CISC 4090: Theory of Computation Chapter Regular Languages Xiaolan Zhang, adapted from slides by Prof. Werschulz Section.: Finite Automata Fordham University Department of Computer and Information Sciences
More informationControllability of Soft Temporal Constraint Problems
Controllability of Soft Temporal Constraint Problems Francesca Rossi 1, Kristen Brent Venable 1, and Neil Yorke-Smith 2 1 University of Padova, Italy. {frossi,kvenable}@math.unipd.it 2 IC Parc, Imperial
More informationWe set up the basic model of two-sided, one-to-one matching
Econ 805 Advanced Micro Theory I Dan Quint Fall 2009 Lecture 18 To recap Tuesday: We set up the basic model of two-sided, one-to-one matching Two finite populations, call them Men and Women, who want to
More informationLecture 2: Divide and conquer and Dynamic programming
Chapter 2 Lecture 2: Divide and conquer and Dynamic programming 2.1 Divide and Conquer Idea: - divide the problem into subproblems in linear time - solve subproblems recursively - combine the results in
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 informationCISC681/481 AI Midterm Exam
CISC681/481 AI Midterm Exam You have from 12:30 to 1:45pm to complete the following four questions. Use the back of the page if you need more space. Good luck! 1. Definitions (3 points each) Define the
More informationFIT100 Spring 01. Project 2. Astrological Toys
FIT100 Spring 01 Project 2 Astrological Toys In this project you will write a series of Windows applications that look up and display astrological signs and dates. The applications that will make up the
More informationCS 453 Operating Systems. Lecture 7 : Deadlock
CS 453 Operating Systems Lecture 7 : Deadlock 1 What is Deadlock? Every New Yorker knows what a gridlock alert is - it s one of those days when there is so much traffic that nobody can move. Everything
More informationIn this episode of The Verification Corner, Rustan Leino talks about Loop Invariants. He gives a brief summary of the theoretical foundations and
In this episode of The Verification Corner, Rustan Leino talks about Loop Invariants. He gives a brief summary of the theoretical foundations and shows how a program can sometimes be systematically constructed
More informationSoftware Testing Lecture 5. Justin Pearson
Software Testing Lecture 5 Justin Pearson 2017 1 / 34 Covering Logical Expressions Logic expression show up in many situations Covering logical expressions have a long history, many are the covering criteria
More informationPlan diagnosis with agents
Plan diagnosis with agents Nico Roos a Cees Witteveen b c a IKAT, Universiteit Maastricht, P.O. Box 616, NL-6200 MD Maastricht, e-mail: roos@cs.unimaas.nl b Faculty EEMCS Delft University of Technology,
More informationMathematics for Decision Making: An Introduction. Lecture 8
Mathematics for Decision Making: An Introduction Lecture 8 Matthias Köppe UC Davis, Mathematics January 29, 2009 8 1 Shortest Paths and Feasible Potentials Feasible Potentials Suppose for all v V, there
More informationCS115 Computer Simulation Project list
CS115 Computer Simulation Project list The final project for this class is worth 40% of your grade. Below are your choices. You only need to do one of them. Project MC: Monte Carlo vs. Deterministic Volume
More informationTEMPERATURE THEORY AND THE THERMOSTATIC STRATEGY
TEMPERATURE THEORY AND THE THERMOSTATIC STRATEGY KAREN YE Abstract. In this paper, we differentiate between cold games, which are easier to analyze and play, and hot games, much more difficult in terms
More information