arXiv · 2410.17873
Solving the n-Queens Problem in Higher Dimensions
Abstract
How many mutually non-attacking queens can be placed on a d-dimensional chessboard of size n? The n-queens problem in higher dimensions is a generalization of the well-known n-queens problem. We present an integer programming formulation of the n-queens problem in higher dimensions and several strengthenings through additional valid inequalities. Compared to recent benchmarks, we achieve a speedup in computational time between 15-70x over all instances of the integer programs. Our computational results prove optimality of certificates for several large instances. Breaking additional, previously unsolved instances with the proposed methods is likely possible. On the primal side, we further discuss heuristic approaches to constructing solutions that turn out to be optimal when compared to the IP.
Explore related subjects
Keep this discovery
Tim Kunt. 2024-10-23. Solving the n-Queens Problem in Higher Dimensions. https://arxiv.org/abs/2410.17873
Cite the original work for its findings. Save a collection to share your selection of sources.