29 std::map<int, int> invP1, invP2, index;
33 for (
int i = 0; i < (int) p1->getSize(); i++) {
34 invP1[p1->variables[i]] = i;
35 invP2[p2->variables[i]] = i;
39 int rand = state_->getRandomizer()->getRandomInteger(0,1);
45 ch->variables[j] = p1->variables[j];
47 j = invP2[ch->variables[j]];
49 ch->variables[j] = p2->variables[j];
51 j = invP1[ch->variables[j]];
56 while (j < (
int) p1->getSize() && index[j])
58 }
while (j < (
int) p1->getSize());