Skip to content

A solution to the NQueens problem, decided to upload the final version

Notifications You must be signed in to change notification settings

AdamSJohnson/NQueens-Genetic-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

NQueens

A solution to the NQueens problem, decided to upload the final version To use compile in java using javac NQueens.java to run use:

java NQueens <size> <ps> <pss> <age>

size - the N for the N queens problem (NxN board)
ps - the population size
pss - parent sample size
age - how long an individual can live before being removed


More on age: The removal for age happens before the removal of excess individuals.
Printed to the console is: <Top fitness score> <Population size after removal> <Generation>

If you find the program isn't working you must make sure the age limit isn't too low.

About

A solution to the NQueens problem, decided to upload the final version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages