I started to delve into GA a bit here for study and I cannot seem to find an answer to crossover generation break points. For instance if I start with the parents:
Father = [A,B,B,A,C]
Mother = [D,D,B,A,A]
At what point can I legitmately stop producing children to prove that all possible combinations have been exhausted? Code as follows:
void reproduce(String[] father, String[] mother) {
double choice = Math.random() * 100;
if((int) choice % 10 < 2){
//start at father[1] and swap.
//Continue for other choices
This is a small piece as to the logic I am utilizing. So my question comes back to, how can I legitimately determine when to stop creating children? Or is this just a mathematical problem where I should just look at a straight permutation generator and ignore GA for the moment?