title: algorithm to find best combination
body: <p>Assume that I have a list of 100 products, each of which has a price. Each one also has a energy (kJ) measurement. </p>
  
  <p>Would it be possible to find the best combination of 15 products for under $10 of which the sum of the energy (kJ) was greatest, using programming?</p>
  
  <p>I know C#, but any language is fine. Cheers.</p>
  
  <p><strong>Update:</strong> Having a bit of troble finding some sample source code for the knapsack issue. Does anyone have any or know where to find some. Been googling for a few hours and need to get this sorted by tomorrow if possible. Ta.</p>