[Numpy-discussion] sum up to a specific value

Pauli Virtanen pav@iki...
Thu Jul 1 04:22:27 CDT 2010


Thu, 01 Jul 2010 06:17:50 -0300, Renato Fabbri wrote:
> i need to find which elements of an array sums up to an specific value
> 
> any idea of how to do this?

Sounds like the knapsack problem

http://en.wikipedia.org/wiki/Knapsack_problem



More information about the NumPy-Discussion mailing list