So, if you started with 100 objects (DNA?), then you make them go through the steps 1 and 2, and to steps 3 and 4. At the end of step 4, how many individuals would you still have? still 100?
If so, would you ended up with the last 100 objects that ALL fit? In other words, through the X cycles, the individuals that fit the criteria will become more and more. Is that right?
It depends, but usually you replace the members of your original population with the offspring that are created via selection. Two parents swap genes to make two children that will replace them.
That is NOT the only way to do it, sometimes the "best" member(s) may be kept from generation to generation (called elitism) so that you never lose your best solution, however this is not required.
If selection pressure is too high, you would quickly end up with 100 clones that are almost identical (minus changes due to mutation). That can lead to premature convergence, where all the solutions come to the same place, which is unhealthy in genetic algorithms and in life.
You have parameters that control how much selective pressure there is. You may start with little selection pressure so the genetic algorithm can explore the solution space for the best global solution, then it applies more and more pressure until you've found the best solution at the end when it is mostly optimizing the solution it found it.
Understand that genetic algorithms use principles of evolution, but are not evolution. There are a wide varieties of ways of structuring the algorithm, and what you're trying to balance is an appropriate level of selection pressure to test good ideas, and mutation to bring in new ideas that may be better. If you select to strongly, you get clones, if you mutate too strongly, you can never converge on a good answer because nothing can ever converge at a good solution.
Upvote
0
