5 - local search algorithms Flashcards

1
Q

Local search algorithms

A

focus on finding solutions within a limited part of the solution space, making incremental improvements to a current solution until reaching a satisfactory outcome

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

Hill-climbing (greedy) search

A

keep a single “current” state and try to locally improve it

Let next= highest-valued successor of current
If value(next) < value(current) return current
Else let current= next

can get stuck in local optima (peak higher than neighbors but lower than global maximum)

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

Simulated annealing search

A

inspired by the annealing process in metallurgy, where materials are heated and then gradually cooled to remove defects. It allows for occasional moves to worse solutions to escape local optima, with the probability of such moves decreasing over time

Can escape local optima due to probabilistic acceptance of worse solutions, but Requires careful tuning of parameters

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

Genetic Algorithms

A

Generate a set of random solutions
Test each solution in the set (rank them)
Remove some bad solutions from set
Duplicate some good solutions make small changes to some of them
Until best solution is good enough

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