The N-Queen problem is a classical combinatorial optimization and constraint satisfaction problem that involves placing N queens on an N × N chessboard such that no two queens threaten each other. Due to its exponential search space and increasing computational complexity with larger board sizes, the problem serves as an important benchmark for evaluating the efficiency of heuristic and metaheuristic optimization techniques. This study presents a comprehensive performance analysis of the Simulated Annealing (SA) optimization approach for solving the N-Queen problem across varying board dimensions. The proposed methodology models the N-Queen problem as an optimization task by defining an objective function that minimizes the number of conflicting queen pairs. Simulated Annealing is employed to iteratively explore the solution space, allowing probabilistic acceptance of suboptimal solutions to escape local minima. Key parameters, including initial temperature, cooling schedule, and termination criteria, are systematically tuned to evaluate their impact on convergence speed and solution quality. Experimental results demonstrate that the SA-based approach effectively finds valid solutions for large values of N with high success rates and reduced computational effort compared to exhaustive and deterministic methods. Performance metrics such as solution accuracy, convergence time, number of iterations, and conflict reduction rate are analyzed and discussed. The results indicate that Simulated Annealing offers a robust and scalable solution for the N-Queen problem, particularly for higher-dimensional instances where traditional methods become impractical. Overall, this study highlights the suitability of Simulated Annealing as an efficient metaheuristic for solving complex combinatorial optimization problems and provides insights into its performance characteristics when applied to the N-Queen problem.
Vishal Khanna (Sun,) studied this question.