In
genetic algorithm
In computer science and operations research, a genetic algorithm (GA) is a metaheuristic inspired by the process of natural selection that belongs to the larger class of evolutionary algorithms (EA). Genetic algorithms are commonly used to gen ...
s, inheritance is the ability of modeled objects to
mate,
mutate (similar to
biological
Biology is the scientific study of life. It is a natural science with a broad scope but has several unifying themes that tie it together as a single, coherent field. For instance, all organisms are made up of cells that process hereditary ...
mutation
In biology, a mutation is an alteration in the nucleic acid sequence of the genome of an organism, virus, or extrachromosomal DNA. Viral genomes contain either DNA or RNA. Mutations result from errors during DNA or viral replication, m ...
), and propagate their problem solving
gene
In biology, the word gene (from , ; "... Wilhelm Johannsen coined the word gene to describe the Mendelian units of heredity..." meaning ''generation'' or ''birth'' or ''gender'') can have several different meanings. The Mendelian gene is a b ...
s to the next
generation
A generation refers to all of the people born and living at about the same time, regarded collectively. It can also be described as, "the average period, generally considered to be about 20–30 years, during which children are born and gro ...
, in order to produce an evolved solution to a particular problem. The
selection
Selection may refer to:
Science
* Selection (biology), also called natural selection, selection in evolution
** Sex selection, in genetics
** Mate selection, in mating
** Sexual selection in humans, in human sexuality
** Human mating strat ...
of objects that will be inherited from in each successive generation is determined by a
fitness function {{no footnotes, date=May 2015
A fitness function is a particular type of objective function that is used to summarise, as a single figure of merit, how close a given design solution is to achieving the set aims. Fitness functions are used in genet ...
, which varies depending upon the problem being addressed.
[Russell, Stuart J.; Norvig, Peter (1995). '' Artificial Intelligence: A Modern Approach''. Englewood Heights, NJ: Prentice-Hall.]
The traits of these objects are passed on through
chromosome
A chromosome is a long DNA molecule with part or all of the genetic material of an organism. In most chromosomes the very long thin DNA fibers are coated with packaging proteins; in eukaryotic cells the most important of these proteins ar ...
s by a means similar to biological
reproduction
Reproduction (or procreation or breeding) is the biological process by which new individual organisms – " offspring" – are produced from their "parent" or parents. Reproduction is a fundamental feature of all known life; each individual o ...
. These chromosomes are generally represented by a series of
gene
In biology, the word gene (from , ; "... Wilhelm Johannsen coined the word gene to describe the Mendelian units of heredity..." meaning ''generation'' or ''birth'' or ''gender'') can have several different meanings. The Mendelian gene is a b ...
s, which in turn are usually represented using
binary number
A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" ( zero) and "1" (one).
The base-2 numeral system is a positional notati ...
s. This propagation of traits between generations is similar to the inheritance of
traits between generations of biological
organism
In biology, an organism () is any life, living system that functions as an individual entity. All organisms are composed of cells (cell theory). Organisms are classified by taxonomy (biology), taxonomy into groups such as Multicellular o ...
s. This process can also be viewed as a form of
reinforcement learning
Reinforcement learning (RL) is an area of machine learning concerned with how intelligent agents ought to take actions in an environment in order to maximize the notion of cumulative reward. Reinforcement learning is one of three basic machine ...
, because the
evolution
Evolution is change in the heritable characteristics of biological populations over successive generations. These characteristics are the expressions of genes, which are passed on from parent to offspring during reproduction. Variation ...
of the objects is driven by the passing of traits from successful objects which can be viewed as a
reward for their success, thereby promoting beneficial traits.
Process
Once a new generation is ready to be created, all of the individuals that have been successful and have been chosen for reproduction are randomly paired together. Then the traits of these individuals are passed on through a combination of
crossover and mutation.
This process follows these basic steps:
# Pair off successful objects for mating.
# Determine randomly a crossover point for each pair.
# Switch the genes after the crossover point in each pair.
# Determine randomly if any genes are mutated in the child objects.
After following these steps, two child objects will be produced for every pair of parent objects used. Then, after determining the success of the objects in the new generation, this process can be repeated using whichever new objects were most successful. This will usually be repeated until either a desired generation is reached or an object that meets a minimum desired result from the fitness function is found.
While crossover and mutation are the common
genetic operators used in inheritance, there are also other operators such as regrouping and colonization-extinction.
Example
Assume these two strings of bits represent the traits being passed on by two parent objects:
* Object 1: 1100011010110001
* Object 2: 1001100110011001
Now, consider that the crossover point is randomly positioned after the fifth bit:
* Object 1: 11000 , 11010110001
* Object 2: 10011 , 00110011001
During crossover, the two objects will swap all of the bits after the crossover point, leading to:
* Object 1: 11000 , 00110011001
* Object 2: 10011 , 11010110001
Finally, mutation is simulated on the objects by there being zero or more bits flipped randomly. Assuming the tenth bit for object 1 is mutated, and the second and seventh bits are mutated for object 2, the final children produced by this inheritance would be:
* Object 1: 1100000111011001
* Object 2: 1101110010110001
See also
*
Artificial intelligence
Artificial intelligence (AI) is intelligence—perceiving, synthesizing, and inferring information—demonstrated by machine
A machine is a physical system using Power (physics), power to apply Force, forces and control Motion, moveme ...
*
Bioinformatics
Bioinformatics () is an interdisciplinary field that develops methods and software tools for understanding biological data, in particular when the data sets are large and complex. As an interdisciplinary field of science, bioinformatics combin ...
*
Speciation (genetic algorithm)
References
External links
BoxCar 2DAn interactive example of the use of a genetic algorithm to construct 2-dimensional cars.
{{DEFAULTSORT:Inheritance (Genetic Algorithm)
Genetic algorithms