liveBook · Manning

Chromosome

A chromosome is an encoded representation of a candidate solution in an evolutionary algorithm, composed of genes or other solution components.

How 5 Manning books explain it

Advanced Algorithms and Data Structures

Chromosome encoding is the representation of a candidate solution as a chromosome composed of genes.

How it is used
Represents candidate solutions as genes that a genetic algorithm can initialize, recombine, mutate, and evaluate.
How deep it goes
Works through bit-string and permutation encodings, operator implementations, and constraint handling; leaves maximum-flow implementation to the reader.
Examples
Uses Mars-mission knapsack packing, traveling-salesperson tours, vertex cover, and maximum flow to contrast encodings.
What you can do after
Build it from scratch by choosing genes and adapting initialization, fitness, crossover, and mutation to the solution's constraints.

Read how Advanced Algorithms and Data Structures explains chromosome →

Classic Computer Science Problems in Swift: Essential techniques for practicing programmers

A chromosome is a candidate solution representation that provides fitness evaluation, copying, random initialization, crossover, mutation, and human-readable output for a genetic algorithm.

How it is used
Represents candidate solutions that a genetic algorithm evaluates and evolves across generations.
How deep it goes
Defines a six-part Swift protocol and works through a puzzle encoding, while leaving chromosome design problem-specific.
Examples
Uses a SEND+MORE=MONEY letter-to-digit array and proposes a BitString implementation as an exercise.
What you can do after
Build it from scratch by implementing the Chromosome protocol for a candidate representation and its fitness, crossover, and mutation.

Read how Classic Computer Science Problems in Swift: Essential techniques for practicing programmers explains chromosome →

Optimization Algorithms: AI techniques for design, planning, and control problems

A chromosome is an encoded candidate solution in a genetic algorithm, with elements representing decision values or solution components.

How it is used
Represents candidate solutions that a genetic algorithm evaluates and evolves to optimize a ticket price.
How deep it goes
Defines encoding schemes and works through binary initialization, scoring, crossover, and mutation; names real-value and permutation encoding without comparable walkthroughs.
Examples
Uses eight-bit ticket-price candidates, an initial population with profit scores, and Python implementations using binary lists and pymoo.
What you can do after
Build it from scratch by initializing, decoding, scoring, and evolving binary chromosomes for the ticket-pricing example.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains chromosome →

Evolutionary Deep Learning: Genetic algorithms and neural networks

A computational chromosome is an encoded segment of a candidate solution that groups genes for evolutionary variation and recombination.

How it is used
Represents candidate solutions as gene sequences that evolutionary operators can mutate and recombine.
How deep it goes
Defines chromosome structure and coding choices, then demonstrates multi-chromosome GEP configuration without developing biological or algorithmic theory deeply.
Examples
Uses binary or arbitrary-valued gene sequences, multi-chromosome GEP individuals, and an evolved equation simplified to 6*x1 + 22.
What you can do after
Apply it via Geppy to define chromosome structure, evolve expression-based solutions, and inspect simplified results.

Read how Evolutionary Deep Learning: Genetic algorithms and neural networks explains chromosome →

Grokking AI Algorithms, Second Edition

A chromosome is an encoded representation of a candidate solution in an evolutionary algorithm, consisting of gene or solution-value components.

How it is used
Represents candidate solutions so evolutionary algorithms can initialize, evaluate, recombine, and mutate populations.
How deep it goes
Defines genes, alleles, genotypes, and phenotypes, then works through binary encoding, validity, crossover, and mutation; defers other encodings.
Examples
Uses binary Knapsack chromosomes, a nine-gene word-selection chromosome, two-point crossover, and bit-string mutation.
What you can do after
Build it from scratch by encoding solutions, generating valid populations, and applying crossover or mutation to chromosome genes.

Read how Grokking AI Algorithms, Second Edition explains chromosome →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.