Docsity

Non-Deterministic - Artificial Intelligence - Exam, Exams of Artificial Intelligence

Toggle sidebar
bg1
1
CS 416, Artificial Intelligence
Midterm Examination
Fall 2004
Name:__________________________
This is a closed book, closed note exam. All questions and subquestions are equally
weighted.
Introductory Material
1) True or False: In this course, we are studying rational agents and what it means to
think rationally. FALSE… *ACT* Rationally
2) Provide a synonym for stochastic: Random, Markov, probabilistic, non-deterministic
Uninformed Search
3) When comparing tree-search algorithms, we measure the number of nodes expanded.
How many nodes are expanded (in the worst case) by each of the following search
techniques when searching a tree with branching factor b to find a goal at a depth of d?
You can uses ellipses in your answer to indicate a sequence. Do not use big Oh notation.
a) Breadth-first search: b+b2+b3+ … + bd + bd+1 - b
b) Depth-first search: infinity
c) Depth-limited search (limit = d): b + b2 + … + bd
d) Iterative deepening depth-first search: db + (d-1)b2 + … bd
Informed Search
4) What is the definition of an admissible heuristic?
Never over estimates the cost to the goal.
5) True or False: The greedy best-first search algorithm is complete.
FALSE: infinite loops are possible
pf3
pf4
pf5
pf8

Partial preview of the text

Download Non-Deterministic - Artificial Intelligence - Exam and more Exams Artificial Intelligence in PDF only on Docsity!

CS 416, Artificial Intelligence

Midterm Examination

Fall 2004

Name:__________________________

This is a closed book, closed note exam. All questions and subquestions are equally weighted.

Introductory Material

  1. True or False : In this course, we are studying rational agents and what it means to think rationally. FALSE… ACT Rationally

  2. Provide a synonym for stochastic: Random, Markov, probabilistic, non-deterministic

Uninformed Search

  1. When comparing tree-search algorithms, we measure the number of nodes expanded. How many nodes are expanded (in the worst case) by each of the following search techniques when searching a tree with branching factor b to find a goal at a depth of d? You can uses ellipses in your answer to indicate a sequence. Do not use big Oh notation.

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

Informed Search

  1. What is the definition of an admissible heuristic?

Never over estimates the cost to the goal.

  1. True or False : The greedy best-first search algorithm is complete.

FALSE: infinite loops are possible

  1. What complication regarding completeness can be caused when augmenting A* to include the provision for deleting revisited states?

  2. potential loss of optimality, but not completeness

  3. complicated to make sure the right one is deleted

  4. shorter paths are possible and longer paths are possible

  5. thrashing

  6. 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:

  • Perform the A* algorithm on this graph, filling in the table below. You should not need all the lines in the table. Indicate the f, g , and h values of each node on the queue as shown in the first two rows of the table. You need not write the contents of the (priority) queue in order in the table.

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.

  • Show the path found by the A* algorithm on the graph above.

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

  1. What is an example of a relaxed problem for the 15-puzzle?

Fewer tiles, Manhattan distance, misplaced tiles, slide tiles over others

  1. What is a shortcoming of hill climbing algorithms?

Local mins and plateaus

  1. In each iteration of simulated annealing, only one move is evaluated. a) Specifically, how is that one chosen? At random

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

  1. Newton-Raphson is used to find what feature of an equation? How is this useful in searching for optimal solutions?

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.

Adversarial Games

  1. 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

  2. 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

First-Order Logic

  1. What single inference rule is complete when partnered with a complete search algorithm?

Resolution (also accepted Modus Ponens)

  1. Represent the following sentences in first order logic:

a) All dogs are mortal ∀ x ( Dog ( x )⇒ Mortal ( x ))

b) No person buys an expensive policy ¬∃ x ( Person ( x )∧ BuysExpensivePolicy ( x ))

  1. True or False: Diagnostic rules lead from observed effects to hidden causes?

  2. 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 )

  1. In the following two examples, provide a unification if one exists. Label all cases where you standardize sentences apart in order to complete the unification:

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}

  1. 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

  2. Is it forward chaining or backward chaining that runs a greater risk of not being a complete search technique in first-order logic?

  3. 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.