Initialise with 10 random solutions.
Repeat forever
{
Pick the best solution.
Make 10 new solutions by making small or no changes to it.
}
might be a bad heuristic because:
Go out with n partners of fitness > f Marry the next partner you find of fitness > gwhere fitness is ranked by the individual out of 10.
Temperature 22 degrees, pressure 1000 mb. Rain. Temperature 15 degrees, pressure 990 mb. No rain.Then the question is:
Temperature 17 degrees, pressure 1010 mb. Will there be rain?We predict by Hamming distance to the nearest exemplar, (a) with pressure in millibars, (b) with pressure in bars. What does it predict?
where T is the "temperature".![]()
i 1 2 3 4 f(i) 0 5 4 5If we use a "Soft max" probability distribution with a "temperature" parameter T to choose who reproduces, then as T -> infinity the probability of each individual reproducing goes to:
0 1 0 0
0 1/2 0 1/2
0 1 0 1
0 5/14 4/14 5/14
0 0.9 0.1 0.9
1/4 1/4 1/4 1/4
respectively.
i 1 2 3 4 f(i) 0 -1 -2 -1If we use a "Soft max" probability distribution with a "temperature" parameter T to choose who reproduces, then as T -> 0 the probability of each individual reproducing goes to:
0 0 1 0
0 1 1 1
0 1/4 1/2 1/4
0 1/2 0 1/2
0 1 0 1
1 0 0 0
1/4 1/4 1/4 1/4
respectively.
| 1(a) |
Explain the Hamming distance as a measure of difference between
2 vectors.
|
[6 marks] |
| 1(b) |
Given exemplars:
Then the question is:Temperature 22 degrees. No rain. Temperature 15 degrees. Rain. Explain your answer.Temperature 17 degrees. Will there be rain?
|
[6 marks] |
| 1(c) |
Say we gathered more weather data.
Let the exemplars be:
Then the question is:Temperature 22 degrees, pressure 1000 mb. No rain. Temperature 15 degrees, pressure 990 mb. Rain. Explain your answer. What would the Hamming distance predict?Temperature 17 degrees, pressure 1010 mb. Will there be rain?
|
[6 marks] |
| 1(d) | If we use units of 1000 mb (units of K mb) to measure pressure, so that, e.g., 1010 mb is written as 1.010 K mb, then will there be rain? What would the Hamming distance predict? | [6 marks] |
| 1(e) |
What conclusion do you draw from the above?
|
[6 marks] |
[Total marks: 30]
| 2(a) | Explain how Artificial Intelligence can be considered as a form of search. | [5 marks] |
| 2(b) | Briefly explain what a search approach to solving a problem would look like. | [5 marks] |
| 2(c) | Give an example of a simple form of heuristic search. | [5 marks] |
| 2(d) | In 1(c), give an example of where your heuristic search might converge to a local optimum rather than the global optimum. | [5 marks] |
| 2(e) | Give two examples of simple heuristics a human could use for mate search. Discuss how they could fail. | [5 marks] |
| 2(f) | Explain the concept of a metaheuristic. | [5 marks] |
[Total marks: 30]
| 3(a) | Explain "Algorithm A" (Best-first search with distance from start). | [5 marks] |
| 3(b) |
In 1(a), explain how the "distance from start" component
compensates for an inaccurate heuristic evaluation function.
|
[5 marks] |
| 3(c) | Breadth-first search is admissible. Explain. | [5 marks] |
| 3(d) | Explain the concept of an A* algorithm. | [5 marks] |
| 3(e) | All A* algorithms are admissible. Explain. | [5 marks] |
| 3(f) | Explain that while it is in general easy to find an A* algorithm, it may be difficult to find an A* algorithm that is practical. | [5 marks] |
[Total marks: 30]
| 4(a) | Explain the concept of a genetic algorithm (GA). | [5 marks] |
| 4(b) | Describe the core algorithm of the genetic algorithm. List everything that needs to be defined precisely in order to code the algorithm. | [5 marks] |
| 4(c) | A Genetic Algorithm is search by "a population of hill-climbers". Explain. Why is this better than / different to search by a single hill-climber? | [5 marks] |
| 4(d) | In a genetic algorithm (GA), if the chromosome is a binary string of length n, what range of integers can this encode? | [5 marks] |
| 4(e) | In (d), how could you use this chromosome to encode a floating-point number in the range a to b? | [5 marks] |
| 4(f) | In (e), what does the length of the bitstring represent? | [5 marks] |
[Total marks: 30]
Class:_____________________
Seat No:_____________________
| Question | 1. | 2. | 3. | 4. | 5. | 6. | 7. | 8. |
| 1 | ||||||||
| 2 | ||||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| 6 | ||||||||
| 7 | ||||||||
| 8 | ||||||||
| 9 | ||||||||
| 10 |