Simulated annealing algorithm applied to 8 queens problem.