concept crossover in category algorithms

appears as: crossover, crossover
Algorithms and Data Structures in Action

This is an excerpt from Manning's book Algorithms and Data Structures in Action.

Listing 18.3 | 0-1 Knapsack: chromosome generation
function knapsackChromosomeInitializer(genesNumber)            #1
  chromosome ← []                                #2
  for i in {0,…,genesNumber-1} do
    chromosome[i] ← randomBool().toInt()                     #3
  return chromosome
Figure 18.8 Roulette wheel selection: once again applied to the example of 0-1 knapsack problem we have been describing in this section.
  • With high epistasis, it’s best to prefer random search, and so simulated annealing or, for very high variables interaction, random sampling.
  • What about genetic algorithms? Turns out they work best in a wide range of medium to high epistasis.
  • Therefore, when we design the cost/fitness function for a problem (which, let me state this clearly once again, is one of the most crucial steps to a good solution), we need to be careful about the degree of interaction in order to choose the best technique that we can apply.

    Even more, during the design phase we can try to reduce the dependent variables, whenever it’s possible: this will allow us to use more powerful techniques and ultimately get better solutions.