Steve-V / weasel

Methinks it is like a weasel!
The Unlicense
0 stars 0 forks source link

Allow children to breed #2

Open Steve-V opened 7 years ago

Steve-V commented 7 years ago

Investigate whether allowing children to breed will result in faster convergence to target.

We could achieve this by taking the best-scoring n% of children (perhaps 10%?) and breeding them together. Currently we take a string and for each element in the string we either keep it or replace it with a random character (mutation). Perhaps we could take two strings and build a new child string by randomly selecting characters from each of the two parents?

Steve-V commented 7 years ago

This (subjectively) seems to slow things down when score is low. Probably due to the naive algorithm i'm using.