The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Question 1
Â
(a) Nim is a two-player game The rules are as follows.
Â
The game starts with a single stack of 7 tokens. At each move a player selects one stack and divides it into two non-empty, non-equal stacks. A player who is unable to move loses the game.
Â
Draw the complete search tree for nim.
Â
(10)
Â
(b) Assume two players, min and max, play nim (as described above). Min plays first.
Â
If a terminal state in the search tree developed above is a win for min, a utility function of zero is assigned to that state. A utility function of 1 is assigned to a state if max wins the game.
Â
Apply the minimax algorithm to the search tree to assign utility functions to all states in the search tree.
Â
(3)
Â
(c) If both min and max play a perfect game, who will win? Explain your answer.
Â
(3)
Â
(d) Given the following search tree, apply the alpha-beta pruning algorithm to it and show the search tree that would be built by this algorithm. Make sure that you show where the alpha and beta cuts are applied and which parts of the search tree are pruned as a result.
(9)
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Question 2
Â
a) Given the following parents, P1Â and P2, and the template T
Â
|
P1 |
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
|
P2 |
E |
F |
J |
H |
B |
C |
I |
A |
D |
G |
|
T |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
1 |
0 |
1 |
Â
Â
Show how the following crossover operators work
uniform crossover
order-based crossover
Â
with regards to genetic algorithms
Â
(8)
Â
Â
Use this problem description for parts b to e.
Assume we have the following function
Â
f(x) = x3Â - 60 * x2Â + 900 * x +100
Â
where x is constrained to 0..31. We wish to maximize f(x) (the optimal is )
Using a binary representation we can represent x using five binary digits.
Â
b) Given the following four chromosomes give the values for x and f(x).
Â
|
Chromosome |
Binary String |
|
P1 |
11100 |
|
P2 |
01111 |
|
P3 |
10111 |
|
P4 |
00100 |
Â
(2)
Â
c) If P3 and P2 are chosen as parents and we apply one point crossover show the resulting children, C1 and C2. Use a crossover point of 1 (where 0 is to the very left of the chromosome)
Do the same using P4Â and P2Â with a crossover point of 2 and create C3Â and C4
Â
(6)
d) Calculate the value of x and f(x) for C1..C4.
Â
(2)
Â
e) Assume the initial population was x={17, 21, 4 and 28}. Using one-point crossover, what is the probability of finding the optimal solution? Explain your reasons.
Â
(7)
Â
Â
Question 3
Â
Â
Simulated annealing is an algorithm that always accepts better moves but also accepts worse with some probability
Â
a)
Â
Show a simulated annealing algorithm
Â
(7)
Â
What the probability of accepting the following moves? Assume the problem is trying to maximise the objective function.
Â
|
Current Evaluation |
Neighbourhood Evaluation |
Current Temperature |
|
100 |
95 |
20 |
|
350 |
325 |
10 |
|
23 |
54 |
276 |
|
19 |
5 |
3 |
Â
Â
(5)
Â
b)
Â
One aspect of a simulated annealing cooling schedule is the temperature. Discuss the following
Â
What is the effect of having the starting temperature too high or too low?
Â
(4)
Â
How do you decide on a suitable starting temperature?
Â
(6)
Â
How do we decide on a final temperature?
Â
(3)
Â
Â
Â
Question 4
Â
a) Briefly describe the Turing Test
Â
(6)
Â
b) Briefly describe the Chinese Room Experiment
Â
(6)
Â
c) Do you agree with the Chinese Room argument that if a computer passes the Turing Test then it does not prove that the computer is intelligent? State your reasons.
Â
(13)
Â
Â
Â
Question 5
Â
a) John Conway’s Game of Life and Craig Reynold’s Boids are, arguably, examples of artificial life. What, in your opinion, would constitute artificial life and what problems would it cause if we ever created artificial life?
Â
(10)
Â
b) A simplified version of blackjack can be described as follows.
Blackjack is a two player game comprising of a dealer and a player. The dealer deals two cards (from a normal pack of 52 cards) to the player and one card to himself. All cards are dealt face up. All cards take their face value, except Jack, Queen and King which count as 10 and Aces which can count as one or eleven.
The aim for the player is to draw as many cards as he/she wishes (zero if they wish) in order to get as close as possible to 21 without exceeding 21.
Â
Outline how you would develop a computer program that was capable of learning how to play blackjack, the aim being that it improves its play over time.
Â
(15)
Â
Â
Question 6
Â
Â
a) Describe how ants are able to find the shortest path to a food source.
Â
(4)
Â
b) Using the travelling salesman problem as an example, define the following terms with relation to ant algorithms
Â
Visibility
Evaporation
Transition Probability
Â
(9)
Â
c) Many of the search methods presented in the lectures had as their basis some aspect of the real world. Propose an idea for a search algorithm based on some natural process or animal behaviour. Discuss how your method could be realised in a computer implementation in solving, say, the TSP.
Â
Â
12 marks
Â
-----------