title: Counting solutions for the N -queens and Latin-square problems by Monte Carlo simulations.
abstract: We apply Monte Carlo simulations to count the numbers of solutions of two well-known combinatorial problems: the N -queens problem and Latin-square problem. The original system is first converted to a general thermodynamic system, from which the number of solutions of the original system is obtained by using the method of computing the partition function. Collective moves are used to further accelerate sampling: swap moves are used in the N -queens problem and a cluster algorithm is developed for the Latin squares. The method can handle systems of 10;{4}degrees of freedom with more than 10;{10,000} solutions.
authors.affiliation: Department of Bioengineering, Rice University, Houston, Texas 77005, USA.
authors.forename: Cheng
authors.initials: C
authors.lastname: Zhang
authors.forename: Jianpeng
authors.initials: J
authors.lastname: Ma
mesh_terms: D000465:Algorithms; D016000:Cluster Analysis; D003198:Computer Simulation; D008962:Models, Theoretical; D009010:Monte Carlo Method; D013816:Thermodynamics