Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 324 Bytes

File metadata and controls

9 lines (6 loc) · 324 Bytes

👑 N-Queens Problem using Genetic Algorithm

This project solves the classic N-Queens puzzle using a genetic algorithm.

🧬 Genetic Representation

  • Chromosome: A list where each index is a row and the value is the column of the queen.

📏 Fitness Function

  • Counts the number of attacking queen pairs.