0% found this document useful (0 votes)
52 views4 pages

Indian Institute of Technology, Kharagpur Class Test 1, 2019-20

(1) The document is a question paper for an Artificial Intelligence class test containing 10 multiple choice and short answer questions. (2) Question 2 describes a search problem where an insect must navigate a maze-like environment to reach a goal location, while managing its limited oxygen supply. (3) Question 5 discusses running gradient descent multiple times on a large search space optimization problem, with results indicating the presence of many local optima.

Uploaded by

Tamal Dey3335
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views4 pages

Indian Institute of Technology, Kharagpur Class Test 1, 2019-20

(1) The document is a question paper for an Artificial Intelligence class test containing 10 multiple choice and short answer questions. (2) Question 2 describes a search problem where an insect must navigate a maze-like environment to reach a goal location, while managing its limited oxygen supply. (3) Question 5 discusses running gradient descent multiple times on a large search space optimization problem, with results indicating the presence of many local optima.

Uploaded by

Tamal Dey3335
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

INDIAN INSTITUTE OF TECHNOLOGY, KHARAGPUR

Class Test 1, 2019-20 Stamp/Signature of the Invigilator

QUESTION PAPER CUM ANSWER BOOKLET

Roll Number Name


Subject Number C S 6 0 0 4 5 Subject Name Artificial Intelligence
Department/Centre of the Student

Signature of the Student

To be filled in by the Examiner


Question Number 1 2 3 4 5 6 7 8 9 10 Total

Marks obtained

ANSWER ALL QUESTIONS Time = 50 minutes Total Marks = 30

1. Consider a search problem where all edges have cost 1 and the optimal solution has cost C. Let h be a heuristic
which is max{ h*  k, 0 }, where h* is the actual cost to the closest goal and k is a non-negative constant unknown
to the search algorithm. A heuristic is monotone if at each node, n, with successor, m, h(n) ≤ h(m) + c(n,m).
[ 4+4+4 = 12 marks]
(a) Write True/False in the boxes for the following statements:

(i) h is admissible True

(ii) h is monotone True

(iii) A* search without closed list will be optimal True

(iv) A* search with closed list will be optimal True

(b) Which of the following is the most reasonable description of how many more nodes will be expanded in the
worst case with heuristic h compared to h*, as a function of k? [Assume a branching factor of b]

(i) Constant in k (ii) Linear in k (iii) Exponential in k (iv) Unbounded

Answer with brief justification:

Exponential in k. At k = 0: only the d nodes on an optimal path to the closest goal are expanded for
search depth (= optimal path length) d. At k = max(h); the problem reduces to uninformed search
and BFS expands bd nodes for branching factor b . In general, all nodes within distance k of the
closest goal will have heuristic h = 0 and uninformed search may expand them. Note that search
reduces to BFS since A* with h = 0 is UCS and in this search problem all edges have cost 1 so path
cost = path length.
Page 2 of 4

(c) Now consider the same search problem, but with a heuristic h, which is 0 at all states that lie along an optimal
path to a goal and h* elsewhere. Write True/False for the following statements in the boxes.

(i) h is admissible True

(ii) h is monotone False

(iii) A* using h without closed list will be optimal True

(iv) A* using h with closed list will be optimal True

2. We have to help the insect in a rectangular maze-like environment with dimensions


M  N, as shown to the right. At each time step, the insect can move into a free
adjacent square or stay in its current location. All actions have cost 1.

In this particular case, the insect must pass through a series of partially flooded
tunnels. Flooded squares are lightly shaded. The insect can hold its breath for k time
steps in a row. Moving into a flooded square requires our insect to expend 1 unit of
air, while moving into a free square refills its air supply.

The state of the insect at any point of time can be defined as  x, y, z , where x and y are the coordinates of its present
position in the maze, that is, column number and row number respectively. What do you think is z?
[4 marks]
Answer with brief justification:

The remaining breath of the insect. The insect needs to reach X without reaching any state
where it has zero breath left.

3. Complete the following simulated annealing function for a maximization problem: [ 4 marks ]

function SIMULATED-ANNEALING( problem, schedule )


current  INITIAL-STATE[ problem ]
for t  1 to  do
T  schedule[ t ]
if T = 0 then return current
next  a randomly selected successor of current
E  VALUE[ next ] – VALUE[ current ]

if E > 0 then current  next

∆𝑬⁄
else current  next with probability 𝒆 𝑻
Page 3 of 4

4. Consider the game tree in the figure, which contains max nodes (square), min nodes (round), and chance nodes
(oval). At the chance nodes, the probability of each outcome is equally likely. You represent the max nodes and
your opponent represents the min nodes.

(a) Your opponent is rational if she always goes for the move with guaranteed minimum returns. Under the
assumption that your opponent is rational, indicate the values propagated to the root node by its children in the
empty boxes provided besides the edges.

(b) Is pruning possible if nodes are evaluated in left-to-right order? If so, cross out the branches that may be pruned.

[ 3+3= 6 marks ]

20 30

16
20 ?

16 ? 30

18 12 40

50 60

5. You are given a maximization problem with a search space of size 1012. You decide to run Gradient Descent 1000
times, each time with a randomly selected starting point. The lowest value produced by your 1000 runs is 1.3, the
highest value is 4.9, and the average is 3.2. The algorithm on average takes 5 iterations to converge and return a
result.
[ 2+2 = 4 marks]
(a) Will you be justified in reporting 4.9 as the global optimum? Explain your answer!

No, because my runs are very quickly converging to significantly different values, indicating that the
search landscape contains many local optima. Gradient Descent is not an appropriate search algorithm
for this type of search landscape, and therefore it is highly unlikely that I have actually found the
global optimum.

(b) If you were asked to validate your result with further experiments, which local search algorithms would you use
and why?

For this type of search landscape containing many local optima, a search algorithm with the ability to
escape local optima is needed such as stochastic beam search, simulated annealing, or evolutionary
algorithms.
Page 4 of 4

ROUGH WORK

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy