In evolutionary computation, a chromosome is the encoded representation of a single candidate solution, usually a fixed or variable-length sequence of genes that genetic operators can copy, recombine and alter. Each chromosome is decoded into a solution, scored by the fitness function, and then competes with other chromosomes in the population for the chance to pass its genes to the next generation.
The term is borrowed from biology, but the meaning here is purely computational: the chromosome is a data structure, not a molecule. Many authors use genome as a synonym, especially when one individual carries a single chromosome, which is the normal case in genetic algorithms.
How a chromosome encodes a candidate solution
A chromosome is built from genes, the smallest units that operators manipulate, and each gene occupies a position called a locus. The value a gene takes is its allele. In a classic genetic algorithm, a chromosome might be a string of 32 bits, where each bit is a gene with the alleles 0 and 1.
The chromosome itself is the genotype. A decoding step, known as the genotype-phenotype mapping, turns it into the phenotype: the actual schedule, network weights, route or design that the fitness function evaluates. This separation lets the same search engine operate on problems from many domains, because selection and variation only need to handle the genotype.
The table below summarizes the vocabulary that describes a chromosome and its parts.
| Concept | Meaning in evolutionary computation | Example in a bit-string chromosome |
|---|---|---|
| Gene | Smallest unit that operators modify | One bit |
| Locus | Position of a gene in the chromosome | Bit position 7 |
| Allele | Value a gene currently takes | 0 or 1 |
| Genotype | The full encoded chromosome | 01101001… |
| Phenotype | Decoded solution that is evaluated | Parameter value 13.7 |
Main chromosome representations
The choice of representation is the most consequential design decision in an evolutionary algorithm, because it fixes which solutions are reachable and which operators make sense. Common encodings differ in their gene types and in the operators that keep offspring valid.
| Representation | Gene type | Typical problems | Suitable operators |
|---|---|---|---|
| Binary string | Bits | Feature selection, knapsack | Bit-flip mutation, one-point crossover |
| Real-valued vector | Floating-point numbers | Continuous parameter optimization | Gaussian mutation, blend crossover |
| Integer vector | Integers within ranges | Configuration and assignment | Random resetting, uniform crossover |
| Permutation | Ordered unique items | Traveling salesman, scheduling | Swap mutation, order crossover |
| Tree | Functions and terminals | Genetic programming, symbolic regression | Subtree crossover and mutation |
| Graph or network | Nodes and connections | Neuroevolution, circuit design | Add-node, add-link, weight mutation |
Representations also differ in length. Most genetic algorithms use fixed-length chromosomes, which simplify crossover and analysis. Genetic programming, NEAT and grammatical evolution use variable-length chromosomes, which allow solutions to grow in complexity but introduce the risk of bloat, an increase in size without a gain in fitness.
Chromosome, individual and population
The chromosome is one level in a hierarchy of concepts, and keeping the levels distinct avoids frequent confusion in the literature. An individual may carry more than the chromosome, for example strategy parameters or a cached fitness value.
| Term | Scope | Relation to the chromosome |
|---|---|---|
| Gene | Part of a chromosome | Component manipulated by operators |
| Chromosome | Encoded solution | The genotype being evolved |
| Individual | Chromosome plus metadata | Holds fitness and, in evolution strategies, step sizes |
| Population | Set of individuals | Pool from which selection draws parents |
| Phenotype | Decoded solution | What the fitness function actually scores |
In evolution strategies with self-adaptation, the individual stores mutation step sizes beside the object variables, and these strategy parameters evolve together with the solution. Some authors treat both parts as one extended chromosome; others keep them separate. Either way, the step sizes are not decoded into the phenotype.
Designing a good chromosome
A well-designed chromosome makes small genotype changes produce small phenotype changes, a property called locality. High locality gives the fitness landscape a usable structure, so mutation behaves like a local search step and crossover can combine useful partial solutions.
- Completeness: every feasible solution should be representable.
- Feasibility: operators should rarely produce invalid offspring, or a repair step should fix them.
- Low redundancy: many genotypes mapping to the same phenotype can slow the search.
- Linkage: genes that interact strongly should sit close together, so one-point crossover does not break them apart.
- Appropriate precision: binary encodings of real numbers need enough bits, often 10 to 30 per variable, to reach the required resolution.
A known pitfall of plain binary encoding is the Hamming cliff: neighboring integers such as 7 (0111) and 8 (1000) differ in every bit. Gray coding removes this effect because consecutive values differ in a single bit, which improves locality for mutation.
Limitations and common misconceptions
The biological metaphor is helpful but misleading when applied too strictly. A computational chromosome has no physical structure, no diploid pairing in most algorithms, and no gene regulation unless the designer adds it explicitly.
- A longer chromosome is not automatically better: it enlarges the search space and can slow convergence sharply.
- Representation and operators must match: standard crossover on a permutation creates duplicates and invalid tours.
- Schema theory has limits: the schema theorem describes expected schema growth under specific assumptions and does not guarantee success.
- Diversity loss is a chromosome-level effect: when most chromosomes share the same alleles, premature convergence follows.
A non-technical view
A chromosome is a recipe for one possible answer to a problem. The computer writes the recipe as a short code, such as a row of numbers. It then tests how good the answer is.
The best recipes are copied and mixed with each other. Small random changes are added too. Over many rounds, the recipes get better at solving the problem, much like breeders improve plants over generations.
A concrete example
A logistics planner uses a genetic algorithm to plan delivery routes for one van serving 60 addresses in a city. Each chromosome is a permutation of the 60 addresses, so every chromosome describes one complete route. The fitness function computes total driving time from a road network, and a penalty is added when a delivery window is missed.
The algorithm keeps a population of 200 chromosomes and uses order crossover with swap mutation, which always produces valid routes without duplicate stops. After about 1,500 generations, the best chromosome describes a route roughly 12 percent shorter than the manually planned route the dispatcher used before. The same engine is later reused for a different fleet simply by changing the decoding and fitness function, while the chromosome type stays a permutation.