Possible Duplicate:
divide an array into two sets with minimal difference
What can be an optimized algorithm to divide an array of numbers such that the difference of sum of the numbers of resultant arrays is minimum. The difference of number of elements in the two arrays can be at maximum one.