Local Search Flashcards

1
Q

What is local search?

A

Optimisation algorithms that are used to find the best possible solution withing a given search space.

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

What is the idea behind Iterative improvement algorithms?

A

Storing a current state and trying to improve.

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

What is a hill-climbing search?

A

From a selected point, loop continuously in the direction of increasing value (towards goal) until a peak is reached.

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

What search is hill climbing similar to?

A

Greedy search. Hill-climbing is a greedy local search.

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

What is simulated annealing?

A

Variant of hill-climbing, allows “bad” moves to escape local maxima.

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

How many downhill/bad moves are allowed in simulated annealing?

A

It gradually decreases the size and frequency of a bad move. (accepts less bad moves as time goes on)

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

What are some hill-climbing variations?

A
  • Stochastic hill climbing
  • First-choice hill climbing
  • Random-restart hill climbing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is stochastic hill climbing?

A
  • Random selection among the uphill moves, ignore some neighbours
  • The selection probability can vary with the steepness of the uphill move.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is first-choice hill climbing?

A

A variant of stochastic hill climbing that generates successors randomly until a better one is found.

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

What is random-restart hill climbing?

A

Hill climbing with restarts in random places to avoid getting stuck in local maxima

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

How do we know if the best state has been reached in simulated annealing?

A

If the temperature T decreases slowly enough.

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

What is genetic algorithms?

A

Optimization techniques inspired by the principles of natural selection and genetics. Candidate solutions mutate/iteratively evolve towards an optimal solution.

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

What are the pros of genetic algorithms?

A
  • Faster (and lower memory requirements) than searching a very large search space.
  • Easy, if your candidate representation and fitness function are correct, a solution can be found without any explicit analytical work.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the cons of genetic algorithms?

A
  • Randomised: not optimal or even complete
  • Can get stuck on local maxima (crossovers can help mitigate this)
  • Hard to work out how to best represent a candidate as a bit string.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are gradient descent/ascent algorithms?

A

A modification to Hill Climbing, looks at the local gradient and takes the direction of largest change. Takes steps of size proportional to the gradient.

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

What is the advantage of gradient descent/ascent algorithms?

A

Tends to yield much faster convergence to maximum