Abstract
Previous algorithms presented to solve the eight queens problem have generated the set of all solutions. Many of these solutions are identical after applying sequences of rotations and reflections. In this paper we present a simple, clear, efficient algorithm to generate a set of fundamental (or distinct) solutions to the problem.
Similar content being viewed by others
References
A. Ahrens,Mathematische Unterhaltungen und Spiele, Leipzig: Teubner, 1910.
E. W. Dijkstra,Notes on structured programming, inStructured Programming, O.-J. Dahl, E. W. Dijkstra, and C. A. R. Hoare (eds), Academic Press 1972.
J. P. Fillmore and S. G. Williamson,On backtracking: a combinatorial description of the algorithm, SIAM Journal of Computing 3, 1 (March 1974), 41–55.
P. Henderson,Functional Programming: Application and Implementation, Prentice-Hall 1980.
M. Kraitchik,Mathematical Recreations, Second revised edition, Dover 1953.
P. Naur,An experiment in program development, BIT 12 (1972), 347–365.
E. M. Reingold, J. Nievergelt, and N. Deo,Combinatorial Algorithms: Theory and Practice, Prentice-Hall 1977.
J. S. Rohl,Generating permutations by choosing, The Computer Journal 21, 4 (November 1978), 302–305. See also The Computer Journal 22,2 (May 1979), 191.
W. W. Rouse Ball and H. S. M. Coxeter,Mathematical Recreations and Essays, Twelfth edition, University of Toronto Press 1974.
N. Wirth,Program development by stepwise refinement, Communications of the ACM 14, 4 (April 1971), 221–227.
N. Wirth,Algorithms +Data Structures =Programs, Prentice-Hall 1976.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Topor, R.W. Fundamental solutions of the eight queens problem. BIT 22, 42–52 (1982). https://doi.org/10.1007/BF01934394
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01934394