marked[coord] = true;
System.out.println("gvalue at "+linearCoordDestination+" is "+value);
return;
}
Node node = variableList.get(control);
if (control == index) {
// if the current iterated variable is the one we want to delete, then iterate only until 1,
// because the position 0 will hold the sum.
for (int i = node.getStatesSize()-1; i >= 1; i--) {
sumAux(control-1, index, coord + i*factorsPT[control], i*factorsPT[index], marked);
}
} else {
for (int i = node.getStatesSize()-1; i >= 0; i--) {
sumAux(control-1, index, coord + i*factorsPT[control], base, marked);
}
}
}