Go home

Local Search

Overview

Hill Climbing

n{n}-Queens

Linear regression

Traveling Salesman

Pros and Cons of Local Search

Pros:

Cons:

Local Optima

Methods to get out of local optima:

Simulated Annealing

Idea comes from metal: as metal cools, it becomes harder for molecules to move around as the temperature decreases, resolving internal stresses gradually.

Allow moving to a worse state with a small probability, but have this probability decrease as the process continues.

  1. Initialize a temperature T{T} and a decay multiplier d{d}
  2. Allow moving to a worse state with probability ee(n)e(n)/T{e^{{e(n)-e(n^\prime)}/{T}}} where the e{e} in the exponent is the energy function (objective function to minimize)
  3. Probability decays exponentially as the process continues

Local Beam Search

Similar to regular beam search, except keep the best k{k} options across all explored branches. This is essentially running k{k} searches in parallel, but the searches can communicate with one another.

Genetic Algorithms

Just like evolution in biology, keeps the best configurations and combines them with random mutations to achieve a better solution.