Crossover (genetic algorithm)

Crossover (genetic algorithm)

In genetic algorithms, crossover is a genetic operator used to vary the programming of a chromosome or chromosomes from one generation to the next. It is analogous to reproduction and biological crossover, upon which genetic algorithms are based. Cross over is a process of taking more than one parent solutions and producing a child solution from them. There are methods for selection of the chromosomes.Those are also given below.

Contents

Methods of selection of chromosomes for crossover

  • Roulette wheel selection

It is also known as fitness proportionate selection.The individual is selected on the basis of fitness.The probability of an individual to be selected increases with the fitness of the individual greater or less than its competitor's fitness.

  • Boltzmann selection
  • Tournament selection
  • Rank selection
  • Steady state selection

Crossover techniques

Many crossover techniques exist for organisms which use different data structures to store themselves.

One-point crossover

A single crossover point on both parents' organism strings is selected. All data beyond that point in either organism string is swapped between the two parent organisms. The resulting organisms are the children:

SinglePointCrossover.png

Two-point crossover

Two-point crossover calls for two points to be selected on the parent organism strings. Everything between the two points is swapped between the parent organisms, rendering two child organisms:

TwoPointCrossover.png

"Cut and splice"

Another crossover variant, the "cut and splice" approach, results in a change in length of the children strings. The reason for this difference is that each parent string has a separate choice of crossover point.

CutSpliceCrossover.png

Uniform Crossover and Half Uniform Crossover

The Uniform Crossover uses a fixed mixing ratio between two parents. Unlike one- and two-point crossover, the Uniform Crossover enables the parent chromosomes to contribute the gene level rather than the segment level. If the mixing ratio is 0.5, the offspring has approximately half of the genes from first parent and the other half from second parent, although cross over points can be randomly chosen as seen below

UniformCrossover.png

The Uniform Crossover evaluates each bit in the parent strings for exchange with a probability of 0.5. Even though the uniform crossover is a poor method, empirical evidence suggest that it is a more exploratory approach to crossover than the traditional exploitative approach that maintains longer schemata. This results in a more complete search of the design space with maintaining the exchange of good information. Unfortunately, no satisfactory theory exists to explain the discrepancies between the Uniform Crossover and the traditional approaches. [1]

In the uniform crossover scheme (UX) individual bits in the string are compared between two parents. The bits are swapped with a fixed probability, typically 0.2.

In the half uniform crossover scheme (HUX), exactly half of the nonmatching bits are swapped. Thus first the Hamming distance (the number of differing bits) is calculated. This number is divided by two. The resulting number is how many of the bits that do not match between the two parents will be swapped.

Three parent crossover

In this technique,the child is derived from three parents.They are randomly chosen.Each bit of first parent is checked with bit of second parent whether they are same.If same then the bit is taken for the offspring otherwise the bit from the third parent is taken for the offspring.

parent1 1 1 0 1 0 0 0 1 0

parent2 0 1 1 0 0 1 0 0 1

parent3 1 1 0 1 1 0 1 0 1

offspring 1 1 0 1 0 0 0 0 1[2]

Crossover for Ordered Chromosomes

Depending on how the chromosome represents the solution, a direct swap may not be possible.

One such case is when the chromosome is an ordered list, such as an ordered list of the cities to be travelled for the traveling salesman problem. There are many crossover methods for ordered chromosomes. The already mentioned N-point crossover can be applied for ordered chromosomes also, but this always need a corresponding repair process, actually, some ordered crossover menthod are derived from the idea. However, sometimes a crossover of chromosomes produces recombinations which violate the constraint of ordering and thus need to be repaired. Several examples for crossover operators (also mutation operator) preserving a given order are given in [3]:

  1. partially-matched crossover (PMX): In this method, two crossover points are selected at random and PMX proceeds by position wise exchanges.The two crossover points give matching selection.It affects cross by position-by-position exchange operations.In this method parents are mapped to each other hence we can also call it partially mapped crossover.[4]
  2. cycle crossover (CX): Beginning at any gene i in parent 1, the i-th gene in parent 2 becomes replaced by it. The same is repeated for the displaced gene until the gene which is equal to the first inserted gene becomes replaced (cycle).
  3. order crossover operator (OX1): A portion of one parent is mapped to a portion of the other parent. From the replaced portion on, the rest is filled up by the remaining genes, where already present genes are omitted and the order is preserved.
  4. order-based crossover operator (OX2)
  5. position-based crossover operator (POS)
  6. voting recombination crossover operator (VR)
  7. alternating-position crossover operator (AP)
  8. sequential constrictive crossover operator (SCX) [5]

Other possible methods include the edge recombination operator and partially mapped crossover.

Crossover biases

For crossover operators which exchange contiguous sections of the chromosomes (e.g. k-point) the ordering of the variables may become important. This is particularly true when good solutions contain building blocks which might be disrupted by a non-respectful crossover operator.

See also

References

  • John Holland, Adaptation in Natural and Artificial Systems, University of Michigan Press, Ann Arbor, Michigan. 1975. ISBN 0-262-58111-6.
  • Larry J. Eshelman, The CHC Adaptive Search Algorithm: How to Have Safe Search When Engaging in Nontraditional Genetic Recombination, in Gregory J. E. Rawlins editor, Proceedings of the First Workshop on Foundations of Genetic Algorithms. pages 265-283. Morgan Kaufmann, 1991. ISBN 1-55860-170-8.
  • Tomasz D. Gwiazda, Genetic Algorithms Reference Vol.1 Crossover for single-objective numerical optimization problems, Tomasz Gwiazda, Lomianki, 2006. ISBN 83-923958-3-2.
  1. ^ (eds.), P.K. Chawdhry ... (1998). Soft computing in engineering design and manufacturing. London: Springer. pp. 164. ISBN 3540762140. http://books.google.com/books?id=mxcP1mSjOlsC. 
  2. ^ Introduction to genetic algorithms By S. N. Sivanandam, S. N. Deepa
  3. ^ Pedro Larrañaga et al., "Learning Bayesian Network Structures by searching for the best ordering with genetic algorithms", IEEE Transactions on systems, man and cybernetics, Vol 26, No. 4, 1996
  4. ^ Introduction to genetic algorithms By S. N. Sivanandam, S. N. Deepa
  5. ^ Ahmed, Zakir H. "Genetic Algorithm for the Traveling Salesman Problem Using Sequential Constructive Crossover Operator." International Journal of Biometric and Bioinformatics 3.6 (2010). Computer Science Journals. Web. <http://www.cscjournals.org/csc/manuscript/Journals/IJBB/volume3/Issue6/IJBB-41.pdf>.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Genetic algorithm — A genetic algorithm (GA) is a search heuristic that mimics the process of natural evolution. This heuristic is routinely used to generate useful solutions to optimization and search problems. Genetic algorithms belong to the larger class of… …   Wikipedia

  • Genetic algorithm in economics — Genetic algorithms are used to model the learning behaviour of economic agents. The term genetic algorithm is often abbreviated as GA. The genetic algorithm is a particular class of evolutionary algorithm inspired by evolutionary biology. A… …   Wikipedia

  • Chromosome (genetic algorithm) — For information about chromosomes in biology, see chromosome. In genetic algorithms, a chromosome (also sometimes called a genome) is a set of parameters which define a proposed solution to the problem that the genetic algorithm is trying to… …   Wikipedia

  • Selection (genetic algorithm) — Selection is the stage of a genetic algorithm in which individual genomes are chosen from a population for later breeding (recombination or crossover).There are several generic selection algorithms, such as tournament selection and fitness… …   Wikipedia

  • Human-based genetic algorithm — In evolutionary computation, a human based genetic algorithm (HBGA) is a genetic algorithm that allows humans to contribute innovative solutions to the evolutionary process. For this purpose, an HBGA has human interfaces for initialization,… …   Wikipedia

  • Crossover — may refer to: Contents 1 Fiction and media 2 Music 3 Genetics 4 …   Wikipedia

  • Mutation (genetic algorithm) — In genetic algorithms of computing, mutation is a genetic operator used to maintain genetic diversity from one generation of a population of algorithm chromosomes to the next. It is analogous to biological mutation.Mutation alters one or more… …   Wikipedia

  • Speciation (genetic algorithm) — Speciation is a process that occurs naturally in evolution and is modeled explicitly in some genetic algorithms. Speciation in nature occurs when two similar reproducing beings evolve to become too dissimilar to share genetic information… …   Wikipedia

  • Genetic representation — is a way of representing solutions/individuals in evolutionary computation methods. Genetic representation can encode appearance, behavior, physical qualities of individuals. Designing a good genetic representation that is expressive and… …   Wikipedia

  • Genetic linkage — is the tendency of certain loci or alleles to be inherited together. Genetic loci that are physically close to one another on the same chromosome tend to stay together during meiosis, and are thus genetically linked. Contents 1 Background 2… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”