



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!




You have 80 minutes. The exam is open-book, open-notes. 100 points total. Panic not.
Mark your answers ON THE EXAM ITSELF. Write your name, SID, login, and section number at the top of each page. For true/false questions, CIRCLE True OR False. For multiple-choice questions, CIRCLE ALL CORRECT CHOICES (in some cases, there may be more than one).
If you are not sure of your answer in true/false and multiple-choice questions, you may wish to provide a brief explanation.
For official use only
(a) (2) True/False: There exist task environments E 1 and E 2 and agent A such that A is perfectly rational in both E 1 and E 2 , even though E 1 and E 2 are not identical.
(b) (2) True/False: Search algorithms cannot be applied in completely unobservable environments.
(c) (2) True/False: For any propositional KB for a logical agent that is to operate over T time steps, there is an equivalent circuit-based agent whose circuit is roughly T times smaller.
(d) (2) True/False: Every existentially quantified sentence in first-order logic is true in any model that con- tains exactly one object.
(e) (2) True/False: A perfectly rational backgammon agent never loses.
(f) (2) True/False: Depth-first search always expands at least as many nodes as A∗^ search with an admissible heuristic.
(a) (6) Give a complete problem formulation.
(b) (4) How large is the reachable state space? (Give an exact numerical expression; no need to calculate its value.)
(c) (2) Suppose we make the problem adversarial as follows: the two players take turns moving; a coin is flipped to determine the puzzle on which to make a move in that turn; and the winner is the first to solve one puzzle. Which algorithm can be used to choose a move in this setting?
(d) (4) Give an informal proof that someone will eventually win if both play perfectly.
(a) (8) Which of the following are semantically and syntactically correct translations of “No dog bites a child of its owner”? i. ∀ x Dog(x) ⇒ ¬Bites(x, Child(Owner(x)))
ii. ¬∃ x, y Dog(x) ∧ Child(y, Owner(x)) ∧ Bites(x, y)
iii. ∀ x Dog(x) ⇒ (∀ y Child(y, Owner(x)) ⇒ ¬Bites(x, y))
iv. ¬∃ x Dog(x) ⇒ (∃ y Child(y, Owner(x)) ∧ Bites(x, y))
(b) (8) Translate into first order logic the sentence “Everyone’s DNA is unique and is derived from their parents’ DNA.” You must specify the precise intended meaning of your vocabulary terms. [Hint: do not use the predicate U nique(x), since uniqueness is not really a property of an object in itself!]
(a) (12) For each of the following queries, say whether the algorithm will (1) give an answer (if so, write down that answer); or (2) terminate with no answer; or (3) never terminate. i. (3) Ancestor(M other(y), John)
ii. (3) Ancestor(M other(M other(y)), John)
iii. (3) Ancestor(M other(M other(M other(y))), M other(y))
iv. (3) Ancestor(M other(John), M other(M other(John)))
(b) (3) Can a resolution algorithm prove from the original knowledge base that ¬Ancestor(John, John)? Ex- plain briefly.
(c) (3) Suppose the KB is augmented with the assertion that ¬(M other(x) = x), and that the resolution algorithm includes inference rules for equality. Now what is the answer to (b)?