Solving N Queen Problem With Genetic Algorithm
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
nbproject commit Jul 7, 2016
src commit Jul 7, 2016
16.PNG Add files via upload Jul 7, 2016
README.md Create README.md Jul 7, 2016
build.xml commit Jul 7, 2016
manifest.mf commit Jul 7, 2016

README.md

NQueenFX

Solving N Queen Problem with Genetic Algorithm with the Power of Java 8 Stream API and Jenetics Library

Encoding

Solution representation for this problem is simple. If we want to show a configuration for 8 queen problem we will use all permutation of <0,1,2,3,4,5,6,7>. This representation is so simple and for Fitness Function we just need to count total number of diagonal constraint violations.
I just use parallel stream to make things faster.

Screenshots

16