AI_END_TERM
AI_END_TERM
ARTIFICIAL INTELLIGENCE
Instructions:
This is a closed book exam.
Ensure neatness, crispness, and relevance.
Answers must be handwritten.
In case you need to make any assumption(s), clearly write.
Q1. The map below indicates paths (along with the efforts/costs) to a hidden treasure. There
is treasure on two different islands (so, we have to reach any one of them).
A is the island where we are currently, and the shaded red states are the locations of the treasure.
Arrows encode possible actions from each island, and numbers by the arrows represent action
costs. Note that arrows are directed; for example, A → C is a valid action, but C → A is not.
Numbers shown in diamonds are heuristic values giving an estimate cost from the given island
to a treasure.
Run each of the following search algorithms and write the following for each of the search
methods (ties (if any) should be resolved alphabetically):
The nodes that are expanded during the course of the search
The final path returned and the corresponding cost of the final path, wherever
applicable.
a) Depth-First Search (1+2)
b) Breadth-First Search (1+2)
c) Uniform-Cost Search (1+2)
d) Best first search (1+2)
(4*3 = 12)
1 of 3
Q2. Consider the following game tree, where the blue triangle node is a maximizer, and each
green circle node is a chance node. The numbers at the bottom represents the return
(reward/loss value) and those (decimal nos) on the edges indicate the weight of the return
(example: if return is 100 but its weight is 0.2, then effective value is 20).
(a) In this light, visit nodes from left to right, and evaluate the value of each of the triangle
and circle nodes. Indicate this value inside respective node, redrawing the tree in your
answer-script. (3)
(b) Considering possibility of unlimited rewards/losses, redraw the tree after pruning those
nodes that were not necessary to explore. (3)
(c) Consider that the rewards are bounded in the interval [-20, 20]. With this information, if
there is any change in pruned nodes. If no, give reasons. If yes, show the pruned tree in
this scenario. (3)
Q3. For each of the following questions, answer true or false; along with a justification for
the answer. You need to also include illustration / example / counterexample, whatever
applicable.
(a)Depth-first search always expands at least as many nodes as A∗ search with an
admissible heuristic. (1+2)
(b) Assume that for a single move, a rook can move any number of squares on a chessboard
in a straight line, either vertically or horizontally, but cannot jump over other pieces.
Manhattan distance is an admissible heuristic for the smallest number of moves to move
the rook from square A to square B. (1 + 2)
2 of 3
Q4. Examine each of the following propositions and determine if it is a
contradiction/tautology/neither contradiction nor tautology. It is mandatory to write the
detailed steps to reach your answer.
3 of 3