Re:Show HN: Cracking passwords with a simple genetic algorithm
by YeGoblynQueenne on Sunday February 28, 2016 @11:22AM
(#11191257)
Thanks - my assumption was that the speedup in dying would increase the reproductive pressure and make the whole process a lot more competitive. But GAs are not my specialty (far from).
I am indeed very curious, but also very, very short on time! Before I can justify picking up someone else's code I have a couple of pieces of coursework and a dissertation to work on - but I might get some time round abouts next weekend, I'll let you know how I get on :)
Re:Show HN: Cracking passwords with a simple genetic algorithm
by lyle_nel on Sunday February 28, 2016 @11:49AM
(#11191349)
I understand, I tested it for you and my suspicions where right. The simulation simply stalls early on. Nothing interesting happens after that.
Re:Show HN: Cracking passwords with a simple genetic algorithm
by YeGoblynQueenne on Sunday February 28, 2016 @12:16PM
(#11191433)
Oh well - so much for that then!
I'll still try to give your code a whirl next weekend. I know how useful it is to get some feedback for your projects.
Regarding the stack approach, I would suspect that new genetic information would immediately be lost since a new organism dies before having much chance to produce offspring. In the off chance it manages to produce offspring, those offspring would also be lost almost immediately since they get popped first.
If you are really curious, you can change line 163 in vivarium.cpp from a pop_front() to a pop_back() to see what happens.