liveBook · Manning

Selection

As explained in Advanced Algorithms and Data Structures

A selection technique is a genetic-algorithm method for choosing individuals that survive or reproduce in the next generation.

Selection chooses which genetic-algorithm individuals reproduce or survive into the next generation. In a knapsack optimization, it can preserve strong solutions, block weak ones, or probabilistically favor fitter organisms. section 18.1.6

Choose a technique according to the desired balance between preserving fitness and exploring alternatives:

  • Elitism copies the best individuals unchanged, ensuring that the best population fitness improves monotonically across generations, though average fitness need not improve. section 18.1.6
  • Thresholding excludes individuals below a fixed fitness requirement or discards a chosen number of the weakest individuals. section 18.1.6

How Advanced Algorithms and Data Structures covers it

How deep it goes
Defines four techniques and gives pseudocode for tournament and roulette-wheel implementation, but does not develop full algorithm integration.
Examples
Demonstrates selection with a 0-1 knapsack population, including elitism, thresholding, tournament selection, and roulette-wheel diagrams.
What it assumes
Assumes genetic-algorithm populations and fitness values while distinguishing reproduction, mating, mutation, and generation replacement.
What you can do after
Apply it via tournament or roulette-wheel pseudocode to choose mating candidates from a population.
How it connects
Connects selection with genetic algorithms, fitness functions, populations, mating, mutation, and exploration.

Also explained in

Compare how 5 books explain selection →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Advanced Algorithms and Data Structures. The section links point to the parts of the book it draws on.