12-31-2003, 06:42 PM
First you divide all highest numbers to all groups, then you divide all lowest numbers to each group. That should give a good answer. This is a global algorithm, there could be better answers, but take a look:
LONGs: 8, 6
INTs: 5, 4, 3, 2
My algo: 5 + 2 = 7 and 4 + 3 = 7
One-of-a-time algo: 5 + 3 = 8, 4 + 2 = 6
But take a look: average of my algo is 7, the one of a time algo is 7 as well.
LONGs: 8, 6
INTs: 5, 4, 3, 2
My algo: 5 + 2 = 7 and 4 + 3 = 7
One-of-a-time algo: 5 + 3 = 8, 4 + 2 = 6
But take a look: average of my algo is 7, the one of a time algo is 7 as well.