Hills and Valleys: Success and Failure

Finding maxima or minima (hills and valleys) is a type of problem that comes across in many fields such as economics and AI (neural networks).