



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Semester 1 Examinations 2008/
Module Code: COMP
School: School of Computing & Mathematics
Programme Title: Bachelor of Science (Honours) in Software Development - Award Bachelor of Science (Honours) in Software Development & Computer Networking – Award
Programme Code: KSDEV_8_Y KDNET_8_Y
External Examiner(s): Dr. M. O Cinneide Internal Examiner(s): Dr. J. Stynes
Instructions: Answer four questions. Show all work.
Duration: 2 hours
Sitting: Winter 2008
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. (a) How do the searching techniques known as the British Museum and Branch and Bound work? (5 marks)
(b) Briefly outline the steps in the A* algorithm. (6 marks)
(c) Apply A* to find an optimal path in the search space (Figure 1). Provide a full trace of the algorithm. Assume that s is the start node and g is a goal node in the space. The arcs are labelled by their costs and the nodes are labelled by their heuristics. (8 marks)
(d) Why did the algorithm fail to find an optimal path in this case? Justify your answer. What is the optimal path? (6 marks)
g
a
b c
Figure 1
Q4. (a) How are Game Problems similar/different to State Space Search problems? (7 marks)
(b) Outline the minimax algorithm for searching game trees. (6 marks)
(c) Apply it to the game tree (Figure 2) in which static scores are from the maximising player’s point of view. Which move should be chosen? (4 marks)
(d) The algorithm can be improved by selectively pruning unpromising parts of the graph using the alpha-beta pruning technique. In this case, which nodes need not be examined in a left to right alpha-beta pruning? Which nodes need not be examined in a right to left alpha-beta pruning? (8 marks)
a
b c d
e f g h i j k l
m n o
p q r α
z (^) δ
β
s t u v w x y θ 9 8 5 5 2 3 2 2 4 3 7
Figure 2