• Home
  • Textbooks
  • Artificial Intelligence. A Modern Approach [Global Edition]
  • Classical Planning

Artificial Intelligence. A Modern Approach [Global Edition]

Stuart Russell, Peter Norvig

Chapter 10

Classical Planning - all with Video Answers

Educators


Chapter Questions

Problem 1

Consider a robot whose operation is described by the following PDDL operators:
$O p(\operatorname{ActION}: G o(x, y)$, PRECOND: $A t(\operatorname{Robot}, x)$, EFFECT: $\neg A t(\operatorname{Robot}, x) \wedge A t(\operatorname{Robot}, y))$
Op $($ ACTION:Pick $(o)$, PRECOND: At $($ Robot,$x) \wedge A t(o, x)$, EFFECT: $\neg$ At $(o, x) \wedge H o l d i n g(o$
$O p($ Action: Drop $(o)$, Precond:At (Robot, $x) \wedge$ Holding $(o)$, EFFECT: At $(o, x) \wedge \neg$ Holdi
a. The operators allow the robot to hold more than one object. Show how to modify them with an EmptyHand predicate for a robot that can hold only one object.
b. Assuming that these are the only actions in the world, write a successor-state axiom for EmptyHand.

Check back soon!

Problem 2

Describe the differences and similarities between problem solving and planning.

Check back soon!

Problem 3

Given the action schemas and initial state from Figure 10.1, what are all the applicable concrete instances of $F l y(p$, from, to $)$ in the state described by
$$
\operatorname{At}\left(P_1, J F K\right) \wedge A t\left(P_2, S F O\right) \wedge \text { Plane }\left(P_1\right) \wedge \operatorname{Plane}\left(P_2\right)
$$
$\wedge \operatorname{Airport}(J F K) \wedge \operatorname{Airport}(S F O) ?$

Check back soon!
View

Problem 4

The monkey-and-bananas problem is faced by a monkey in a laboratory with some bananas hanging out of reach from the ceiling. A box is available that will enable the monkey to reach the bananas if he climbs on it. Initially, the monkey is at $A$, the bananas at $B$, and the box at $C$. The monkey and box have height Low, but if the monkey climbs onto the box he will have height High, the same as the bananas. The actions available to the monkey include Go from one place to another, $P u s h$ an object from one place to another, ClimbUp onto or ClimbDown from an object, and Grasp or Ungrasp an object. The result of a Grasp is that the monkey holds the object if the monkey and object are in the same place at the same height.
a. Write down the initial state description.
b. Write the six action schemas.
c. Suppose the monkey wants to fool the scientists, who are off to tea, by grabbing the bananas, but leaving the box in its original place. Write this as a general goal (i.e., not assuming that the box is necessarily at C) in the language of situation calculus. Can this goal be solved by a classical planning system?
d. Your schema for pushing is probably incorrect, because if the object is too heavy, its position will remain the same when the Push schema is applied. Fix your action schema to account for heavy objects.

Victor Salazar
Victor Salazar
Numerade Educator

Problem 5

The original STRIPS planner was designed to control Shakey the robot. Figure 10.14 shows a version of Shakey's world consisting of four rooms lined up along a corridor, where each room has a door and a light switch. The actions in Shakey's world include moving from place to place, pushing movable objects (such as boxes), climbing onto and down from rigid objects (such as boxes), and turning light switches on and off. The robot itself could not climb on a box or toggle a switch, but the planner was capable of finding and printing out plans that were beyond the robot's abilities. Shakey's six actions are the following:
$\bullet$ $G o(x, y, r)$, which requires that Shakey be $A t x$ and that $x$ and $y$ are locations $I n$ the same room $r$. By convention a door between two rooms is in both of them.
$\bullet$Push a box $b$ from location $x$ to location $y$ within the same room: $P u s h(b, x, y, r)$. You will need the predicate $B o x$ and constants for the boxes.
$\bullet$ Climb onto a box from position $x: \operatorname{ClimbUp}(x, b)$; climb down from a box to position $x$ : ClimbDown $(b, x)$. We will need the predicate On and the constant Floor.
$\bullet$ Turn a light switch on or off: $\operatorname{TurnOn}(s, b) ; \operatorname{TurnOff}(s, b)$. To turn a light on or off, Shakey must be on top of a box at the light switch's location.

Write PDDL sentences for Shakey's six actions and the initial state from Figure 10.14. Construct a plan for Shakey to get $\mathrm{Box}_2$ into $\mathrm{Room}_2$.

Check back soon!
02:28

Problem 6

Explain why dropping negative effects from every action schema in a planning problem results in a relaxed problem.

Dalia Fantini
Dalia Fantini
University of Pittsburgh - Main Campus
01:33

Problem 7

Figure 10.4 (page 371) shows a blocks-world problem that is known as the Sussman anomaly. The problem was considered anomalous because the noninterleaved planners of the early 1970 s could not solve it. Write a definition of the problem and solve it, either by hand or with a planning program. A noninterleaved planner is a planner that, when given two subgoals $G_1$ and $G_2$, produces either a plan for $G_1$ concatenated with a plan for $G_2$, or vice versa. Explain why a noninterleaved planner cannot solve this problem.

Lottie Adams
Lottie Adams
Numerade Educator

Problem 8

Prove that backward search with PDDL problems is complete.

Check back soon!

Problem 9

Construct levels 0, 1, and 2 of the planning graph for the problem in Figure 10.1.

Check back soon!
01:03

Problem 10

Prove the following assertions about planning graphs:
a. A literal that does not appear in the final level of the graph cannot be achieved.
b. The level cost of a literal in a serial graph is no greater than the actual cost of an optimal plan for achieving it.

Lucas Finney
Lucas Finney
Numerade Educator
09:06

Problem 11

We saw that planning graphs can handle only propositional actions. What if we want to use planning graphs for a problem with variables in the goal, such as $A t\left(P_1, x\right) \wedge A t\left(P_2, x\right)$, where $x$ is assumed to be bound by an existential quantifier that ranges over a finite domain of locations? How could you encode such a problem to work with planning graphs?

Rosina Dapaah
Rosina Dapaah
Numerade Educator

Problem 12

The set-level heuristic (see page 382) uses a planning graph to estimate the cost of achieving a conjunctive goal from the current state. What relaxed problem is the set-level heuristic the solution to?

Check back soon!

Problem 13

We contrasted forward and backward state-space searchers with partial-order planners, saying that the latter is a plan-space searcher. Explain how forward and backward statespace search can also be considered plan-space searchers, and say what the plan refinement operators are.

Check back soon!

Problem 14

Up to now we have assumed that the plans we create always make sure that an action's preconditions are satisfied. Let us now investigate what propositional successor-state axioms such as HaveArrow ${ }^{t+1} \Leftrightarrow\left(\right.$ HaveArrow $^t \wedge \neg$ Shoot $\left.^t\right)$ have to say about actions whose preconditions are not satisfied.
a. Show that the axioms predict that nothing will happen when an action is executed in a state where its preconditions are not satisfied.
b. Consider a plan $p$ that contains the actions required to achieve a goal but also includes illegal actions. Is it the case that
initial state $\wedge$ successor-state axioms $\wedge p \models$ goal ?
c. With first-order successor-state axioms in situation calculus, is it possible to prove that a plan containing illegal actions will achieve the goal?

Check back soon!
04:09

Problem 15

Consider how to translate a set of action schemas into the successor-state axioms of situation calculus.
a. Consider the schema for $F l y(p, f r o m, t o)$. Write a logical definition for the predicate Poss(Fly $(p, f r o m, t o), s)$, which is true if the preconditions for $F l y(p$, from, to) are satisfied in situation $s$.
b. Next, assuming that $F l y(p, f r o m, t o)$ is the only action schema available to the agent, write down a successor-state axiom for $A t(p, x, s)$ that captures the same information as the action schema.
c. Now suppose there is an additional method of travel: Teleport (p, from, to). It has the additional precondition $\neg \operatorname{Warped}(p)$ and the additional effect $W$ arped $(p)$. Explain how the situation calculus knowledge base must be modified.
d. Finally, develop a general and precisely specified procedure for carrying out the translation from a set of action schemas to a set of successor-state axioms.

Akash M
Akash M
Numerade Educator

Problem 16

In the SATPLAN algorithm in Figure 7.22 (page 272), each call to the satisfiability algorithm asserts a goal $g^T$, where $T$ ranges from 0 to $T_{\max }$. Suppose instead that the satisfiability algorithm is called only once, with the goal $g^0 \vee g^1 \vee \cdots \vee g^{T_{\max }}$.
a. Will this always return a plan if one exists with length less than or equal to $T_{\max }$ ?
b. Does this approach introduce any new spurious "solutions"?
c. Discuss how one might modify a satisfiability algorithm such as WALKSAT so that it finds short solutions (if they exist) when given a disjunctive goal of this form.

Check back soon!