metahacker: And then a miracle occurs... (You need to be more explicit in step 2, here!)  (miracle)
metahacker ([personal profile] metahacker) wrote in [personal profile] nonethefewer 2017-05-28 04:09 pm (UTC)

There's an algorithm for generating them, but not a fast one. This is the knapsack problem, which is NP complete...so the "obvious" solution is also the fastest one. (Basically, generate each possible combination in order.)

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting