All projects

My role

Sole author: the implementation, the experiment design, and the write-up in the repository README.

  • Permutation-based chromosomes and a fitness function based on conflicts
  • Tournament selection with single- or double-point crossover
  • Fixed or adaptive mutation to escape local optima
  • A comparison of both crossover types on 8x8 and 16x16 boards: five runs per setting, capped at 2,000 generations, with mutation on

Notes

Single-point crossover needed fewer generations on both boards: 152 against 358 on average for 8x8, and 1,352 against 1,812 for 16x16. One two-point run on the 16x16 board hit the 2,000-generation cap, and the two-point average counts only the four runs that finished. Five runs per setting is a small sample, and the two board sizes were run on different machines.

Chessboard with eight non-attacking queens