The task is to set Q queens on a NxM chess board. I've used three different algorithms for solving the problem. The first algorithm is deterministic backtrack search, the second is a genetic algorithm and the last is the simulated annealing algorithm.