Skip to content
Home » Crossover

Crossover

GA Operators – Crossover

1. What is Crossover?

Crossover is a Genetic Algorithm operator that combines two parent chromosomes to produce new chromosomes called offspring.

Its main purpose is to combine useful characteristics of two good solutions and create potentially better solutions.

Crossover = Combining two parents to create new solutions.


2. Simple Example

Suppose we have two parent chromosomes:

Parent 1: 101 | 110
Parent 2: 110 | 010

After crossover at the marked point:

Child 1: 101 | 010
Child 2: 110 | 110

The children contain parts of both parents.


3. Types of Crossover

A. Single-Point Crossover

One crossover point is selected.

Parent 1: 101 | 110
Parent 2: 110 | 010
             ↑
        Crossover Point

Child 1: 101 | 010
Child 2: 110 | 110

Use: Simple binary encoding problems.


B. Two-Point Crossover

Two crossover points are selected.

Parent 1: 10 | 111 | 01
Parent 2: 11 | 000 | 10

Child 1: 10 | 000 | 01
Child 2: 11 | 111 | 10

The section between the two points is exchanged.


C. Multi-Point Crossover

More than two crossover points are used.

Parent 1: 10 | 11 | 01 | 10
Parent 2: 01 | 00 | 11 | 01

Different sections are exchanged to produce offspring.


D. Uniform Crossover

Each gene is independently selected from either parent.

Example:

Parent 1: 1 0 1 1 0 0
Parent 2: 0 1 0 0 1 1

Child:    1 1 1 0 0 1

A random selection determines which parent’s gene is used at each position.


E. Arithmetic Crossover

Mainly used with real-valued encoding.

For example:

Parent 1 = 10
Parent 2 = 20

Child = 0.4(10) + 0.6(20)
      = 16

It is useful for numerical optimization problems.


4. Crossover Probability

Crossover is usually controlled by a crossover probability \(P_c\).

For example:\[ P_c = 0.8 \]

means there is an 80% probability that selected parents will undergo crossover.

Typical values may be around 0.6–0.9, depending on the problem.


5. Advantages of Crossover

  • Combines good characteristics of parents
  • Produces new solutions
  • Increases search diversity
  • Helps GA explore the solution space
  • Speeds up discovery of good solutions

Crossover vs Mutation

CrossoverMutation
Combines two or more parentsChanges individual genes
Produces new combinationsIntroduces random variation
Main exploration mechanismMaintains diversity
Example: exchange sectionsExample: 1011 → 1001

Exam Definition

Crossover is a Genetic Algorithm operator that combines genetic information from two parent chromosomes to generate one or more offspring. It helps the algorithm explore new solutions by exchanging portions of parent chromosomes.

Memory Line

Crossover = Parents → Exchange Genetic Information → Offspring