Docsity

Heuristic - Artificial Intelligence - Old Exam Paper, Exams of Artificial Intelligence

Toggle sidebar
bg1
Page 1 of 6
CORK INSTITUTE OF TECHNOLOGY
INSTITIƚID TEICNEOLAƍOCHTA CHORCAƍ
Semester 2 Examinations 2011
Module Title: Artificial Intelligence
Module Code: COMP9004
School: Science and Informatics
Programme Title: M.Sc. in Software Development
Programme Code: KSDEV_9
External Examiner(s): Dr. T. Dowling
Internal Examiner(s): Dr. J. Stynes
Instructions: Answer any four questions. Show all work.
Duration: 2 hours
Sitting: Semester 2 2011
Requirements for this examination:
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the
correct examination paper.
If in doubt please contact an Invigilator.
pf3
pf4
pf5

Partial preview of the text

Download Heuristic - Artificial Intelligence - Old Exam Paper and more Exams Artificial Intelligence in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIƚID TEICNEOLAƍOCHTA CHORCAƍ

Semester 2 Examinations 2011

Module Title: Artificial Intelligence

Module Code: COMP

School: Science and Informatics

Programme Title: M.Sc. in Software Development

Programme Code: KSDEV_

External Examiner(s): Dr. T. Dowling Internal Examiner(s): Dr. J. Stynes

Instructions: Answer any four questions. Show all work.

Duration: 2 hours

Sitting: Semester 2 2011

Requirements for this examination:

Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination paper. If in doubt please contact an Invigilator.

Q1. Consider the following problem: Water jugs A and B have capacity 4 and 7 litres respectively. Assume the following constraints: A and B are initially empty; the jugs are irregularly shaped so it is not possible to measure any intermediate amount of water in the jug; all or part of the contents of a jug may be poured into the other jug or emptied down the drain; a tap can be used to fill a jug with water. Does there exist a sequence of pouring which leaves exactly 5 litres of water in jug B? (a) Present two different ways of modelling this problem and explain how the problem can be solved in each case. Indicate the main features of each approach. (18 marks) (b) Provide a complete trace of the problem solving process using one of the models presented in part (a). (7 marks)

Q2. Apply the A* algorithm to find a shortest path from town A to town Z (see Figure 1) using the straight-line distance between each town and town Z as the heuristic at each node. These straight-line distances to Z are listed in the following table:

A B C D E F G H I J K L Z

(a) Draw the search tree for your solution. Show the order in which the nodes were expanded and indicate the cost of each partial solution path. (15 marks) (b) Indicate the optimal route found and the cost of this route. (2 marks) (c) Can the algorithm simply use the heuristic at the terminal node of each partial solution path to determine the next node to expand? Justify your answer. (4 marks) (d) When may A* fail to find an optimal path? Explain. (4 marks)

must be >= 0 at any interval and the maximum loads expected during the intervals are 80, 90, 65 and 60 mw. How can a genetic algorithm be used to solve the problem? In particular, i. What is a chromosome in this application? What is a gene? ii. What is the genes pool? iii. Define a fitness function and apply it to an example chromosome. iv. Construct appropriate genetic operators to make crossover and mutation work correctly. Illustrate with examples. (16 marks)

Q5. (a) Transform the following expression into clause form: (  a  b  c q(a,b,c) ) ļ‚® ( ļƒ˜ļ€¤ a {  b [ p(b,a) ļ‚® q(a,b) ] } ) (10 marks) (b) Which of the following are complementary literals? Justify your answer. (i) likes(X,Y,Z); likes(mary, ann) (ii) talk(A,B); talk(B,A) (iii) dive(A,B,C); dive(mary,atlantic, f(C)) (6 marks) (c) Professors are smart or devious. Bill is a professor. Bill is not devious. Provide a resolution proof that Bill is smart. (9 marks)

Q6. (a) Characterize a good conflict resolution strategy in production systems. (5 marks)

(b) Which factors contribute to possible inefficiencies in early pattern matching? How was this addressed? (8 marks) (c) How do semantic nets handle quantified statements? For example, how would the statements ā€œevery dog has bitten every milkmanā€ and ā€œmy dog woof has bitten every milkman in bishopstownā€ be represented as semantic nets? (12 marks)

Figure 1

Graph G (not drawn to scale).

B J

L

G

I

F^ Z

E

D

H

C

K

A