Solving N-Queens Problem using Exhaustive Search and a Novel Genetic Algorithm

The N-Queen problem is an interesting and complex combinatorial problem that has proved to be challenging for mathematicians, computer scientists, and other experts for a while now. The main idea in solving a N-Queen problem is to place N queens on a N × N chessboard such that no two queens will attack each other on the board. This puzzle is a typical textbook example for evaluating algorithms and techniques for solving optimization problems, constraint solving, and backtracking problems, and has been widely studied in computer science and mathematics. It also has applications in fields such as artificial intelligence and parallel computing. Despite the fact that substantial research has been done on this matter, comparisons between exhaustive search and genetic algorithms for solving the N-Queens problem remain limited. Specifically, not much work has been done to analyze their performance across different board sizes and explore the trade-offs between accuracy and computational efficiency. This study fills this gap by examining these two methods in detail and assesses their scalability, accuracy, and computational requirements. The findings highlight that while exhaustive search always provides an exact solution, its computational cost grows rapidly with N, making it impractical for larger board sizes. On the other hand, genetic algorithms offer a faster, more scalable approach, though they sacrifice guaranteed accuracy for speed and adaptability.

Authors

Institutions

Publication Details

Published
2025-05-07
DOI
https://doi.org/10.1109/aiit63112.2025.11082912
Citations
13
Primary Topic
Optimization and Packing Problems
Type
article
Field-Weighted Citation Impact
16.15
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Solving N-Queens Problem using Exhaustive Search and a Novel Genetic Algorithm

Raja Hashim Ali, Iftikhar Ahmad, Talha Ali Khan, Ghazaleh Alizadehbirjandi et al.
13 citations
Optimization and Packing Problems
16.15
article

Solving N-Queens Problem using Exhaustive Search and a Novel Genetic Algorithm

Raja Hashim Ali, Iftikhar Ahmad, Talha Ali Khan, Ghazaleh Alizadehbirjandi, Rand Koutaly
article en
13 citations

Abstract

The N-Queen problem is an interesting and complex combinatorial problem that has proved to be challenging for mathematicians, computer scientists, and other experts for a while now. The main idea in solving a N-Queen problem is to place N queens on a N × N chessboard such that no two queens will attack each other on the board. This puzzle is a typical textbook example for evaluating algorithms and techniques for solving optimization problems, constraint solving, and backtracking problems, and has been widely studied in computer science and mathematics. It also has applications in fields such as artificial intelligence and parallel computing. Despite the fact that substantial research has been done on this matter, comparisons between exhaustive search and genetic algorithms for solving the N-Queens problem remain limited. Specifically, not much work has been done to analyze their performance across different board sizes and explore the trade-offs between accuracy and computational efficiency. This study fills this gap by examining these two methods in detail and assesses their scalability, accuracy, and computational requirements. The findings highlight that while exhaustive search always provides an exact solution, its computational cost grows rapidly with N, making it impractical for larger board sizes. On the other hand, genetic algorithms offer a faster, more scalable approach, though they sacrifice guaranteed accuracy for speed and adaptability.

University of Potsdam (DE), University of Applied Sciences Potsdam (DE)
Openalex Percentile: Top 1%
Optimization and Packing Problems
16.15
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.