|
for (i=0;i<arrayLength;i++) |
rather than exchanging factors randomly we should try to maintain similarish size by exchanging big factors for either similarly big factors or a collection of small factors that comes out similarly big. No need to do the full multiplication to determine this, inspecting the position of the top set bits should be a good enough heuristic.
geneticFactorTree/src/FactorTree.cpp
Line 51 in 85d7a61
rather than exchanging factors randomly we should try to maintain similarish size by exchanging big factors for either similarly big factors or a collection of small factors that comes out similarly big. No need to do the full multiplication to determine this, inspecting the position of the top set bits should be a good enough heuristic.