I think you did not read about the problem or did not understand what you read. However. An algorithm for that problem can be found (in english) on arXive.org.
In reply to Re^5: Divide array of integers into most similar value halves
by Skeeve
in thread Divide array of integers into most similar value halves
by Pepe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |