Answer of Tutorial 1 - Q5. Please refer to the operation on...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Answer of Tutorial 1 Q1. You are to describe the genetic cycle (shown below) in word Mating Pool (parents) Sub-population (offspring) Objective Function Selection Genetic Operations Replacement Fitness Fitness PhenoType PhenoType Population (chromosomes) Q2. 1/4 Q3. 1 0 0 0 0 1 0 1 0 1 0 0 Q4 No. of different offspring = 6 11011100, 10000101, 11001100, 10010101, 11000100, 10011101
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Q5. Please refer to the operation on Roulette Wheel Selection. The following is an example: sum=0; for i=1:N, sum = sum+FitV[i]; end; r = floor(rand() * sum) + 1; // rand is assumed to be from 0 to 1, exclusive accSum = 0; j=0; While (accSum < r) j=j+1; accSum = aAccSum + FitV[j]; end; p = j; // p is the 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.

Ask a homework question - tutors are online