Looking for a solution to the subset sum problem for this specific case (in C# or else algorithm):
1) There are about 1,000 numbers in set (might grow to few thousand)
2) Sums run into the billions
3) The numbers are currency values so have a precision of two decimal places (e.g. 2,345.17)
4) Numbers in set can be both positive and negative (so dealing with net sum)
I then need to repeat this search (with same set of numbers) but different sum, up to 1,000 times. And finally the whole process runs 1,000 times. So we're looking at 1,000,000 runs. The goal is to accomplish that in 2 minutes. That means each run should take no more than 0.12 ms.
Is this feasible?
-Krip