Optimization is an important topic in physics, operations research and computer science. In the current era of big data, text analytics and data mining involve a lot of machine learning algorithms, which is essentially optimization algorithms. This slideshare shows how optimization is being used in statistical physics. This sheds a light of how ideas in statistical physics can be applied in computer science.