Solving N-Queens problem using metaheuristic techniques such as Genetic Algorithm (GA) and Particle Swarm Optimization (PSO).
Problem definition : The N-Queens problem involves placing N queens on an N x N chessboard so that no two queens threaten each other. The threatening conditions are :
- No two queens can be in the same row.
- No two queens can be in the same column.
- No two queens can be on the same diagonal.