Docsity

Rational Backgammon - Introduction to Artificial Intelligence - Exams, Exams of Artificial Intelligence

Toggle sidebar
bg1
NAME: SID#: Login: Sec: 1
CS 188 Introduction to AI
Fall 2005 Stuart Russell Midterm
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
Q. 1 Q. 2 Q. 3 Q. 4 Q. 5 Q. 6 Total
/12 /16 /16 /16 /18 /22 /100
1. (12 pts.) True/False
(a) (2) True/False: There exist task environments E1and E2and agent Asuch that Ais perfectly rational
in both E1and E2, even though E1and E2are 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 Ttime steps, there is
an equivalent circuit-based agent whose circuit is roughly Ttimes 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.
pf3
pf4
pf5

Partial preview of the text

Download Rational Backgammon - Introduction to Artificial Intelligence - Exams and more Exams Artificial Intelligence in PDF only on Docsity!

NAME: SID#: Login: Sec: 1

CS 188 Introduction to AI

Fall 2005 Stuart Russell Midterm

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

Q. 1 Q. 2 Q. 3 Q. 4 Q. 5 Q. 6 Total

  1. (12 pts.) True/False

(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.

  1. (16 pts.) Problem solving Consider the problem of solving two 8-puzzles.

(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.

  1. (16 pts.) Logical knowledge representation

(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!]

NAME: SID#: Login: Sec: 5

  1. (18 pts.) Logical inference Suppose a knowledge base contains just the following first-order Horn clauses: Ancestor(M other(x), x) Ancestor(x, y) ∧ Ancestor(y, z) ⇒ Ancestor(x, z) Consider a forward chaining algorithm that, on the jth iteration, terminates if the KB contains a sentence that unifies with the query, else adds to the KB every atomic sentence that can be inferred from the sentences already in the KB after iteration j − 1.

(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)?