Short Article 3,000,000 Queens in Less Than One Minute 1 Rok Sosic D e p a r t m e n t of C o m p u t e r Science University of U t a h Salt Lake City, U T 84112 sosic@cs.utah.edu Jun Gu D e p a r t m e n t of Electrical E n g i n e e r i n g U n i v e r s i t y of Calgary Calgary, C a n a d a T 2 N 1N4 gu@enel.ucalgary.ca Summary The n - queens problem is a classical combinatorial search problem. In this paper we give a linear time algorithm for this problem. The algorithm is an extension of one of our previous local search algorithms [3, 4, 6]. On an IBM RS 6000 computer, this algorithm is capable of solving problems with 3,000,000 queens in approximately 55 seconds. Keywords: Gradient-based conflict minimization heuristic, local search, the n - queens problem, probabilistic search algorithms. Another fast algorithm based on the same conflict minimization heuristic and the same local search idea for solving the n - queens problem was presented in [7]. This algorithm
/lp/association-for-computing-machinery/3-000-000-queens-in-less-than-one-minute-iwSJ5TaxIA