IBM Journal of Research and Development · 1987 · 89 citations · 9 references
ComputingComputer ScienceMathematicsAlgorithmsCombinatoricsTheory Of ComputationBacktracking AlgorithmsComputational ComplexityHeuristic SearchSearching AlgorithmsBacktracking SearchCombinatorial SearchComplexity Of SearchingMove OrderingN-queens ProblemSearch Complexity AnalysisSearch StrategiesSearch Time Estimation
This paper investigates the cost of finding the first solution to the N-Queens Problem using various backtrack search strategies. Among the empirical results obtained are the following: 1) To find the first solution to the N-Queens Problem using lexicographic backtracking requires a time that grows exponentially with increasing values of N. 2) For most even values of N < 30, search time can be reduced by a factor from 2 to 70 by searching lexicographically for a solution to the N+1-Queens Problem. 3) By reordering the search so that the queen placed next is the queen with the fewest possible moves to make, it is possible to find solutions very quickly for all N < 97, improving running time by dozens of orders of magnitude over lexicographic backtrack search. To estimate the improvement, we present an algorithm that is a variant of algorithms of Knuth and Purdom for estimating the size of the unvisited portion of a tree from the statistics of the visited portion.
9
Backtrack programming techniques
J. Bitner, Edward M. Reingold · Communications of the ACM · 1975 · 323 citations · Full text
An Average Time Analysis of Backtracking
Cynthia A. Brown, Paul W. Purdom · SIAM Journal on Computing · 1981 · 71 citations
Tree Size by Partial Backtracking
Paul W. Purdom · SIAM Journal on Computing · 1978 · 65 citations