Module 2 of 6

GA Operators & Strategies

Q1, Q26, Q14, Q2, Q3, Q15, Q16, Q24

Green = exact question bank answer Amber = clarification only
Exam questions & visual aids

Crossover โ€” recombining parents

Crossover takes two parent chromosomes and produces offspring by swapping genetic material.

Q1

Mention two types of crossover in genetic algorithms?

๐Ÿ“‹ Question bank answer

One-point crossover: A single crossover point is chosen, and the segments after that point are swapped between the parents.
Two-point crossover: Two crossover points are selected, and the segment between them is exchanged.

Q26

Compare the Single-Point and Two-Point crossover?

๐Ÿ“‹ Question bank answer

In Single-point Crossover, a location is selected randomly on both the parents. The location is the same in both the parents chromosome. The genes to the right of the crossover point is swapped between the two parents.

In Two-point Crossover, two locations are selected randomly in the parents' chromosome. Then the genes in between the two points are swapped between the two parents.

๐Ÿ’ก Clarification

See the diagrams below โ€” one-point swaps the right segment; two-point swaps only the middle.

One-point crossover โ€” swap everything to the right of the cut
Parent A
1
0
1
1
0
1
Parent B
0
0
0
0
1
1
โ†“ swap right segments โ†“
Offspring
1
0
1
0
1
1
from Parent A from Parent B cut point (same on both)
Two-point crossover โ€” swap only the middle segment
Parent A
1
0
1
1
0
0
1
Parent B
0
1
0
0
1
1
0
โ†“ swap middle only โ†“
Offspring
1
0
0
0
1
0
1
swapped middle Ends stay with original parent

Mutation โ€” introducing novelty

Mutation types (Q14) โ€” pick based on chromosome format
Bit-flip Binary strings
1
0
1
one bit flips 1โ†’0 or 0โ†’1
Scramble Shuffle a section
C
A
B
โ†’
B
C
A
Swap Permutation problems
3
1
2
โ‡„
1
3
2
two positions exchange
Gaussian Real-valued numbers
2.4 + noise โ†’ 2.7
add small random value
Q14

What are the common types of mutation?

๐Ÿ“‹ Question bank answer

Types include bit-flip (for binary), Scramble Mutation, swap (for permutation), and Gaussian mutation (for real-valued). The choice depends on the chromosome representation.

๐Ÿ’ก Clarification

The mutation cards above show what each type looks like in practice.

Q3

When is it better to use mutation over crossover in GA?

๐Ÿ“‹ Question bank answer

When diversity in the population is low or the search is stuck in local optima, mutation helps by introducing new genetic material, whereas crossover relies on existing traits and may not help in exploration.

Selection & preservation

Tournament selection (Q2) โ€” pick the best from a random group
0.6
โ˜…0.9
0.3
0.5

Random group of 4 โ†’ highest fitness (โ˜…) wins and reproduces

Elitism (Q15)

Gen N
โ˜… best
โ†’
Gen N+1
โ˜… same

Best pass unchanged โ€” no crossover or mutation on them

Immigration (Q24)

Sub-pop A
โ˜…
โ†’โ†’
Sub-pop B

Move good individuals between islands โ€” spreads diversity

Opposition-based learning (Q16)

Solution
0.7
vs
Opposite
0.3
โ†’
Pick better
direction

Evaluate both a point and its mirror โ€” escape local optima

Q2

How does tournament selection work?

๐Ÿ“‹ Question bank answer

It randomly selects a group of individuals and chooses the best among them for reproduction. It's simple and effective for maintaining diversity and avoiding premature convergence.

Q15

What is elitism in Genetic Algorithms?

๐Ÿ“‹ Question bank answer

Elitism ensures the best individuals from the current generation are carried to the next without modification, helping preserve high-quality solutions.

Q16

What is opposition-based learning in the context of mutation?

๐Ÿ“‹ Question bank answer

It's a method where both a candidate solution and its opposite are evaluated. It helps escape local optima by considering alternative search directions.

Q24

What is immigration in Genetic Algorithms and what is its purpose?

๐Ÿ“‹ Question bank answer

Immigration refers to moving individuals between separate sub-populations during evolution. It allows high-quality solutions to spread, increases genetic diversity, and helps avoid premature convergence by introducing new genetic material into each sub-population.

๐Ÿ’ก Clarification

The diagram above shows good individuals moving between sub-populations (islands).

Quick-fire quiz

Q1: In two-point crossover, what gets exchanged?
A) Genes after a single cut point
B) Genes between two cut points
C) Random individual genes scattered throughout
Q3: When should you prefer mutation over crossover?
A) When the population is highly diverse
B) When you want to recombine good traits
C) When diversity is low or stuck in local optima
Q14: Which mutation type is used for real-valued chromosomes?
A) Gaussian mutation
B) Bit-flip mutation
C) Swap mutation