Since there will always be a solution i'm using the following simple algorithm:
-sort weights in decreasing order -have 2 sums s1=s2=0 -s1 += heaviest rock -s2 += next heaviest -recursively...compare s1 to s2 and add the next rock to whichever is smaller - we end ...