N-Queens Problem Solving using Apiary Organizational-Based Optimization Algorithm

Researchers have utilised nature-inspired metaheuristic algorithms to find solutions for complex combinatorial optimisation problems and Non-deterministic polynomial (NP) problems. The N-queens problem is categorised as an NP-Hard problem as it becomes insurmountable for large N. This paper proposed a solution for the N-queens problem based on the Apiary Organisational-Based Optimisation Algorithm (AOOA). AOOA is a nature-inspired metaheuristic optimisation algorithm for NP-Hard problems comprised of multiple beehives inside the apiary, each with its population. In contrast to the backtracking method, AOOA employs a fitness function and randomisation techniques through seven stages to approach the optimal distributions of queens so they don’t attack each other. Experiments were carried out for different values of N ranging from 4 to 10. All solutions were found for Ns (4–8), which comprised 100% of the total solutions. At the same time, 97.7272% of total solutions were found for N = 9 and 98.6187% for N = 10. Moreover, several metaheuristic algorithms have been implemented to solve the N-queens problem, and the average number of 100 iterations has been compared. The results reflect the superiority of AOOA over the competing algorithms in finding the possible number of solutions in earlier iterations and consequently reducing the computational cost of further iterations.

Authors

Publication Details

Journal
The Journal of Engineering Research [TJER]
Published
2025-12-30
DOI
https://doi.org/10.53540/1726-6742.1315
Primary Topic
Metaheuristic Optimization Algorithms Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

N-Queens Problem Solving using Apiary Organizational-Based Optimization Algorithm

Ahmed T. Sadiq Al-Obaidi, Mais A. Al-Sharqi, Safaa O. Al‐Mamory
The Journal of Engineering Research [TJER]
Metaheuristic Optimization Algorithms Research
article

N-Queens Problem Solving using Apiary Organizational-Based Optimization Algorithm

Ahmed T. Sadiq Al-Obaidi, Mais A. Al-Sharqi, Safaa O. Al‐Mamory
article en

Abstract

Researchers have utilised nature-inspired metaheuristic algorithms to find solutions for complex combinatorial optimisation problems and Non-deterministic polynomial (NP) problems. The N-queens problem is categorised as an NP-Hard problem as it becomes insurmountable for large N. This paper proposed a solution for the N-queens problem based on the Apiary Organisational-Based Optimisation Algorithm (AOOA). AOOA is a nature-inspired metaheuristic optimisation algorithm for NP-Hard problems comprised of multiple beehives inside the apiary, each with its population. In contrast to the backtracking method, AOOA employs a fitness function and randomisation techniques through seven stages to approach the optimal distributions of queens so they don’t attack each other. Experiments were carried out for different values of N ranging from 4 to 10. All solutions were found for Ns (4–8), which comprised 100% of the total solutions. At the same time, 97.7272% of total solutions were found for N = 9 and 98.6187% for N = 10. Moreover, several metaheuristic algorithms have been implemented to solve the N-queens problem, and the average number of 100 iterations has been compared. The results reflect the superiority of AOOA over the competing algorithms in finding the possible number of solutions in earlier iterations and consequently reducing the computational cost of further iterations.

The Journal of Engineering Research [TJER]Vol. 22(2)
Openalex Percentile: Top 17%
Metaheuristic Optimization Algorithms Research
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.