When looking at these problems, we can formalise them as such: The solution space, S={set of all possible solutions} A cost function, h:S→Q where h(solution)=value of solution We define a global maximum, h(sglobal)≥h(s) for all s∈S Likewise a local maximum, h(slocal)≥h(s) for all ’neighbouring’ s∈S