29 int position = state_->getRandomizer()->getRandomInteger(p1->getSize()-1);
32 std::map<int, int> subSet;
35 for(
int i = 0; i <= position; i++) {
36 ch->variables[i] = p1->variables[i];
38 subSet[p1->variables[i]] = 0;
42 int left = (int) p1->getSize() - position - 1;
44 int indexChild = position + 1;
48 for(
int ind2 = 0; ind2 < (int) p1->getSize() && left>0; ind2++) {
49 if(subSet.find(p2->variables[ind2]) == subSet.end()) {
50 ch->variables[indexChild] = p2->variables[ind2];