Comprehensive Examination in Artificial Intelligence, Exams of Artificial Intelligence

A comprehensive examination in Artificial Intelligence from Stanford University in Autumn 2000. The exam consists of two parts: Uninformed Search and Logic: resolution. The exam is open book and partial credit is given for incomplete answers. The exam is worth 60 points and is designed to be completed in a set amount of time. The exam includes questions on search algorithms, logic, and natural language processing.

Typology: Exams

Pre 2010

Uploaded on 05/11/2023

elmut
elmut 🇺🇸

4.6

(16)

285 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Science Department
Stanford University
Comprehensive Examination in Artificial Intelligence
Autumn
2000
October
31,2000
PLEASE
READ
THIS
FIRST
a. You should write your answers for this part of the Comprehensive Examination
in
a
BLUE
BOOK. Be sure to write your
MAGIC
NUMBER
on the cover of every blue book
that you use.
b. Be sure you have all the pages of this exam. There are
4
pages in addition to this
cover sheet.
c. This exam is
OPEN
BOOK.
You may use notes, articles, or books -but no help from
people or computers.
d.
Show your work, since
PARTIAL
CREDIT
will be given for incomplete answers. For
example, you can get credit for making a reasonable start on a problem even
if
the
idea or arithmetic does not work out. You
can
also get credit for realizing that certain
approaches are incorrect.
e. Points in this exam add up to
60.
Points are allocated according to the number
of minutes we believe a student familiar with the material should take to answer
the questions.
If
you are somewhat less familiar with the material, a question may
easily take you longer than the number of points it's worth. Therefore be careful:
IF YOU
ARE
TAKING TOO LONG ON A QUESTION,
WRITE
DOWN
WHAT-
EVER
YOU
HAVE
AND
MOVE
ON.
pf3
pf4
pf5

Partial preview of the text

Download Comprehensive Examination in Artificial Intelligence and more Exams Artificial Intelligence in PDF only on Docsity!

Computer Science Department Stanford University Comprehensive Examination in Artificial Intelligence Autumn 2000

October 31,

PLEASE READ THIS FIRST

a. You should write your answers for this part of the Comprehensive Examination in a BLUE BOOK. Be sure to write your MAGIC NUMBER on the cover of every blue book that you use.

b. Be sure you have all the pages of this exam. There are 4 pages in addition to this cover sheet.

c. This exam is OPEN BOOK. You may use notes, articles, or books -but no help from people or computers.

d. Show your work, since PARTIAL CREDIT will be given for incomplete answers. For

example, you can get credit for making a reasonable start on a problem even if the idea or arithmetic does not work out. You can also get credit for realizing that certain approaches are incorrect.

e. Points in this exam add up to 60. Points are allocated according to the number of minutes we believe a student familiar with the material should take to answer the questions. If you are somewhat less familiar with the material, a question may easily take you longer than the number of points it's worth. Therefore be careful:

IF YOU ARE TAKING TOO LONG ON A QUESTION, WRITE DOWN WHAT-

EVER YOU HAVE A N D MOVE ON.

1 Search (8 points)

a. Uninformed Search

(i) (1point) Describe or give an example of a search space where depth-first search will perform much better than iterative deepening search (ii) (1 point) Describe or give an example of a search space where breadth-first

search will perform much better than depth-first search

(iii) (1point) Describe or give an example of a search space where depth-first search will perform much better than breadth-first search

b. Heuristic Search (5 points) A* search involves evaluating search paths via f^ = g + h, where g is the lowest cost path to the current search state, and h is the heuristic function which provides an optimistic estimate of the cost to a goal state. Now assume that the heuristic function h is induced from a cost function between nodes hl(x, y) which obeys the triangle inequality. ((Thetriangle inequality says that the sum of the costs

from x to z and z to y must not be less than the cost from x to y directly.) Prove that

the f-cost along any path in the search tree is nondecreasing.

2 Logic: resolution (12 points)

(This question comes from (the late)Jon Barwise and (our new provost) John Etchemendy. It also appears in the exercises of Russell and Norvig.) Consider the following statements:

If a unicorn is mythical, then it is immortal, but if it is not mytkucal, then it is

a mortal mammal. If the unicorn is either immortal or a mammal, then it is

homed. The unicorn is magical, if it is homed.

From the above, can you prove that the unicorn is mytkucal? How about magical? Horned? Use resolution for your proofs (using propositional logic is possible and acceptable). Show:

a. (2 points) the basic logical translation of this text

b. (2 points) the translations of these into a form suitable for resolution theorem prov- ing

c. (8 points) For each of the three unicorn properties (mythical, magical, homed), if it

can be proved, show your proof. If it can't be proved, explain the justification for

being able to conclude that the fact that unicorns have this property doesn't follow from the information given.

For training data, we have examined 12 Comps questions, and have collected the following statistics, which we show twice: on the left are counts for the diferent data patterns, and on the right the data is shown in a contingency table showing

  • : + counts for each combination of the classificatory variables.

L M D count

0 O - E 1

l o - 1 1 0 + 2 1 1 - 1 1 1 1 - 0

Draw a decision tree for this data (using information gain for node splitting, and

no stopping criterion or pruning, so that the tree is grown so long as there is some classificatory feature that appears to have information about the target feature).

c. (4 points) A Naive Bayes classifier for this problem predicts the target feature from

the prior and independently from the classificatory features as follows:

(That is, it calculates the expression shown for both d = + and d = - and chooses the value of d that gives the expression higher probability.) What classificatory de- cisions would a Naive Bayes classifier make for each combination of classificatory variables?

d. (3 points) Suppose we have 3 test data instances, whose correct classification we know, as follows:

L M D

What is the decision of each classifier on each datum? Which does better overall?

e. (2 points) Is the better performance of one learner reasonable or surprising here?

5 Vision and Natural Language Processing (14 points)

a. (2 points) One can easily use a segmentation algorithm to find edges in images. However, it is generally hard to use an edge detector to segment an image into regions. Why doesn't the output of an edge detector segment an image into regions?

b. (2 points) You want to design a vision system that uses shading information to re- cover the three-dimensional geometry of the scene from pictures taken in the real

world. You don't know what will be in front of the camera. What key difficulties

are you going to face?

c. (10 points) Write:

(i) (1point) a set of phrase structure grammar rules (ii) (1point) a lexicon

(iii) (3 points) a set of meanings for words in the lexicon, and

(iv) (3 pohts) semantic combination rules for the grammar rules, in the form of a definite clause grammar

for the sentence:

Sydney is a beautiful city.

You can assume that the adjective beautiful has intersective semantics, and that Syd-

ney is a constant - that is, a suitable semantic form for the sentence is: beauti-

ful(sydney) & city(sydney). You may find it helpful to look at, but will need to ex-

tend, the grammar of Russell & Norvig pp. 665ff. In particular, the semantic forms

in your lexicon will need to include lambda-expressions, as shown there.

(v) (2 points) Discuss the most salient difficulties involving the semantics of this

sentence and your grammar for it which would make extendingyour grammar

difficult.