On Apr 20, 2011 1:05 AM, "ai nguyen" <aichuab...@gmail.com> wrote:
>
>
> A population of 20 cows, each one has age and weight (known).

Irrelevant

> Device this population into 2 group, each group has 10 cows.
>
two data sets to compare

> Questions:
> How to pick a cow on each group so that a distribution of AGE and
> WEIGHT on each group is similar.

Which property should have more weight? If neither, than just add them up
and use that result to compare. The sort and loop for each set and store the
index in a value if set1 - set2 is less than the old result.

Show your strategy or/and implement
> it in PERL.

Irrelevant.

>
> Thanks
>
Yeah. But when you ask questions in the future, think about the task, try to
do something (hell, try to fail if you must) and then post. When everyone
knows its homework that probably means that you've failed at failing and
should sleep off your hangover and try again.

Reply via email to