Take a look at this article from Plus Magazine about using algorithms to solve optimisation problems.