You could start out taking groups of two (or larger) and try to create groupings that equal each other as a seed (I am not certain that you could have teams that are of different lengths.) and then start adding equal groups as such.
I could see some potential difficulties with this solution though (if you find that the rest of the numbers cannot be divided equally among the rest of the groups, then you will have to throw the run out.)
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
it is not just happen but always the sum of all number is equal to 1000. This algorithm i m trying to build is for a statistical program i m trying to build for a lucky game like LOTTO.
I want to make a generic algorithm to produce the 4 teams i stated above so i can use it thorough out my program.
the numbers are going to change but their total sum will always be 1000
Had a go thought it may be possible.. but I don't think it is with these numbers.
1) Can only get one team of 250 - the rest are 240 or 260 perhaps
2) this is the one I really thought would work - but doesn't appear too. OK, so I based it on the division by 6 - but if only one 10 is outside that division then it won't balanec (two teams equal)...
Attached is my attempts - sorry I couldn't help. A rethink is in order I believe
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...