This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 1 1 0 0 0 1 0 1 How many different offspring can be generated if one point crossover is performed? List all of them. Q5. Design a programming procedure (in pseudo-code or MATLAB or C languages) to select a parent using the roulette wheel selection method. The following variables are ready to use in your procedure, and the syntax is assumed to be correct (no matter which language you use): Chrom[1:N] – contains N chromosomes. FitV[1:N] – contains the fitness values of the N chromosomes P – contains the index of the selected parent For example: Chrom represents the 2 nd chromosome; FitV represents the fitness value of the 4 th chromosome. If p=2, it implies the 2 nd chromosome is chosen as parent....
View Full Document
This note was uploaded on 04/10/2011 for the course EE 4047 taught by Professor Kitsangtsang during the Spring '09 term at City University of Hong Kong.
- Spring '09