




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Fall 2004
Name:__________________________
This is a closed book, closed note exam. All questions and subquestions are equally weighted.
True or False : In this course, we are studying rational agents and what it means to think rationally. FALSE… ACT Rationally
Provide a synonym for stochastic: Random, Markov, probabilistic, non-deterministic
a) Breadth-first search: b+b^2 +b^3 + … + bd^ + bd+1^ - b
b) Depth-first search: infinity
c) Depth-limited search (limit = d ): b + b^2 + … + bd
d) Iterative deepening depth-first search: db + (d-1)b^2 + … bd
Never over estimates the cost to the goal.
FALSE: infinite loops are possible
What complication regarding completeness can be caused when augmenting A* to include the provision for deleting revisited states?
potential loss of optimality, but not completeness
complicated to make sure the right one is deleted
shorter paths are possible and longer paths are possible
thrashing
Suppose we want to use the A* algorithm on the graph below to find the shortest path from node S to node G. Each node is labeled by a capital letter and the value of a heuristic function. Each edge is labeled by the cost to traverse that edge.
For this problem:
Assume that if you find a path to a node already on the queue that you update its cost (using the lower f value) instead of adding another copy of that node to the queue.
iteration node expanded Priority queue at end of this iteration 0 S = 0 + 6 = 6 (i.e. S = g(S) + h(S) = f(S)) 1 S A = 2 + 4 = 6; B = 3 + 4 = 7 2 A C=9, B= 3 B C=8, D=9. 4 C D=8.5, E= 5 E G=9, D=8. 6 D F=8, G= 7 F G= 8 G
Fewer tiles, Manhattan distance, misplaced tiles, slide tiles over others
Local mins and plateaus
b) True or False: The evaluated move is always discarded if it is worse than the current state and another move is chose. FALSE
c) True or False: It is possible to get stuck in a local maximum in simulated annealing. TRUE
We use Newton-Raphson to find the root of an equation (where f(x) = 0). By finding the roots of f’(x) – the derivative – we find the local mins and maxes.
In the following minimax tree, alpha/beta pruning was utilized. Answer the following questions: a) The value at node A indicates the outcome will be ( no larger / no smaller ) than 3. b) Node B is pruned because: even if the outcome were larger than 5 and thus desired by MAX, MIN at the level above would always pick 3 to minimize damage c) The value at node C indicates the outcome will be ( no larger / no smaller ) than 3. d) Node D is pruned because: MIN cannot beat a score of 0 e) Node E is pruned because: While it is possible MIN could find a score less than 2, it is known already that 3 would be chose by MAX
In the figure above, assume that one and only one node can be a chance node. That is, the successor to that node is determined by a coin toss, not by the utility-maximizing choices of a player. In this version of the game, assume the minimum value of an outcome is zero.
a) Describe how the minimax exploration of the game would change if node A were the chance node. MIN cannot control outcome there. Outcome would be 3 or at least 5.
Would the value at node C change? Yes, E( ½ * 3 + ½ 5 (or something better))
b) Describe how the minimax exploration of the game would change if node D were the chance node. MIN cannot control outcome. Outcome would be 0 or something arbitrarily large. MAX might choose the new outcome > 0.
Would the value at node C change? Maybe, it depends on the leaf nodes below D (> 3)
f) Use you answer to the previous question and the KB to show the proposition T is entailed (or provide a proof that it is not entailed). Use only the inference rules of propositional logic.
~S ∨ U ∨ T ∧ ~T ~S ∨ U ∧ ~U (AND-ELIM) ~S ∧ ~P ∨ ~R ∨ S ~P ∨ ~R ∧ P (AND-ELIM) ~R ∧ R ∨ ~Q ~Q ∧ ~P ∨ Q ~P ∧ P (AND-ELIM) FALSE
Resolution (also accepted Modus Ponens)
a) All dogs are mortal ∀ x ( Dog ( x )⇒ Mortal ( x ))
b) No person buys an expensive policy ¬∃ x ( Person ( x )∧ BuysExpensivePolicy ( x ))
True or False: Diagnostic rules lead from observed effects to hidden causes?
In the following two examples, skolemize to eliminate the existential quantifier:
Crown (C 1 ) ∧ OnHead (C 1 , John)
∀ x [ Animal ( F 1 ( x ))∧¬ Loves ( x , F 1 ( x )]∨ Loves ( F 2 ( x ), x )
Knows (John, x) and Knows (x, Elizabeth) Standardize apart: Knows (John, x) and Knows (y, Elixabeth) {x/Elizabeth, y/John)
Knows (John, x) and Knows (y, Mother(y)) {x/Mother(John), y/John}
Older (Father (y), y) and Older (Father(x), John) {x/John, y/John}
Every sentence of first-order logic can be converted into an inferentially equivalent sentence of what form? Accepted lots of answers because the question wasn’t sufficiently precise… BNF, Propositional Logic, CNF, Horn Clauses, Predicate Calculus
Is it forward chaining or backward chaining that runs a greater risk of not being a complete search technique in first-order logic?
What does it mean to say that entailment for first-order logic is semidecidable?
Algorithms exist that return YES to every entailed sentence, but no algorithm exists that also returns NO to every nonentailed sentence.