Docsity

CS 540 Mid Exam: Artificial Intelligence - October 2000, Exams of Artificial Intelligence

Toggle sidebar
bg1
CS 540: Introduction to Artificial Intelligence
Mid Exam: 7:15-9:15 pm, October 25, 2000
Room 1240 CS & Stats
CLOSED BOOK
(one sheet of notes and a calculator allowed)
Write your answers on these pages and show your work. If you feel that a question is not fully
specified, state any assumptions you need to make in order to solve the problem. You may use
the backs of these sheets for scratch work.
Write your name on this and all other pages of this exam. Make sure your exam contains six
problems on ten pages.
Name ________________________________________________________________
Student ID ________________________________________________________________
Problem Score Max Score
1 ______ 22
2 ______ 22
3 ______ 10
4 ______ 21
5 ______ 10
6 ______ 15
TOTAL ______ 100
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download CS 540 Mid Exam: Artificial Intelligence - October 2000 and more Exams Artificial Intelligence in PDF only on Docsity!

CS 540: Introduction to Artificial Intelligence

Mid Exam: 7:15-9:15 pm, October 25, 2000 Room 1240 CS & Stats

CLOSED BOOK (one sheet of notes and a calculator allowed)

Write your answers on these pages and show your work. If you feel that a question is not fully specified, state any assumptions you need to make in order to solve the problem. You may use the backs of these sheets for scratch work.

Write your name on this and all other pages of this exam. Make sure your exam contains six problems on ten pages.

Name ________________________________________________________________

Student ID ________________________________________________________________

Problem Score Max Score

1 ______ 22

2 ______ 22

3 ______ 10

4 ______ 21

5 ______ 10

6 ______ 15

TOTAL ______ 100

Problem 1 – Decision Trees (22 points)

Imagine you wish to recognize good art given some features of it. You’ve written a program that is able to measure two numeric properties of each piece of art: F1 and F2 , plus your code is able to determine the most-used primary color ( red=R , blue=B , and yellow=Y ). A set of training examples appears below.

F1 F2 Color Result

0 4 R good 3 2 B bad 7 5 B good 1 4 B bad 8 1 R good

a) Using a method like the one that you used in HW 1, first discretize the continuous features, but only divide into two (2) bins ( low=L and high=H ). Complete the reformulated table below and briefly explain your work to the right of the table.

F1 F2 Color Result Explanation of Reformulation

R good B bad B good B bad R good

b) What score would the information gain calculation assign to each of the features? Be sure to show all your work (use the back of this or the previous sheet if needed).

c) Which feature would be chosen as the root of the decision tree being built? ____________ (Break ties in favor of F1 over F2 over Color.)

Problem 2 – Search (22 points)

Consider the search space below, where S is the start node and G1 and G2 satisfy the goal test. Arcs are labeled with the cost of traversing them and the estimated cost to a goal is reported inside nodes.

For each of the following search strategies, indicate which goal state is reached (if any) and list, in order , all the states popped off of the OPEN list. When all else is equal, nodes should be removed from OPEN in alphabetical order.

Uniform Cost

Goal state reached: _______ States popped off OPEN: ____________________________________

Iterative Deepening

Goal state reached: _______ States popped off OPEN: ____________________________________

Best First (using the h function only)

Goal state reached: _______ States popped off OPEN: ____________________________________

Beam (with beam width = 2 and using the h function only )

Goal state reached: _______ States popped off OPEN: ____________________________________

A *

Goal state reached: _______ States popped off OPEN: ____________________________________

S 5

B 1

A 2

G 0

C 3

E 6

D 1

G 0

2

3

8

4 1 1 5 9 7

2

1 2

1

5

Problem 3 – Representation using Logic (10 points)

Convert each of the following English sentences into first-order predicate calculus (FOPC), using reasonably named predicates, functions, and constants. If you feel a sentence is ambiguous, clarify which meaning you’re representing in logic. (Write your answers in the space below the English sentence.)

Mary is tall and Bill is not.

Some dogs are tiny.

All of Picasso’s paintings are valuable.

All the houses near Sue’s house are either large or old (or both).

c) Formally show that S ∨ R follows from the “given’s” below. (Don’t deduce more than 10 additional WFF’s.)

Number WFF Justification

1 ¬ (¬Q) ∧ Z given 2 ¬W given 3 (¬W ∧ Q) ⇒ (¬P) given 4 (W ∧ Z) ⇒ S given 5 Q ⇒ (S ∨ P) given 6 (P ∧ Q) ⇒ R given

Problem 5 – Miscellaneous Short Answers (10 points)

Briefly describe each of the following AI concepts and explain each’s significance. (Write your answers below the phrases.)

Heuristic Functions

Occam’s Razor

Quantifiers

A*

α-β Pruning

b) Now assume that there is no randomness and the players simply can choose any of the four moves ( AH, AT, BH , or BT ). Apply the minimax algorithm to the tree below and explain which move the computer should make. As in part (a), assume it is the computer’s turn to play.

c) Assuming leaf nodes are visited left-to-right, identify the first unnecessary call to the SBE (for the no randomness case). Explain your answer.

8 9 7 3

AH BH AT BT

4 2 0 3

AH BH AT BT

7 5 9 7

AH BH AT BT

1 6 8 0

AH BH AT BT

AH

AT BH

BT