Chromosome · evolutionary computation

Also known as: genome

On this page 7

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.

ConceptMeaning in evolutionary computationExample in a bit-string chromosome
GeneSmallest unit that operators modifyOne bit
LocusPosition of a gene in the chromosomeBit position 7
AlleleValue a gene currently takes0 or 1
GenotypeThe full encoded chromosome01101001…
PhenotypeDecoded solution that is evaluatedParameter value 13.7
Building blocks of a chromosome

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.

RepresentationGene typeTypical problemsSuitable operators
Binary stringBitsFeature selection, knapsackBit-flip mutation, one-point crossover
Real-valued vectorFloating-point numbersContinuous parameter optimizationGaussian mutation, blend crossover
Integer vectorIntegers within rangesConfiguration and assignmentRandom resetting, uniform crossover
PermutationOrdered unique itemsTraveling salesman, schedulingSwap mutation, order crossover
TreeFunctions and terminalsGenetic programming, symbolic regressionSubtree crossover and mutation
Graph or networkNodes and connectionsNeuroevolution, circuit designAdd-node, add-link, weight mutation
Common chromosome representations and their typical use

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.

TermScopeRelation to the chromosome
GenePart of a chromosomeComponent manipulated by operators
ChromosomeEncoded solutionThe genotype being evolved
IndividualChromosome plus metadataHolds fitness and, in evolution strategies, step sizes
PopulationSet of individualsPool from which selection draws parents
PhenotypeDecoded solutionWhat the fitness function actually scores
How the chromosome relates to neighboring concepts

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.