Professional Documents
Culture Documents
FACULTY OF COMPUTING
[3 x 10.0 = 30.0]
PART I [ 10 Marks]
1. Using Magic Square with N = 13. Solve it by hand showing the algorithm used
firstly and then applying it step by step
2. Using TicTacToe concept, design 4 winning strategies for X if it were X’s turn
4. List the ways to Evaluate the performance of a search algorithm in four ways:
5. Using the Closed and Opened Arrays, Calculate following search methods if start
= 1 and goal = 12
Page 1 of 4
a. Breadth-first: b. Depth-limited: c. Iterative deepening e. Lowest-Cost
PART II [ 10 Marks]
1. Compute time and space complexities If d = 6 and b =10
a. BFS: b. DFS: c. Iterative deepening d. Lowest-Cost-First Search
2. Show How many solutions of all the possible legal assignment of the following
variables: How many possible worlds can be found. Note: show the formula and
the output
b. If 4 Octal variables
c. If 2 Decimal variables
d. If 5 Binary variables
3. Using CSP, assume you have the variables A, B, and C, each with domain {1, 2, 3,
4}. Suppose the constraints are (A < B) (B < C). Show the possible legal
assignment using search tree
5. Using MIN and Max game with 9 Coins. Each player must divide the pile of 9 Coins
into two non-empty unequal piles. The player who can’t do that loses. Show the
solution
Page 2 of 4
6. Using Variable Elevation concept, Consider a CSP that contains the variables X, Y,
and Z, each with domain 3, 4, 5, 6}. Suppose the constraints that involve B are A
< B and B < C. Show eliminated solution
3. True/ False: Breadth-first and depth-first searches can find paths in graphs
without any extra knowledge beyond the graph[____].
5. Write the win turns for a 25 pick stick game (for a computer and a user). You
decide the minimum and maximum sticks to be picked at a time and whether a
PC or the user has to win. Note: show your move result as a table.
Page 3 of 4
PART IV [ 10 MARKS ]
1. Write the win turns for a 13 pick pennies’ for MAX and MIN
4. There are five persons whose weights are 100K, 50K,100k, 50K, 100K respectively
on the left bank of a river. There is one boat which can hold only 100k weight
each and every time in every direction. Goal: Find a way to get everyone to the
right bank of the river.
5. Using the Delivery Robot concept with the class map, show how to convert state
space into Constraint Graph
Page 4 of 4