> let POP_SIZE = 50<p>c'mon everyone knows genetic population is 30<p>(I kid I kid but that number has an interesting story <a href="https://statswithcats.wordpress.com/2010/07/11/30-samples-standard-suggestion-or-superstition/" rel="nofollow">https://statswithcats.wordpress.com/2010/07/11/30-samples-st...</a> )
Did not expect to see "cfdrake" when I initially clicked the link - nice port! :)<p>Agreed with e28eta - I actually saw RubikSwift demoed at Swift Summit a few days ago as well and enjoyed it. Definitely check it out if you're interested in the topic.
I thought this was going to be a link to [1], from a talk given at Swift Summit a couple days ago. I haven't really looked at the code for either one to compare them, but for people who are interested, here's a second simple genetic algorithm in Swift (found in RubikSwift/GeneticsSolver.swift)<p><a href="https://github.com/JaviSoto/RubikSwift" rel="nofollow">https://github.com/JaviSoto/RubikSwift</a>
The other languages are here:
<a href="https://github.com/jsvazic/GAHelloWorld" rel="nofollow">https://github.com/jsvazic/GAHelloWorld</a>