1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Nesting Algorithm

  1. Oct 6, 2014 #1
    Hey guys,

    I'm searching a formula for this kind of situation :

    We have a list of values (33,60,50,15,100) and a target (520). We want to know how many times each value can go in the target (close to) with those specifications :

    - Maximum 2 different value at the time
    - Minimum use of values

    I'm pretty sure, there is a formula out there that respond to our situation.

    Best regards,

    P.S.: Forgive my English speaking, it's not my primary language.
  2. jcsd
  3. Oct 6, 2014 #2


    User Avatar
    Science Advisor

    Your description of what you are looking for is very unclear. Give an example of what you are trying to describe.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook