Re:Show HN: A Genetic Algorithm I wrote in JavaScript to evo...
by kurin on Monday December 13, 2010 @10:50PM
(#2003036)
I guess "local optimum" wasn't the right word. I got suck in a configuration in which my breed() method couldn't get closer to the goal, because it was just shuffling around characters that existed at the start. (I had started with 1001 randomly generated 13-byte sequences.)
[ Parent
| on HN ]
Re:Show HN: A Genetic Algorithm I wrote in JavaScript to evo...
by Groxx on Monday December 13, 2010 @11:41PM
(#2003146)
With GAs, you're frequently better allowing your breeding / mutation to make insane changes. Mimic reality: some changes flat-out kill the offspring immediately. Sure, you need letters... but allow breeding to slice the binary strings representing those letters. Otherwise you rely too heavily on mutation for changes, which is typically very slow.