1 Chapter 3 Complexity of Classical Planning. 2 Review: Classical Representation Function-free first-order language L Statement of a classical planning.

Slides:



Advertisements
Similar presentations
Comparative Succinctness of KR Formalisms Paolo Liberatore.
Advertisements

Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 Complexity of domain-independent planning José Luis Ambite.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Great Theoretical Ideas in Computer Science for Some.
1 Classical STRIPS Planning Alan Fern * * Based in part on slides by Daniel Weld.
Complexity 12-1 Complexity Andrei Bulatov Non-Deterministic Space.
Complexity 11-1 Complexity Andrei Bulatov Space Complexity.
1 L is in NP means: There is a language L’ in P and a polynomial p so that L 1 · L 2 means: For some polynomial time computable map r : 8 x: x 2 L 1 iff.
CPSC 411, Fall 2008: Set 12 1 CPSC 411 Design and Analysis of Algorithms Set 12: Undecidability Prof. Jennifer Welch Fall 2008.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time in a reasonable sequential model of computation if and only if it.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 21 Instructor: Paul Beame.
1 Combinatorial Search Spring 2008 (Fourth Quarter)
Computability and Complexity 32-1 Computability and Complexity Andrei Bulatov Boolean Circuits.
The Theory of NP-Completeness
Analysis of Algorithms CS 477/677
Chapter 11: Limitations of Algorithmic Power
Monadic Predicate Logic is Decidable Boolos et al, Computability and Logic (textbook, 4 th Ed.)
Complexity Theory: The P vs NP question Lecture 28 (Dec 4, 2007)
Classical Planning Chapter 10.
1 L is in NP means: There is a language L’ in P and a polynomial p so that L 1 ≤ L 2 means: For some polynomial time computable map r : x: x L 1 iff r(x)
Computability and Modeling Computation What are some really impressive things that computers can do? –Land the space shuttle (and other aircraft) from.
Chapter 11 Limitations of Algorithm Power. Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples:
CMPS 3223 Theory of Computation Automata, Computability, & Complexity by Elaine Rich ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Slides provided.
General Purpose Case-Based Planning. General Purpose vs Domain Specific (Case-Based) Planning General purpose: symbolic descriptions of the problems and.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Complexity of Classical Planning Megan Smith Lehigh University CSE 497, Spring 2007.
Theory of Computing Lecture 15 MAS 714 Hartmut Klauck.
State-Space Search and the STRIPS Planner Searching for a Path through a Graph of Nodes Representing World States.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Major objective of this course is: Design and analysis of modern algorithms Different variants Accuracy Efficiency Comparing efficiencies Motivation thinking.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
NP-COMPLETENESS PRESENTED BY TUSHAR KUMAR J. RITESH BAGGA.
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
1 P P := the class of decision problems (languages) decided by a Turing machine so that for some polynomial p and all x, the machine terminates after at.
Umans Complexity Theory Lectures Lecture 1a: Problems and Languages.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
P Vs NP Turing Machine. Definitions - Turing Machine Turing Machine M has a tape of squares Each Square is capable of storing a symbol from set Γ (including.
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
Complexity & Computability. Limitations of computer science  Major reasons useful calculations cannot be done:  execution time of program is too long.
TM Design Macro Language D and SD MA/CSSE 474 Theory of Computation.
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
CS 3813: Introduction to Formal Languages and Automata Chapter 14 An Introduction to Computational Complexity These class notes are based on material from.
Alternative Representations Propositions and State-Variables.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
NP-Completeness  For convenience, the theory of NP - Completeness is designed for decision problems (i.e. whose solution is either yes or no).  Abstractly,
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
Minimal NFA Problems are hard Tao Jiang & B. Ravikumar N Andres Parra.
Lecture. Today Problem set 9 out (due next Thursday) Topics: –Complexity Theory –Optimization versus Decision Problems –P and NP –Efficient Verification.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
1 SAT SAT: Given a Boolean function in CNF representation, is there a way to assign truth values to the variables so that the function evaluates to true?
Great Theoretical Ideas in Computer Science.
Modeling Arithmetic, Computation, and Languages Mathematical Structures for Computer Science Chapter 8 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesTuring.
The Propositional Calculus
How Hard Can It Be?.
Alternating tree Automata and Parity games
Warning I estimate 3 weeks of intensive reading for you to understand your assigned topic These are not self contained and you will need to understand.
Chapter 2 Representations for Classical Planning
Presentation transcript:

1 Chapter 3 Complexity of Classical Planning

2 Review: Classical Representation Function-free first-order language L Statement of a classical planning problem: P = (s 0, g, O) s 0 : initial state - a set of ground atoms of L g: goal formula - a set of literals Operator: (name, preconditions, effects) Classical planning problem: P = ( ,s 0,S g )

3 Review: Set-Theoretic Representation Like classical representation, but restricted to propositional logic State: a set of propositions - these correspond to ground atoms  {on-c1-pallet, on-c1-r1, on-c1-c2, …, at-r1-l1, at-r1-l2, …} No operators, just actions take-crane1-loc1-c3-c1-p1 precond: belong-crane1-loc1, attached-p1-loc1, empty-crane1, top-c3-p1, on-c3-c1 delete: empty-crane1, in-c3-p1, top-c3-p1, on-c3-p1 add: holding-crane1-c3, top-c1-p1 Weaker representational power than classical representation  Problem statement can be exponentially larger

4 Review: State-Variable Representation A state variable is like a record structure in a computer program  Instead of on(c1,c2) we might write cpos(c1)=c2 Load and unload operators: Equivalent power to classical representation  Each representation requires a similar amount of space  Each can be translated into the other in low-order polynomial time Classical representation is more popular, mainly for historical reasons  In many cases, state-variable representation is more convenient

5 Motivation Recall that in classical planning, even simple problems can have huge search spaces  Example: »DWR with five locations, three piles, three robots, 100 containers » states »About times as many states as there are particles in universe How difficult is it to solve classical planning problems? The answer depends on which representation scheme we use  Classical, set-theoretic, state-variable location 1 location 2 s0s0

6 Outline Background on complexity analysis Restrictions (and a few generalizations) of classical planning Decidability and undecidability Tables of complexity results  Classical representation  Set-theoretic representation  State-variable representation

7 Complexity Analysis Complexity analyses are done on decision problems or language-recognition problems  A language is a set L of strings over some alphabet A  Recognition procedure for L »A procedure R(x) that returns “yes” iff the string x is in L »If x is not in L, then R(x) may return “no” or may fail to terminate Translate classical planning into a language-recognition problem Examine the language-recognition problem’s complexity

8 Planning as a Language-Recognition Problem Consider the following two languages: PLAN-EXISTENCE = {P : P is the statement of a planning problem that has a solution} PLAN-LENGTH = {(P,n) : P is the statement of a planning problem that has a solution of length ≤ n} Look at complexity of recognizing PLAN-EXISTENCE and PLAN-LENGTH under different conditions  Classical, set-theoretic, and state-variable representations  Various restrictions and extensions on the kinds of operators we allow

9 Complexity of Language-Recognition Problems Suppose R is a recognition procedure for a language L Complexity of R  T R (n) = worst-case runtime for R on strings in L of length n  S R (n) = worst-case space requirement for R on strings in L of length n Complexity of recognizing L  T L = best asymptotic time complexity of any recognition procedure for L  S L = best asymptotic space complexity of any recognition procedure for L

10 Complexity Classes Complexity classes:  NLOGSPACE(nondeterministic procedure, logarithmic space)  P(deterministic procedure, polynomial time)  NP(nondeterministic procedure, polynomial time)  PSPACE(deterministic procedure, polynomial space)  EXPTIME(deterministic procedure, exponential time)  NEXPTIME(nondeterministic procedure, exponential time)  EXPSPACE(deterministic procedure, exponential space) Let C be a complexity class and L be a language  Recognizing L is C-hard if for every language L' in C, L' can be reduced to L in a polynomial amount of time »NP-hard, PSPACE-hard, etc.  Recognizing L is C-complete if L is C-hard and L is also in C »NP-complete, PSPACE-complete, etc.

11 Do we give the operators as input to the planning algorithm, or fix them in advance? Do we allow infinite initial states?* Do we allow function symbols?* Do we allow negative effects? Do we allow negative preconditions? Do we allow more than one precondition? Do we allow operators to have conditional effects?*  i.e., effects that only occur when additional preconditions are true ________ * These take us outside of classical planning Possible Conditions

12 Decidability of Planning Next: analyze complexity for the decidable cases Halting problem Can cut off the search at every path of length n

13 Complexity of Planning no operator has >1 precondition PSPACE-complete or NP-complete for some sets of operators

14 Caveat: these are worst-case results  Individual planning domains can be much easier Example: both DWR and Blocks World fit here, but neither is that hard  For them, PLAN-EXISTENCE is in P and PLAN-LENGTH is NP -complete

15 Here, PLAN-LENGTH is easier than PLAN-EXISTENCE for the same reason as in the decidability table  Can cut off every search path at depth n

16 Equivalences Set-theoretic representation and ground classical representation are basically identical Classical and state-variable representations are equivalent, except that some of the restrictions aren’t possible in state-variable representations  Hence, fewer lines in the table Classical representation State-variable representation Set-theoretic or ground classical representation trivial P(x 1,…,x n ) becomes f P (x 1,…,x n )=1 write all of the ground instances f(x 1,…,x n )=y becomes P f (x 1,…,x n,y)

17 every operator with >1 precondition is the composition of other operators no operator has >1 precondition Like classical rep, but fewer lines in the table