Affiliation:
1. School of Software Technology, Dalian University of Technology, Dalian, China
2. School of Computer Science and Technology, Dalian University of Technology, Dalian, China
Abstract
The N-Queens problem plays an important role in academic research and practical application. Heuristic algorithm is often used to solve variant 2 of the N-Queens problem. In the process of solving, evaluation of the candidate solution, namely, fitness function, often occupies the vast majority of running time and becomes the key to improve speed. In this paper, three parallel schemes based on CPU and four parallel schemes based on GPU are proposed, and a serial scheme is implemented at the baseline. The experimental results show that, for a large-scale N-Queens problem, the coarse-grained GPU scheme achieved a maximum 307-fold speedup over a single-threaded CPU counterpart in evaluating a candidate solution. When the coarse-grained GPU scheme is applied to simulated annealing in solving N-Queens problem variant 2 with a problem size no more than 3000, the speedup is up to 9.3.
Funder
National Natural Science Foundation of China
Subject
Multidisciplinary,General Computer Science
Reference29 articles.
1. Proposal of eight queens problem;F. W. M. Bezzel;Berliner Schachzeitung,1848
2. A survey of known results and research areas for n-queens
3. The n-queens problem - a study in optimization. [EB/OL];J. Somers,2019
4. KiseK.KatagiriT.HondaH.YubaT.Solving the 24-queens problem using Mpi on a Pc cluster2004Tokyo, JapanGraduate School of Information Systems, The University of Electro-CommunicationsTechnical Report
Cited by
3 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献