



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




(a) ∀x.∃y.p(x) ∧ r(x, y) Solution:
p(x 1 )
r(x 2 , F (x 2 ))
(b) ∃x.∀y.p(x) → r(x, y) Solution:
¬p(A) ∨ r(A, y 1 )
(c) ∀x.(∃y.r(x, y)) ↔ p(x) Solution:
¬r(x 1 , y 1 ) ∨ p(x 1 )
¬p(x 2 ) ∨ r(x 2 , F (x 2 ))
(d) ¬∀x.∃y.p(x) ∧ r(x, y) Solution:
¬p(A) ∨ ¬r(A, y 1 )
(a)
∃x.p(x) ∧ q(x) ∧ r(x, x) ∀x.p(x) → ∃y.¬r(x, y) ∀x.p(x) → ∃y.¬x = y ∧ r(x, y)
∀x.p(x) ∨ ¬q(x)
Solution:
p = {< A >} q = {< A, C >} r = {< A, A >, < A, B >}
(b)
∀x.p(x) ↔ ∃y.r(y, x) ∀x.∃y.r(x, y)
∀x.¬p(x)
Solution:
p = {< A >} r = {< A, A >, < B, A >, < C, A >}
Alternately: (there are others, too)
p = {< A, B, C >} r = {< A, A >, < B, B >, < C, C >}
Common Mistakes:
(b) (3 points) Give a non-trivial, polynomial-time, admissible heuristic for this domain, or argue that there isn’t one. Solution: There were many acceptable solutions. Some examples:
(c) (3 points) Package A has to be delivered to the boss, and it’s important that it be done quickly. But we should deliver the other packages promptly as well. How could we encode this in the problem? Solution: The idea of putting “pressure” on the delivering to the boss is correctly handled in the cost function. We want to emphasize delivery to A, but we don’t want to ignore B if we happen to pass by it. Please note that to encode something into the “problem,” it must be encoded into one of the problem components: the state space, action space, goal test, or cost function. For example: while we haven’t delivered to A, actions cost 2; after that, actions cost 1. Common Mistakes:
(d) (3 points) Now, consider the case where the robot doesn’t start with the packages, but it has to pick up a package from location 1 to deliver to location A, a package from location 2 to deliver to B, and from 3 to deliver to C. What is an appropriate state space for this problem? Solution: Again, multiple solutions were possible. One example:
(e) (3 points) What is a good admissible heuristic? Solution:
(f) (4 points) This problem can also be treated as a planning problem. Describe the effects of the action of moving north using situation calculus axioms. As- sume that we are representing the location of the robot using integer coordinates for its x, y location in the grid, and that we can name the next integer coordinate greater than x as x + 1. Additionally, assume that we have a predicate occupied that applies to x, y pairs, indicating whether the robot may pass through the indicated locations. Solution:
∀x, y, s.atrobot(x, y, s) ∧ ¬occupied (x, y + 1) → atrobot(x, y + 1, result(moveNorth, s))
A little variability in this answer was acceptable, but the idea of result as a function from actions and situations to actions was crucial.
(g) (3 points) Describe what frame axioms would be necessary for this domain (but don’t write them down). Solution:
(j) (2 points) Should this problem be treated as a planning problem? Explain why or why not. Solution: I accepted a lot of answers here, mostly dependent on how cogently they were argued in the context of the answer to the previous problem. I actually think that treating this as a planning problem won’t be much help because: the initial state is known exactly, the subgoals aren’t particularly separable (you can’t solve the problem of going to location A without knowing where you’re going to be when you start), and we have a strong desire for minimizing path cost.