Intelligent Systems II · TEE · papers

Q5(a) GA selection, crossover and survivor replacement [10]

Re-examination · 25 Jun 2024

Actual historical paper ·100 marks attempted /140 offered · Q1 compulsory + any four of Q2–Q7. Source defects and solution assumptions are explicitly identified.

Question. Q5(a) [10 marks · 2024-06-25]

Use the population table. (1) Rank-select the best two, then one-point crossover in the middle. (2) A three-way tournament on individuals 1,3,5 selects parent 1; a two-way tournament on 2,4 selects parent 2. Again crossover in the middle. (3) Replace using fitness-based survivor selection and compute the new average. (4) Repeat replacement from the original population using age-based survivor selection and compute its average.

No.ChromosomeFitnessAge
101000000648
201011111952
3010100008013
401011001899
501011110944
6010011117910
7010100018112
8010000016515
9010110008810
10010000006420

Answer

Given

Ten 8-bit chromosomes with supplied fitness and ages; larger fitness is better.

To find

Four offspring and two independent survivor-selection outcomes.

Formula and why it applies

Rank or tournament selection chooses parents. Crossover exchanges suffixes after bit 4. Fitness-based replacement removes the weakest; age-based replacement removes the oldest. Treat the two requested replacements as separate experiments starting from the same initial population.

Solution

Step 1. Rank and choose the top two
Fitness rankIndividualFitness
1295
2594
3489
4988
5781
6380
7679
8865
9164
101064

Select 2(95) and 5(94). Split 0101|1111 and 0101|1110. Swapping suffixes gives 01011110(94) and 01011111(95).

Step 2. Conduct the specified tournaments

Tournament{1,3,5}: fitness 64,80,94 → choose 5. Tournament{2,4}:95,89 → choose 2. Split 0101|1110 and 0101|1111. Children are 01011111(95) and 01011110(94). No mutation is specified.

The four child fitnesses are 94,95,95,94, sum 378. Their strings already exist in the supplied table, so their supplied fitness values can be used directly; no new fitness function is invented.

Step 3. Fitness-based survivor replacement

Remove the four lowest-fitness originals:1(64),10(64),8(65),6(79). Keep 2,3,4,5,7,9 with fitness 95,80,89,94,81,88. Keep duplicates because the question does not impose uniqueness.

\text{retained sum}=95+80+89+94+81+88=527LaTeX: \text{retained sum}=95+80+89+94+81+88=527
\bar f_{fitness}=\frac{527+378}{10}=90.5LaTeX: \bar f_{fitness}=\frac{527+378}{10}=90.5
Step 4. Age-based replacement, reset to the original table first

Remove the oldest four:10(age 20),8(age 15),3(age 13),7(age 12). Keep 1,2,4,5,6,9 with fitness 64,95,89,94,79,88. Add the same four offspring.

\text{retained sum}=64+95+89+94+79+88=509LaTeX: \text{retained sum}=64+95+89+94+79+88=509
\bar f_{age}=\frac{509+378}{10}=88.7LaTeX: \bar f_{age}=\frac{509+378}{10}=88.7
Step 5. Explain the difference
\bar f_{original}=799/10=79.9LaTeX: \bar f_{original}=799/10=79.9

Fitness-based replacement improves the average more in this example because it directly removes weaker individuals. Age-based replacement promotes turnover, but age is not the same as quality. “Rank-based” selection is usually probabilistic; here the question explicitly says choose the best two, so that deterministic instruction is followed.

Final answer. Children have fitness 94,95,95,94. New mean 90.5 under fitness replacement and 88.7 under age replacement.