If you want the best solution, 100 values is not a small list for, at first approximation you need about (n/2)! tries to check all the possible partitions.
You could use a couple of tricks to reduce the range of solutions:
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
In reply to Re: Divide array of integers into most similar value halves
by psini
in thread Divide array of integers into most similar value halves
by Pepe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |