Question: Produce the next generation from the given initial population. Initial Population 32 16 8 4 2 1 Calculated Results Parent 1 1 0 0 1
Produce the next generation from the given initial population.
| Initial Population | |||||||
| 32 | 16 | 8 | 4 | 2 | 1 | Calculated Results | |
| Parent 1 | 1 | 0 | 0 | 1 | 1 | 0 | 38 |
| Parent 2 | 1 | 1 | 1 | 0 | 0 | 0 | 56 |
| Parent 3 | 0 | 0 | 1 | 1 | 0 | 0 | 12 |
| Parent 4 | 1 | 0 | 1 | 0 | 1 | 1 | 43 |
Hints for students:
Select the best two parents
Perform crossover- Take the crossover point exactly in the middle
Perform mutation - offspring1- mutate bits 2 and 5
offspring2- mutate bits 1 and 4
Generate the next population
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
