[Numpy-discussion] sum up to a specific value

Pauli Virtanen pav at iki.fi
Thu Jul 1 05:22:27 EDT 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