Step 5:Crossover(交配)

兩個 parent 交換部分基因,產生子代。

單點交配

Parent1: 0101
Parent2: 1010
切點在第2位後 →
Child1:  0110
Child2:  1001

組合不同個體的優點,探索新解空間(Exploration)。

相關

遺傳演算法-GA / GA-Step6-Mutation