statistical mechanics, algorithms and computations