3 ms·
The queue structure is one of my own ideas. It is possible that it has been done before, but I did not check. There does not seem to be a lot of research on thi
by lyle_nel 11y ago
The queue structure is one of my own ideas. It is possible that it has been done before, but I did not check. There does not seem to be a lot of research on this topic. That being said, it is a nice toy problem to explore genetic algorithms and diversity.
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.
- YeGoblynQueenne 11y agoThanks - 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 :)
- lyle_nel 11y agoI understand, I tested it for you and my suspicions where right. The simulation simply stalls early on. Nothing interesting happens after that.
- YeGoblynQueenne 11y agoOh 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.
- lyle_nel 11y agoI appreciate it.