S
Seth Brundle
Say I have a hash with peoples names and a quality score, like their free
throw percentage.
Mathematically what is the most accurate way to divide the list into the two
most balanced teams?
Obviously you could do something simple like alternate in descending order,
but this isnt guaranteed to produce the most accurate result.
Ideally, I would like to be able to balance based on the mean, median, or
both.
Code isnt necessary but of course appreciated - but if you have a link to
the fundementals of solving such a problem thats fine to - I want to learn
to do it for myself.
throw percentage.
Mathematically what is the most accurate way to divide the list into the two
most balanced teams?
Obviously you could do something simple like alternate in descending order,
but this isnt guaranteed to produce the most accurate result.
Ideally, I would like to be able to balance based on the mean, median, or
both.
Code isnt necessary but of course appreciated - but if you have a link to
the fundementals of solving such a problem thats fine to - I want to learn
to do it for myself.