High-Performance N-Queens Solver on GPU: Iterative DFS with Zero Bank Conflicts
Guangchao Yao, Yali Li

TL;DR
This paper introduces a GPU-based iterative DFS algorithm with optimized memory access to efficiently verify the 27-Queens problem, significantly reducing computation time and enabling progress on larger N-Queens instances.
Contribution
The paper presents a novel GPU parallel computing approach with memory conflict avoidance and optimization techniques for solving the N-Queens problem, achieving unprecedented speed and scalability.
Findings
Verified the 27-Queens problem in 28.4 days using 8 GPUs
Projected 28-Queens solution time reduced to approximately 11 months
Achieved over 10x speedup compared to previous GPU methods
Abstract
The counting of solutions to the N-Queens problem is a classic NP-complete problem with extremely high computational complexity. As of now, the academic community has rigorously verified the number of solutions only up to N <= 26. In 2016, the research team led by PreuBer solved the 27-Queens problem using FPGA hardware, which took approximately one year, though the result remains unverified independently. Recent studies on GPU parallel computing suggest that verifying the 27-Queens solution would still require about 17 months, indicating excessively high time and computational resource costs. To address this challenge, we propose an innovative parallel computing method on NVIDIA GPU platform, with the following core contributions: (1) An iterative depth-first search (DFS) algorithm for solving the N-Queens problem; (2) Complete mapping of the required stack structure to GPU shared…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGraph Theory and Algorithms · Data Management and Algorithms · Complexity and Algorithms in Graphs
