Local Search Flashcards
What does local search return?
A state, not a path like normal search algorithms
What are stopping criteria for local search?
Heuristic value, goal test and number of runs.
What is iterative best improvement strategy?
A local search strategy that always selects a successor that minimises a heursitic function which is typically the loss or gain. It performs greedy choice.
What is hill climbing?
Maximising a goal value.
What is greedy descent?
Minimising a goal value.
How does hill climbing work?
Start wherever and iteratively move to the next best neighbouring state. Quit when no better nieghbours exist.
What are the drawbacks of hill-climbing?
Depending on inital state, can get stuck in a local maxima
What is hill climbing with sideways moves?
Uses the same procedure as hill climbing, except when there are no uphill successors, the algorithm moves sideways. Introduce a parameter m so that only m sideways moves can be performed.
How does sideways moves perform on n-queens problem.
With no sideways moves, the algorithm succeeds only 14% of the time. With sideways moves, the algorithm succeeds 94% of the time, but takes more moves to find a solution.
What is enforced hill climbing?
Performs breadth-first search from a local optima to find the next state with better h function. Good at escaping local optima.
What is tabu search?
It maintains a fixed-length queue of the most recent states. IT never makes a step to a state that is on the tabu list.
What is stochastic search?
Local search strategies where randomization plays a prominent role.
What is random-restart hill climbing?
Series of hill climbing searches with random restarts. If stuck or taking too long, restart from a random starting candidate.
How to calculate the expected number of runs of random-restart hill climbing?
Suppose a single attempt of greedy descent has a success rate of p. Then the expected number of tries is 1/p.
What is first-choice hill climbing?
An implementation of stochastic hill climbing. Generating successors randomly until it finds one that is uphill. Doesn’t waste time generating all successors.