Docsity

CS540 Final Examination: Introduction to Artificial Intelligence, Exams of Artificial Intelligence

Toggle sidebar
bg1
Final Examination
CS540: Introduction to Artificial Intelligence
December 19, 2006 Instructor: Jerry Zhu
CLOSED BOOK
(Two letter-size notes allowed. You don’t need to hand them in)
LAST (FAMILY) NAME:
FIRST NAME:
Problem Score Max Score:
5 points
each
1 ___________
2 ___________
3 ___________
4 ___________
5 ___________
6 ___________
7 ___________
8 ___________
9 ___________
10 ___________
11 ___________
12 ___________
13 ___________
14 ___________
15 ___________
16 ___________
17 ___________
18 ___________
19 ___________
20 ___________
Total ___________ 100
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download CS540 Final Examination: Introduction to Artificial Intelligence and more Exams Artificial Intelligence in PDF only on Docsity!

Final Examination

CS540: Introduction to Artificial Intelligence

December 19, 2006 Instructor: Jerry Zhu

CLOSED BOOK (Two letter-size notes allowed. You don’t need to hand them in)

LAST (FAMILY) NAME:

FIRST NAME:

Problem Score Max Score: 5 points each 1 ___________ 2 ___________ 3 ___________ 4 ___________ 5 ___________ 6 ___________ 7 ___________ 8 ___________ 9 ___________ 10 ___________ 11 ___________ 12 ___________ 13 ___________ 14 ___________ 15 ___________ 16 ___________ 17 ___________ 18 ___________ 19 ___________ 20 ___________

Total ___________ 100

  1. Iterative deepening search Run iterative deepening search on the following graph, starting from node 1. Node 4 is the goal node. Write down the node numbers as they are expanded. Do NOT use any loop avoidance method. Everything being equal, expand node with the lowest number.
  2. Optimization In the following electric network, each node is connected by resistors (the edges) of unit resistance to some other nodes. Each node (except node x) is fixed at the voltage shown in the circle. The heat generated by the electric network is

= (^) ∑ − i j

E vi v j ~

2 ( ) ,

where the sum is over all resistors, i and j are the two nodes connected by the resistor, and vi , vj are the voltages at node i, j respectively. What should the voltage x be to minimize the heat?

3 x 5

  1. Matrix normal form with Chance node Write down the matrix normal form of the following zero-sum game with chance node.

ma x

mi n

mi n

mi n 3 6

1

0

2

0

5

Chance p=0.4 (^) p=0.

A

B C

D

  1. Strictly dominated strategy Perform iterative elimination of strictly dominated strategies on the following matrix normal form for non-zero sum game. Each cell contains (A’s score, B’s score). Note in this notation, both players want to maximize their own score.
  2. Propositional logic The propositional logic connective NAND is defined as:

P Q P NAND Q T T F T F T F T T F F T

Express (P OR Q) using and only using NAND, P, Q. (Hint: you need 3 NAND’s. What is P NAND P?)

2, 4 3, 7 4, 5

1, 2 5, 4 2, 3

4, 0 2, 8 5, 3

3, 6 4, 0 1, 9

A

B

  1. K-nearest-neighbor Given the following dataset:

{(x=1, y=+), (x=2, y=-), (x=4, y=-), (x=8, y=+), (x=16, y=-)} a) What is the leave-one-out accuracy with 1-nearest-neighbor classifier? Use Euclidean distance. b) What is the leave-one-out accuracy with 3-nearest-neighbor classifier? Use Euclidean distance.

  1. Entropy Compute the entropy (in bits) of the following loaded 6-sided die: p(side1) = ½, p(side2)=1/4, p(side3)=p(side4)=1/8, p(side5)=p(side6)=0. Show your steps.
  1. Speech recognition In one sentence, describe the idea of Captcha.
  2. Mutual information Given the dataset x y 1 + 1 - 1 - 1 + 0 - 0 - 0 + 0 + What is the entropy H(y)? What is the conditional entropy H(y|x)? What is the mutual information I(x;y)? Use bits as the unit.
  1. Perceptron In question 7 we defined NAND. Let T=1 and F=0. Using a perceptron with step function activation (a(x)=0 if x<=0, 1 otherwise), implement NAND. You need to 1) draw the perceptron, 2) mark the inputs, 3) define the weights.
  2. Neural network In a neural network with x inputs, one hidden layer with y units, and one output layer with z units, assuming each input is connected to all hidden units, and each hidden units is connected to all output units, how many weights are there in the neural network altogether?
  1. Probability In a bag there are two envelopes, one has a red ball (worth $100) and a black ball (worth nothing), the other has two black balls. You randomly chose an envelope. a) From the envelope your friend randomly took out one ball, and told you “it’s black”. Given the chance, should you switch to the other envelope? What is the probability that you get the red ball if you switch? b) Instead of a), your friend looked into the envelope, and told you “there is at least one black ball”. Given the chance, should you switch to the other envelope? What is the probability that you get the red ball if you switch?
  2. Statistics In your 10-day vacation in Alaska, you kept the following log on the weather and whether you saw a bear that day: (rain, bear) 1 day (¬rain, bear) 2 days (rain, ¬bear) 6 days (¬rain, ¬bear) 1 day a) Write down the joint probability table, estimate probability with frequency. b) Compute the marginal probability P(bear). c) Compute the conditional probability P(¬bear | rain)