Local Search and Optimization Flashcards
optimization problem
a problem where we must return a solution but our actions are unconstrained and we can numerically measure how much we like any state
How can some search problems be viewed as optimization problems?
if we are willing to accept an imperfect goal state
transition model in local search
- it is arbitrary
- just make one up, the model is irrelevant to the solution
local search
- frontier is replaced with a single best node
- not every possibility is explored
neighbourhood of S (A(s))
the set of adjacent states to some state s
what are the performance properties of local search?
Complete: trivially, yes because sub-optimal states are accepted as solutions
Optimal: no
Time: O(inf) or O(1)
Space: O(1)
random guessing
- ignore transition model and keep generating random states
- remember only the best one and return when time runs out
random search
- choose a state from A(s) at random, keep chosen state if better than previous best state otherwise stay with previous best
when is a state good enough in random search?
when you run out of time
hill-climbing
- choose the state in A(s) that’s the best using f
-> if maximizing: f(s) is biggest
-> if minimizing: f(s) is smallest
When is a state good enough in hill-climbing?
when no adjacent state is better
local max/min
when no adjacent state is better than where we are now
random restart hill-climbing
repeat hill-climbing, with new random initial state
- restart at any local optimum state or after a time limit
simulated annealing
combines hill-climbing with a limited random walk
- go up hill when you can, risk down hill moves based on size of downhill move