Please add a new algorithm to go along with the current backtracking one. The new algorithm should be an implementation of the genetic algorithm. For this algorithm, the queen placements are randomly generated and each generation is given a score based off a heuristic to grade them. Then, the best are kept and the worst are thrown out. The best are then crossed with eachother and add a bit more randomness. This whole process should be visualized.
Please add a new algorithm to go along with the current backtracking one. The new algorithm should be an implementation of the genetic algorithm. For this algorithm, the queen placements are randomly generated and each generation is given a score based off a heuristic to grade them. Then, the best are kept and the worst are thrown out. The best are then crossed with eachother and add a bit more randomness. This whole process should be visualized.