Talk:Subset sum problem: Difference between revisions

(→‎how many solutions?: replying to query about "doable"? -- ~~~~)
Line 23:
 
:::: Yes (apart from the fact that there would be less solutions listed, but that computing time isn't much compared to the summing of the weights for the various combinations). The REXX solution I coded doesn't care what the weights are, it still adds them together to see if they sum to zero (actually, some particular target in this case which just happens to be zero). I was thinking about added some optimization --- sorting the weights in ascending order, and then taking advantage of the fact that if the sum gets "too large", the rest of the weights need not be summed, and also eliminating any outlier weights, but I didn't. As it turns out, their are no outlier weights, but still, the code couldn've been added. -- [[User:Gerard Schildberger|Gerard Schildberger]] 05:13, 8 May 2012 (UTC)
 
::::: Er no, try the example above, and see how long it takes. I'm rather curious where you draw the line between "doable" and "not". --[[User:Ledrug|Ledrug]] 05:32, 8 May 2012 (UTC)
Anonymous user