Problem representation:

  • different problem states: … starting state, … set of final states
  • search space: graph of states, reachable in a final number of steps -

Neighbourhood function: step transition between neighbouring states, can be infinite possible connections -
Quality function: quality of a state as an optimization parameter

  • Global optimum: / … returns argument, not value
  • Local optimum: no better neighbour -

Algorithm:

  • random starting state/solution optimize by choosing best neighbour (repeat)
  • repeat algorithm with different starting solutions and return the overall best solution

Complexity of specific algorithm is determined by complexity of transformation (getting neighbours)
Problem: low probability of finding global extreme (optimum)

Gradient descent

Efficient algorithm for derivative functions: maximization / minimization: move in the direction /

Step size: parameter of how fast we move (problem: find better optimums or overstep into some local optimum)

Metropolis algorithm

Generalization of greedy LS:

  • better neighbour exists move to it
  • otherwise choose random neighbours and move (better neighbours with larger probability)

Simulated annealing: lower temperature/acceptance over time: (typically )

  • Over time comes close to stochastic search turns into deterministic LS

Larger temperature larger probability for acceptance of worse neighbour
Slower decreasing: searching larger portion of search space better probability of finding global optimum, but takes more time

Neighbourhood selection

Until now: 1-flip neighbourhood
Considering neighbourhood selection ways:

  • large enough not to stop too fast in a local extreme
  • small enough not to be too computationally expensive

K-L heuristics/neighbourhood: getting neighbourhood partitions - such that and :

  • Start with solution
  • Phase 1: Flip the single best node (that maximizes new solution , even if solution is lower than current one) and mark it
  • Phase k: We have partitions and marked nodes, repeating as above
  • Phase n: All nodes are marked, final solution is

K-L neighborhoods are all the partitions from all phases -

Best response dynamic

Each agent searches for best solution for himself
Nash equilibrium: no agent has initiative to change its configuration (stable state)

  • There can be multiple possible Nash equilibriums

Social choice: configuration that minimizes the total cost of agents

  • Social choice can be unstable, so it’s not always achieved

Total possible cost of Nash equilibrium selfishness compared to social choice is at max instead of