Step 5:Crossover(交配)
兩個 parent 交換部分基因,產生子代。
單點交配
Parent1: 0101
Parent2: 1010
切點在第2位後 →
Child1: 0110
Child2: 1001
組合不同個體的優點,探索新解空間(Exploration)。
兩個 parent 交換部分基因,產生子代。
Parent1: 0101
Parent2: 1010
切點在第2位後 →
Child1: 0110
Child2: 1001
組合不同個體的優點,探索新解空間(Exploration)。