Topology of search strategies

Solution generation

Search space navigation

Deterministic search: identify exactly the solution

Stochastic search: approximate the solution

Search space exploration:

Local search strategies (LSS)

Hill Climbing

Algorithm

function HC(S)
	x = s1
	x* = x
	k = 0
	
	while (not termination criteria) o
		k = k+1
		N = all neighbours of X
		s = best solution from N
	
		if (f(s) is better than f(x)) then
			x = s
		else
			state
		end if
	end while
	x* = x
	return x*
end function
Advantages Disadvantages
simple implementation → solution approximation evaluation function is difficult to be approximated
does not require memory as it does not come back into the previous state if a large number of moves are executed, the algorithm is inefficient and it can block in a local optimum, on a plateau (evaluation is constant), on a peak

Simulated Annealing