# Crossover Phase

The 'crossover phase' is is the breeding stage. Crossover can be very complex but, at a basic level, two 'parent' solutions are selected to breed. Some proportion of each parent’s features are selected and swapped (or crossed over) with the other’s, thereby generating a pair of 'offspring' solutions that are similar, but not identical to, their parents.

The new offspring will have a combination of both parents' features.

![](/files/-LrPm4BmlQBt0JeTm4bw)

The goal, of course, is for the offspring to be fitter than their parents. In general, after each round of breeding, the average fitness score of the population will have increased, although this is by no means guaranteed.

This happens because only the fittest parents are selected for crossover. Repeating the selection and crossover process leads to greater average fitness with each successive generation. The intention is then to converge genes to achieve the best possible fitness levels.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.generativedesign.org/02-deeper-dive/02-04_genetic-algorithms/02-04-05_crossover-phase.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
