Document
Document
Document
Q2. (a) Consider the 8-puzzle problem described in the textbook and homework
assignments. We would like to search for a solution using A* - search. Describe the
following aspects of the problem formulation: a) states, b) successor function,
c) goal test, d) step cost, and e) path cost. [8 marks]
(b) For A*-search the evaluation function, J(n), consists of the path cost, g(n), plus the
heuristic function, h(n). 'We will use the Manhattan distance between the current
state and the goal state to be the heuristic function. Explain when a heuristic
function is admissible and prove this fact for the Manhattan distance heuristic.
[5 marks]
(c) Describe when a heuristic is consistent and proof this for the lVlanhattan distance
heuristic. [2 marks]
(d) For each of the following activities, give a PEAS description of the task environment
and characterize it in terms of observability, number of agents, randomness,
dynamism and continuity.
i. Playing soccer. [5 marks]
ii. Ta.xi driving agent [5 marks]
Q4. (a) Name and describe the main features of Genetic Algorithms (GA). [10 marks]
(b) State the main difference betwwen Genetic algorithms and Simulated annealing
methods of optimization. [5 marks]
(c) Assume we have the following test function for genetic algorithm optimization
Q5. (a) What is Machine Learning? Give five (5) application areas. [7 marks]
(b) \~hat is difference between supervised and unsupervised learning algorithms? Give
an example each of both supervised and unsupervised learning algorithms [4 marks]
(c) A tennis player came on a vacation. For a fortnight, she played tennis given the
following weather conditions as given in Table 1 below.
Day Outlook Temperature Humidity Wind PlayTennis
01 Sunny Hot High Weak No
02 Sunny Hot High Strong No
03 Overcast Hot High Weak Yes
04 Rain Mild High Weak Yes
05 Rain Cool Normal Weak Yes
06 Rain Cool Normal Strong No
07 Overcast Cool Nannal Strong Yes
08 Sunny Mild High Weak No
09 Sunny Cool Normal Weak Yes
OlD Rain lvlild Nonnal Weak Yes
011 Sunny Mild Normal Strong Yes
012 Overcast Mild High Strong Yes
013 Overcast Hot Normal Weak Yes
014 Rain Mild High Strong No
I. Use the Iterative Oichotomiser 3 (103) algorithm to build a decision tree from
the given tennis dataset. You should build a tree to predict PlayTennis, based
on the other attributes (except the Day attribute). Show all of your work,
calculations, and decisions as you build the tree. [25 marks]
ii. On the eve of 015 the weather forecast showed was [Outlook: Rain,
Temperature: Hot, Humidity: High, Wind: Weak]. Predict whether the athlete
will play tennis on that day. [4 marks]
Ill. What is the classification accuracy'! [3 marks]
P(C I F) =0.8
P(F) =0.1 P(C I --, F) =0.3
1. Write dOWll the juint prolm\.Jility table specified by the BaYI::sian llet\v(Jrk.[~ nlarksj
(b) We have a bag of three biased coins a, b, and c with probabilities of coming up
heads of 20%, 60%, and 80%, respectively. One coin is drawn randomly from the
bag (with equal likelihood of drawing each of the three coins), and then the coin is
flipped three tinles to generate thl~ OutCOlll€S XI, X 2 ) and .IYJ .
I. Draw the Bayesian network corresponding to this setup and deline the necessary
CPTs.
[5 marks]
11. Calculate which coin was most likely to have been drawn from the bag if the
expression for the probability that the temperature of the core is too high, in
terms of the various conditional probabilities in the network.
[5 marks]