|
|
|
Crossover Technique: Order 1
|
Order 1 Crossover
Order 1 Crossover is a fairly simple permutation crossover.
Basically, a swath of consecutive alleles from parent 1
drops down, and remaining values are placed in the child in
the order which they appear in parent 2.
Parent 1: 8 4 7 3 6 2 5 1 9
0
Parent 2: 0 1
2 3
4 5 6
7 8
9
Child 1: 0
4 7
3 6 2 5 1 8 9
Step 1: Select a random swath of
consecutive alleles from parent 1. (underlined)
Step 2: Drop the swath down to
Child 1 and mark out these alleles in Parent 2. |
Order 1 Crossover
Step 3: Starting on the right
side of the swath, grab alleles from parent 2 and insert
them in Child 1 at the right edge of the swath. Since 8 is
in that position in Parent 2, it is inserted into Child 1
first at the right edge of the swath. Notice that alleles 1,
2 and 3 are skipped because they are marked out and 4 is
inserted into the 2nd spot in Child 1.
Step 4: If you desire a second
child from the two parents, flip Parent 1 and Parent 2 and
go back to Step 1. |
Order 1 Performance Order 1 crossover is
perhaps the fastest of all crossover operators because
it requires virtually no overhead operations. On a
generation by generation basis, edge recombination
typically outperforms Order 1, but the fact that Order 1
runs between 100 and 1000 times faster usually allows
the processing of more generations in a given time
period. |
VB.NET 2008 Source Code
|
|