liveBook · Manning

Natural selection

As explained in Advanced Algorithms and Data Structures

Natural selection is a process in which individuals with traits associated with greater survival or reproduction are more likely to contribute to subsequent generations.

Natural selection favors individuals whose traits improve survival or reproduction, allowing them to contribute more often to subsequent generations. In genetic algorithms, this becomes a population transition mechanism: candidate solutions with better fitness are more likely to influence the next generation. section 18.1.1 section 18.1.5

A genetic-algorithm generation applies the process incrementally:

  • Evaluate every individual using a fitness measure; high fitness means a larger value for maximization and a smaller value for minimization. section 18.1.5
  • Select parents for mating from the current population, combine them with crossover, and mutate the resulting individuals. section 18.1.1

Knapsack and predator-prey examples

For a Mars knapsack problem, solutions containing food with a high calorie-per-weight ratio receive an advantage, while low-fitness solutions are less likely to persist. In a predator-prey simulation, prey that hide behind objects are more effective at escaping predators and therefore better positioned to influence later generations. section 18.1.5 section 18.1.5

How Advanced Algorithms and Data Structures covers it

How deep it goes
Descends from biological analogy to a population-transition procedure with fitness evaluation, elitism, selection, crossover, and mutation.
Examples
Uses a Mars knapsack, calorie-per-weight food choices, and prey hiding strategies to illustrate fitness differences.
What it assumes
Assumes familiarity with organisms, populations, chromosomes, candidate solutions, and fitness evaluation, while establishing their algorithmic correspondence.
What you can do after
Apply it via genetic algorithms to build successive candidate populations from fitness, selection, crossover, mutation, and elitism.
How it connects
Connects natural selection with genetic algorithms, fitness functions, populations, chromosomes, crossover, mutation, and elitism.

Also explained in

Compare how 3 books explain natural 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.