Lab #2 Review
Opened this issue · 0 comments
Hello, the following is my review of your solution.
In my opinion, one of the main issues is that your code is not able to find a solution for small N
(like 20). For higher values the solutions are found but with high bloat. Maybe raising both the population size and the offspring size could help.
The idea behind the mutation function of adding 0s when the size is too big is a good one, I noticed that excessive bloating is a common problem.
I'm not sure that the strategy you chose for the crossover is the right one, even if I like so much the idea of keeping more genome for fitter parent and less genome for less fit parent.
Overall the code is good, probably some comments would help a reader to understand the logic behind some functions.