in reply to Divide array of integers into most similar value halves

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."

  • Comment on Re: Divide array of integers into most similar value halves