next up previous
Next: About this document ...

Practice Midterm

Intro to AI Show (Su 99)
Selmer Bringsjord

Question 1. Russell and Norvig move from the situation calculus to the event calculus because the former has trouble representing

$\Box$ a
discrete actions
$\Box$ b
single agents
$\Box$ c
multiple agents
$\Box$ d
the wumpus world
$\Box$ e
none of the above

Question 2. Suppose that $\forall x R(x,b)$ and a = b are in KB13. In standard first-order logic

\begin{displaymath}\mbox{KB}_{13} \vdash \forall y R(y,b).\end{displaymath}

$\Box$ a
True
$\Box$ b
False

Question 3. Define the Lisp function combine-expr to take an arithmetic operator, an operand, and a list representing an arrithmetic expression and return the expression with the operator and operand applied to the first member of the expression. E.g., (combine-expr '+ 3 '(5 - 6 * 8)) should evaluate to ((3 + 5) - 8 * 8).











Question 4. Which of the following relations are referentially opaque?

$\Box$ a
Believes
$\Box$ b
Fears
$\Box$ c
Knows
$\Box$ d
none of the above
$\Box$ e
all of the above

Question 5. On Russell & Norvig's approach to mental objects, how would the following sentence be represented?








Question 6. Let $\theta$ be the substitution {x/Tina, y/Charlie}. And suppose that

\begin{displaymath}\forall x \forall y \mbox{{\em Likes}}(x,y)\end{displaymath}

is in KB12. What rule of inference can be used to establish

\begin{displaymath}\mbox{KB$_{12}$ } \vdash \mbox{{\em Likes$($Tina, Charlie$)$}}?\end{displaymath}

$\Box$ a
reductio ad absurdum
$\Box$ b
paramodulation
$\Box$ c
existential introduction
$\Box$ d
universal elimination
$\Box$ e
none of the above

Question 7. Suppose that the following function has been defined in Lisp:

(defun creative-ais-inp (roster)
  (cond ((null roster) nil)
        ((eql 'brutus (first roster)) t)
        (t (creative-ais-inp (rest roster)))))

Now suppose that you type

(setf iai-agents '(ralph jr9000 tom anita henry brutus
  selmer chungkim))

to Lisp. At this point, typing

(creative-ais-inp iai-agents)}

will return

$\Box$ a
T
$\Box$ b
NIL
$\Box$ c
an error message
$\Box$ d
a stack overflow warning
$\Box$ e
none of the above

Question 8. Suppose that KB5 includes the information in the blocks world grid for Selmer's World (shown on our web site). (So the knowledge base in question contains all formulas that can be observed from this grid in Hyperproof.) Suppose that the following formula is added to this knowledge base.

\begin{displaymath}\forall x (G(x) \Leftrightarrow \exists y \exists z (x \not= ...
...z \wedge \mbox{{\em Likes$(x,y) \; \wedge
\, $ Likes$(y,z)))$}}\end{displaymath}

Then KB $_5 \vdash G(b)$.

$\Box$ a
true
$\Box$ b
false

Question 9. Which of the following first-order formulas could represent ``Alma's mother loves all maternal grandparents," where ``L(x,y)' stands for ``x loves y."

$\Box$ a
$\forall x ((\exists y \exists z (f_m(z) = y \wedge f_m(y) = x)
\Rightarrow L(f_m(a),x))$
$\Box$ b
$\forall x ((\forall y \forall z (f_m(z) = y \wedge f_m(y) = x)
\Rightarrow L(f_m(a),x))$
$\Box$ c
$\forall x ((\exists y \exists z (f_m(z) = y \wedge f_m(y) = x)
\Leftarrow L(f_m(a),x))$
$\Box$ d
$\forall x ((\exists y \exists z (f_m(z) = y \wedge f_m(y) = x)
\Rightarrow L(x,f_m(a)))$
$\Box$ e
none of the above

Question 10. Write a Lisp function to compute this function:


\begin{displaymath}p(n)=\left\{
\begin{array}{ll}
1 & \mbox{if $n$ is prime}\\
0 & \mbox{otherwise}
\end{array} \right.
\end{displaymath}














Question 11. Write a Lisp function to investigate G's Conjecture (see immediately below) by checking all natural numbers from 2 to 2000. After studying the output of this function, give your own conjecture (``Yes" or ``No") as to the truth of G's Conjecture.

G's Conjecture
The sum of all prime numbers greater than one is an even number.














Question 12. Consider the following sentence in the propositional calculus. Complete the table that follows it, by writing down a `Yes' or a `No.'

\begin{displaymath}\mbox{{\em Big }} \vee \mbox{{\em Dumb}} \; \vee (\mbox{{\em Big }} \Rightarrow
\mbox{{\em Dumb}})\end{displaymath}

Concept Verdict (Yes or No)
satisfiable
valid
well-formed

Question 13. Consider the following first-order sentence. Complete the table that follows it, by writing down a `Yes' or a `No.'

\begin{displaymath}(\forall x (R(x) \wedge G(x))) \Rightarrow (\forall x R(x) \wedge
\forall x G(x))\end{displaymath}

Concept Verdict (Yes or No)
satisfiable
valid
well-formed

Question 14. Given the following information, could an agent with the reasoning power of the propositional calculus prove that the unicorn is mythical? How about magical? Horned?

If the unicorn is mythical, then it is immortal, but if it is not mythical, then it is a mortal mammal. If the unicorn is either immortal or a mammal, then it is horned. The unicorn is magical if it is horned.

$\Box$ a
Yes, No, Yes
$\Box$ b
Yes, Yes, Yes
$\Box$ c
No, No, No
$\Box$ d
No, Yes, Yes
$\Box$ e
none of the above

Question 15. Suppose that KB78 for an agent trying to thrive in the wumpus world contains the following 10 facts:

K1
$\neg S_{1,1}$
K2
$\neg S_{2,1}$
K3
S1,2
K4
$\neg B_{1,1}$
K5
B2,1
K6
$\neg B_{1,2}$
K7
$\neg S_{1,1} \Rightarrow (\neg W_{1,1} \wedge \neg W_{1,1} \wedge
\neg W_{2,1})$
K8
$\neg S_{2,1} \Rightarrow (\neg W_{1,1} \wedge \neg W_{2,1} \wedge
\neg W_{2,2} \wedge \neg W_{3,1})$
K9
$\neg S_{1,2} \Rightarrow (\neg W_{1,1} \wedge \neg W_{1,2} \wedge
\neg W_{2,2} \wedge \neg W_{1,3})$
K10
$S_{1,2} \Rightarrow (W_{1,3} \vee W_{1,2} \vee
W_{2,2} \vee W_{1,1})$

Consider the following part of a proof, carried out by an agent with KB78.

$\vdots$ $\vdots$ $\vdots$
n-1 $\neg W_{1,3}$ k And-Elim
n $W_{1,3} \vee W_{1,2} \vee
W_{2,2} \vee W_{1,1}$ K10, K3 by MP
n+1 $W_{1,2} \vee
W_{2,2} \vee W_{1,1}$ n, n-1 by ?
$\vdots$ $\vdots$ $\vdots$

Which rule of inference is used here?

$\Box$ a
And-Elimination
$\Box$ b
Or-Elimination
$\Box$ c
Modus Ponens
$\Box$ d
Unit Resolution
$\Box$ e
none of the above

Questions 16-18. Consider the following proof produced by OTTER.

---------------- PROOF ----------------
7 [] -Square(anine).
22 [] Vickynum(x)| -Triangle(x)|Square(x)| -Greater(x,aseven)| -Less(x,aten).
23 [] -Vickynum(anine).
24 [] Triangle(anine).
38 [] Less(anine,aten).
42 [] Greater(anine,aseven).
44 [hyper,42,22,24,38,unit_del,23,7] $F.
------------ end of proof -------------

16. What does the appearance of $F indicate?

$\Box$ a
that the empty clause has been reached
$\Box$ b
that a contradiction has been found
$\Box$ c
a and b
$\Box$ d
none of the above

17. What puzzle does this proof pertain to?

$\Box$ a
Secrets
$\Box$ b
The Wise Man Puzzle
$\Box$ c
The Dreadsbury Mansion Mystery
$\Box$ d
none of the above

18. Suppose that this proof is produced by a knowledge-based agent in its attempt to compute an ASK call. Would it be important, in this context, for the conjuction of lines 7, 22, 24, 28, and 42 to be satisfiable?

$\Box$ a
Yes
$\Box$ b
No

Question 19. Suppose for the sake of argument that Ralph computes so quickly that he can use minimax search to play perfect Go. A proponent of AI would probably not be all that impressed with Ralph's performance.

$\Box$ a
Strong
$\Box$ b
Weak

Question 20. That first-order logic is complete amounts to which of the following statements (where `KB' denotes some arbitrary knowledge-based and $\alpha$ denotes some arbitrary first-order formula)?

$\Box$ a
If KB $\vdash \alpha$ then KB $\models \alpha$
$\Box$ b
If KB $\models \alpha$ then KB $\vdash \alpha$
$\Box$ c
If KB $\vdash \alpha$ and KB $\vdash \alpha \Rightarrow \beta$ then KB $\vdash \alpha$
$\Box$ d
If KB $\models \alpha$ and KB $\models \alpha \Rightarrow \beta$ then KB $\models \alpha$
$\Box$ e
none of the above

Question 21. What is the most general unifier for the following pair of sentences.

$\Box$ a
{y/John, x/John}
$\Box$ b
{y/x}
$\Box$ c
{y/John, x/y}
$\Box$ d
{y/x, x/y}
$\Box$ e
none of the above

Question 22. Here is a formula in first-orderlogic:

\begin{displaymath}\exists y \forall x \mbox{{\em Loves}}(y,x)\end{displaymath}

This formula corresponds to what English sentence, given that `` $\mbox{{\em Loves}}(x,y)$" means ``x loves y"?

$\Box$ a
Someone loves everyone.
$\Box$ b
Everyone loves someone.
$\Box$ c
No one loves everyone.
$\Box$ d
There is someone everyone loves.
$\Box$ e
none of the above

Questions 23-25. (The following two questions are related to problem 3.16 in the book.) The artificial agent SEEK operates as follows. It perceives a sequence of postive integers, generated by some sequence function f(n), and then predicts the next number in the sequence. For example, the sequence {1, 2, 4, 8, $\ldots$ } -- given to SEEK, we assume, at random -- might result in the prediction 16, based on the view that f(n) = 2n in this case. Let's suppose that the space of possible functions consists of all expressions built from the elements 1 and n, and the functions $+, \times, -, \div$ and exponentiation. Suppose that the program for SEEK has been written in Common Lisp, so that

> (seek '(1 2 4 8))
16
(exp (+ 1 1) n)

23. In PAGE description of SEEK, the G would be

$\Box$ a
predicting
$\Box$ b
searching the space
$\Box$ c
sequencing
$\Box$ d
finding the underlying function
$\Box$ e
none of the above

24. Suppose that an agent IQ, incorporating both SEEK and the program ANALOGY discussed in the R&N text, has the ability to score 200 on any and all IQ-tests given it. Take a stand as to whether IQ's arrival would mean that AI had truly succeeded. Defend your position in two paragraphs, relating what you say to the reading.

25. How long would it take Ralph to produce the Common Lisp code that brings SEEK to life?

$\Box$ a
less time than any human
$\Box$ b
a fraction of a nanosecond
$\Box$ c
a fraction of the time it would take Selmer
$\Box$ d
a fraction of the time it would take ``Junior"
$\Box$ e
all of the above



 
next up previous
Next: About this document ...
Selmer Bringsjord
1999-05-29