Abstract
The N-queens problem plays an important role in academic research and has many practical applications ranging from physics to biology and cryptography to protein folding. The complexity increases with increasing values of n. Solving for the location of queens arranged as knighted chains can reduce the time complexity and resource requirements, providing at least one fundamental solution for all n (n ≥ 4). An exhaustive memoir on the development of a heuristic algorithm to propose a plausible solution for the N-queens problem is presented. Every n is mapped into an instance of its even analogue, assigned to groups, and a solution is designed with knighted chain patterns. In case of odd n, the solution is extended to complete the composition. Furthermore, a generalised solution for all n (n ≥ 4) is presented. Composing the queen’s exile by knighted chains results in a symmetric solution that could both be solvable and verifiable.
Similar content being viewed by others
Availability of Data and Material
Not applicable.
Code Availability
Available on request.
References
Bell J, Stevens B (2009) A survey of known results and research areas for N-queens. Discret Math. https://doi.org/10.1016/j.disc.2007.12.043
Hans S (2004) Max Friedrich Wilhelm Bezzel. Schachclub-Ansbach.De. http://www.schachclub-ansbach.de/chronik_bezzel.htm
Jain V, Prasad JS (2018) Solving N-queens problem using genetic algorithm by advance mutation operator. Int J Electric Comput Eng (IJECE) 8(6):4519–4523
Campbell PJ (1977) Gauss and the eight queens problem: a study in miniature of the propagation of historical error. Hist Math 4(4):397–404
Erbas C, Sarkeshik S, Tanik MM (1992) Different perspectives of the N-queens problem. Proceedings of the 1992 ACM Annual Conference on Communications 99–108. https://doi.org/10.1145/131214.131227
Güldal S, Baugh V, Allehaibi S (2016) N-queens solving algorithm by sets and backtracking. SoutheastCon 2016:1–8
Khanna EV, Chopra ES (2017) Review on N-queen optimization using tuned hybrid technique. Int J Eng Sci Res Tech (Thomson Reuters) 6(2):62–68
Maroosi A, Muniyandi RC (2014) Accelerated execution of P systems with active membranes to solve the N-queens problem. Theor Comput Sci 551:39–54
Masehian E, Akbaripour H, Mohabbati-Kalejahi N (2014) Solving the N-queens problem using a tuned hybrid imperialist competitive algorithm. Int Arab J Inform Technol(IAJIT) 11(6)
Torggler V, Aumann P, Ritsch H, Lechner W (2019) A quantum N-queens solver. Quantum 3:149
Ball WWR, Coxeter HSM (1947) Mathematical Recreations and Essays (Eleventh). Dover Publications.
Bozikovic M, Golub M, Budin L (2003) Solving N-queens problem using global parallel genetic algorithm. The IEEE Region 8 EUROCON 2003. Computer as a Tool 2:104–107
Cao J, Chen Z, Wang Y, Guo H (2021) Parallel implementations of candidate solution evaluation algorithm for N-queens problem. Complexity 2021:6694944. https://doi.org/10.1155/2021/6694944
Kralev V, Kraleva R, Chakalov D (2021) Development of an application for interactive research and analysis of the N-queens problem. Int J Adv Sci Eng Inf Technol 11(5):1811–1817
Falkowski B-J, Schmitz L (1986) A note on the queen’s problem. Inf Process Lett 23(1):39–46. https://doi.org/10.1016/0020-0190(86)90128-6
Sloman L (2021) Mathematician Answers Chess Problem About Attacking Queens. Quantamagazine. https://www.quantamagazine.org/mathematician-answers-chess-problem-about-attacking-queens-20210921/
Watkins JJ (2004) Across the Board: the Mathematics of Chessboard Problems. Princeton University Press
Murali G, Naureen S, Reddy YA, Reddy MS, JNTUA-Pulivendula J-P, JNTUA-Pulivendula J-P (2011) Graphical simulation of N-queens problem. Int J Eng Res Technol 2(6)
Kesri V, Mishra MK (2013) A new approach to solve N-queens problem based on series. Int J Adv Sci Eng Inf Technol 3(3):1349
Sasaki Y, Fukui M, Hirashima T (2019) Development of iOS software N-queens problem for education and its application for promotion of computational thinking 2019 IEEE 8th Global Conference on Consumer Electronics (GCCE) 563–565
Buño KC, Cabarle FGC, Calabia MD, Adorna HN (2018) Solving the N-queens problem using dP systems with active membranes. Theor Comput Sci 736:1–14
Fortnow L (2009) The status of the P versus NP problem. Commun ACM 52(9):78–86
Lijo VP, Jasmin JT (2015) Solving N-queens problem by prediction. Int J Comput Sci Inf Technol 6(4):3844–3848
Amooshahi A, Joudaki M, Imani M, Mazhari N (2011) Presenting a new method based on cooperative PSO to solve permutation problems: a case study of N-queens problem 2011 3rd. Int Conf Electr Comput Technol 4:218–222
Habiboghli A, Jalali T (2017) A Solution to the N-Queens Problem Using Biogeography-Based Optimization
Prudhvi Raj P, Shah P, Suresh P (2019) Faster convergence to N-queens problem using reinforcement learning. International Conference on Modeling, Machine Learning and Astronomy 66–77
Karabulut B, Erguzen A, Umver HM (2021) A linear time pattern based algorithm for N-queens problem. Politeknik Dergisi 1(1):1
El-Qawasmeh E, Al-Noubani K (2005) Reducing the time complexity of the N-queens problem. Int J Artif Intell Tools 14(03):545–557
Sacaluga DL (2021) An alternative algorithm for the N-queens puzzle. Recreat Math Mag 8(14):39–73
Author information
Authors and Affiliations
Contributions
AS, conceptualization, methodology, validation, visualization, and writing — review and editing. AS, conceptualization, methodology, visualization, supervision, and writing — review and editing. JV, conceptualization, methodology, resources, visualization, and writing — original draft.
Corresponding author
Ethics declarations
Ethics Approval
Not applicable.
Consent to Participate
Not applicable.
Consent for Publication
Not applicable.
Conflict of Interest
The authors declare no competing interests.
Supplementary Information
Below is the link to the electronic supplementary material.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Swaminathan, A., Swaminathan, A. & Vaidyanathan, J. Composing the Queen’s Exile — A Knighted Chain Solution to the N-Queens Problem. Oper. Res. Forum 5, 3 (2024). https://doi.org/10.1007/s43069-023-00284-7
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s43069-023-00284-7