OX preserves the relative order of elements from one parent. Specifically, it preserves a contiguous block of positions from parent 1, and the relative order of remaining elements from parent 2.

  1. Choose cut points .
  2. Copy segment into the child at the same positions.
  3. Starting from position in (wrap around), fill empty child slots with elements not already present, preserving ‘s order.

Variation Operators for Permutation Genetic Algorithms-1771793092336.webp

Variation Operators for Permutation Genetic Algorithms-1771793111191.webp

So the end result would be: .

Variation Operators for Permutation Genetic Algorithms-1771793187909.webp

Another example:

For some reason this example fills cyclically from position ? But the first one fills in order from the start.