Lecture 2 - Heuristic Components of Hill Climbing Flashcards

1
Q

What are the main components of meta/hyper heuristic search/optimisation methods?

A

Representation (also can be known as encoding) of candidate solutions e.g. binary, integer array
Neighbourhood relation (move operators)
Evaluation function (Objective value)
Initialisation e.g. random
Search process (guideline)
Mechanism for escaping from local optima

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the properties/parts of representation?

A

Completeness - all solutions must be represented
Connexity - a search path must exist between any two solutions of the search space i.e. any solution can be obtained
Efficiency - the representation must be easy/fast to manipulate by the search operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 4 types of encoding?

A

Binary - 1s and 0s
Permutation - Each part is a different permutation e.g. different arrangement for the cities in TSP
Integer encoding - Each entry corresponds to an item e.g. 1 is layer 1, 2 is layer 2, etc…
Value encoding - Each entry has an associated value to it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Boolean Satisfiability Problem?

A

Given a certain amount of combinations of variables, is there an assignment of both true and false values that can make the overall equation true?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a neighbourhood?

A

A solution x is a set of solutions that can be reached from x by a simple operator (move operator/heuristic)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the Hamming Distance?

A

A measure of the amount of different moves that must be made in order to get from one solution to another e.g. if a solution took three bit flips to get to the other solution, then the Hamming distance would be 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the neighbourhood size a measure of?

A

The neighbourhood size dictates how ‘long’ the solution is e.g. if the solution is 0110, then the neighbourhood size would be 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the neighbourhood sizes when using integer/value encoding?

A

Neighbourhood size is (k-1)n, where k is the size of the alphabet, and n is the size of the solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the neighbourhood size when using permutation encoding?

A

n(n-1), where n is the size of the solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an evaluation function?

A

Can also be referred to as objective, cost, fitness, penalty.
Indicates the quality of a given solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is delta evaluation?

A

Calculate the effects of differences between current search position s and a neighbour s’ on the evaluation function value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a mutational heuristic/operator?

A

Processes a given candidate solution and generates a solution which is not guaranteed to be better than the input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a hill climbing heuristic/operator?

A

Processes a given candidate solution and generates a better or equal quality solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a hill climbing algorithm for a minimisation problem?

A

Constantly moves in the direction of decreasing level/objective value to find the lowest point of the landscape or best/near optimal solution to the problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a hill climbing algorithm for a maximisation problem?

A

Constantly moves in the direction of increasing level/objective value to find the highest point of the landscape or best/near optimal solution to the problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the different types of simple hill climbing heuristics?

A

Best improvement (Steepest descent/ascent)
First improvement (next descent/ascent)
Stochastic hill climbing - random selection/random mutation hill climbing
Random-restart (shotgun) hill climbing

17
Q

How does best improvement work?

A

Only accepts solutions that are strictly better. Ignores equal or worse solutions. After finding a better solution, will remember the bit flipped to obtain it, sets the best eval to the current eval, then reverts back to the original solution. Once this is done, it will then finish the loop, and finally flip the bit for the current solution that was marked as the best.

18
Q

How does first improvement work?

A

Like best improvement, except it doesn’t revert to the original solution after finding an improvement. It instead keeps exploring the new solution found, to see if there is any better solution further down ‘the chain’.

19
Q

How does Davis’ bit hill climbing work?

A

Generates a random permutation of numbers from 0 to the length of the solution. Then, using this permutation, it will flip the bit of the current solution at the location pointed to by the permutation’s value found at the loop counter. If the move is better, it accepts the bit flip, otherwise it reverts it.

20
Q

How does random mutation work?

A

Flips a random bit selected by a random generator between 0 to the length of the solution. If the bit flip produces a better solution, then accept it, otherwise revert the flip.

21
Q

How does a hill climbing algorithm know when to stop?

A

If target objective is known, then the search can be stopped when that target objective value is achieved.
Hill climbing could be repeatedly applied until a termination criteria is satisfied.

22
Q

What are the differences between hill climbing and random walk?

A

Hill Climbing:
Exploits promising regions
Neglects exploring a large area of the search space.
Random Walk:
Does an incredibly large amount of exploring of the general search space.
Neglects exploiting promising regions.

23
Q

What are the strengths and weaknesses of hill climbing?

A

Strengths:
Very easy to implement
Weaknesses:
Local optimum - could get stuck if all neighbouring solutions are worse or the same, as the algorithm will halt.
Plateau - If all neighbouring states are same, then the search will basically just devolve to random walk.
Ridge/valley - The search may ‘bounce’ from one side to another, making very little progress.
As a result, HC might not find the optimal solution and may get stuck at local optimum.
Usually no upper bound on computation time.
Success and failure depends on the starting point at each iteration