Go home

Local Search

Overview

Hill Climbing

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 and a decay multiplier d
  2. Allow moving to a worse state with probability ee(n)e(n)/T where the 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 options across all explored branches. This is essentially running 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.