Docsity

Symmetric - Artificial Intelligence - Quiz, Exercises of Artificial Intelligence

Toggle sidebar
bg1
CS-271, Intro to A.I. — Quiz # 4 — Fall Quarter, 2010 — 20 minutes
YOUR NAME AND EMAIL ADDRESS:
YOUR ID: ID TO RIGHT: ROW: NO. FROM RIGHT:
1. (20 pts total, 5 pts each) PROBABILITY.
1a. (5 pts) Write down the definition of P(H | D) in terms of P(H), P(D), P(H D), and P(H D).
1b. (5 pts) Write down the expression that results from applying Bayes' Rule to P(H | D).
1c. (5 pts) Write down the expression for P(H D) in terms of P(H), P(D), and P(H D).
1d. (5 pts) Write down the expression for P(H D) in terms of P(H), P(D), and P(H D).
2. (25 pts total, 5 pts off for each wrong answer, but not negative) Let PKF(x, y) mean
“Person x Knows Fact y”. For this question only, you may assume that the first argument is a
person and the second is a fact. For each English sentence below, write the first order predicate
logic sentence that best expresses it. Use “” to mean “not.” The first one is done for you.
2a. Every person knows every fact. xy PKF(x, y) .
2b. Every person knows at least one fact. .
2c. There is a person who knows at least one fact. .
2d. There is a person who knows every fact. .
2e. No person knows every fact.
2f. There is a person who knows no fact.
2g. No person knows any fact. .
2h. There is a fact that is known by every person. .
2i. There is a fact that no person knows. .
**** TURN PAGE OVER. QUIZ CONTINUES ON THE REVERSE ****
pf2

Partial preview of the text

Download Symmetric - Artificial Intelligence - Quiz and more Exercises Artificial Intelligence in PDF only on Docsity!

CS-271, Intro to A.I. — Quiz # 4 — Fall Quarter, 2010 — 20 minutes

YOUR NAME AND EMAIL ADDRESS:

YOUR ID: ID TO RIGHT: ROW: NO. FROM RIGHT:

1. (20 pts total, 5 pts each) PROBABILITY.

1a. (5 pts) Write down the definition of P(H | D) in terms of P(H), P(D), P(H D), and P(H D).

1b. (5 pts) Write down the expression that results from applying Bayes' Rule to P(H | D).

1c. (5 pts) Write down the expression for P(H D) in terms of P(H), P(D), and P(H D).

1d. (5 pts) Write down the expression for P(H D) in terms of P(H), P(D), and P(H D).

2. (25 pts total, 5 pts off for each wrong answer, but not negative) Let PKF ( x, y ) mean “Person x Knows Fact y”. For this question only, you may assume that the first argument is a person and the second is a fact. For each English sentence below, write the first order predicate logic sentence that best expresses it. Use “” to mean “not.” The first one is done for you.

2a. Every person knows every fact.  xy PKF(x, y).

2b. Every person knows at least one fact..

2c. There is a person who knows at least one fact..

2d. There is a person who knows every fact..

2e. No person knows every fact.

2f. There is a person who knows no fact.

2g. No person knows any fact..

2h. There is a fact that is known by every person..

2i. There is a fact that no person knows..

****** TURN PAGE OVER. QUIZ CONTINUES ON THE REVERSE ******

3. (35 points total, 5 pt each) Complete the resolution proof below that Jill is Sue’s niece. For ease in naming the statements in the KB, they are labeled KB1, KB2, KB3, KB4, …. Write each

unifier as { var1/val1, var2/val2, …}, i.e., a list of variable/value substitutions.

KB1: Daughter(Jill, Mary) KB2: Sister(Mary, Sue) KB3: ( Daughter(x, y)   Sister(y, z)  Niece(x, z) ) (Note: in general, you would need another axiom, Sister(x, y)  Sister(y, x) , to state that Sister is symmetric; but the problem has been simplified here to avoid that necessity.)

Goal: Niece(Jill, Sue)

3a. The negated goal is KB4:.

3b. The most general unifier of KB3 and KB4 is:.

3c. The result of resolving KB3 and KB4 is KB5:.

3d. The most general unifier of KB2 and KB5 is:.

3e. The result of resolving KB2 and KB5 is KB6:.

3f. The most general unifier of KB1 and KB6 is:.

3g. The result of resolving KB1 and KB6 is KB7:.

4. (20 pts total, 5 pts off for each wrong answer, but not negative) Fill in each blank below with Y (= Yes) or N (= No) depending on whether or not the first order predicate logic sentence correctly expresses the English sentence.

4a. “All cats are mammals.”  x Cat( x ) & Mammal( x )

4b. “Spot has a sister who is a cat.”  x Sister( x, Spot) & Cat( x )

4c. “For every person, there is someone that that person likes.”  xy Likes( x, y )

4d. “There is someone who is liked by everyone.”  xy Likes( x, y )

4e. “Everyone likes ice cream.”   x  Likes( x, IceCream)

4f. “All men are mortal.” x Man(x)  Mortal(x)