recent I have a request to find noise numbers (up to 20) within a large dataset (up to 10,000), so that the sum of the rest dataset should equal to 0.
I understand itertools.combinations
can do the job only if I have a super powerful PC.
eg. dataset= [1,2,3,4,5,-5,-4,-3,-2,-1,9,8,7, .....]
(len can be upto 10,000). And Noise numbers are [9,8,7]
, because without noise numbers, the sum of the dataset is 0. By the way, in my real case, the numbers are transaction numbers, so they appear pretty random.
My question is there a feasible way for me to perform such task within a fairly short time (like under a few minutes)
Thank you very much