1. Not finding help here? Sign up for a free 30min 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!

Subset sum counting

  1. Dec 27, 2011 #1
    1. The problem statement, all variables and given/known data
    How many different ways can £2 be made using any number of coins?
    (In other words, how many ways can you obtain the sum of 200 with terms from the following finite set - 200, 100, 50, 20, 10, 5, 2, 1. Order does not matter.)

    2. Relevant equations
    None?


    3. The attempt at a solution
    No idea.
    I've been mulling over this problem for way too much time now without producing anything viable.
    A PnP solution is beyond me at this point. On the computational side I've been thinking of a recursive solution which should spawn this massive recursion tree and I'm pretty sure there's gotta be a better method out there.
     
  2. jcsd
  3. Dec 27, 2011 #2

    micromass

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2016 Award

    Do you know generating functions??
     
  4. Dec 27, 2011 #3
    Nope...
    First time I've heard of those. I can always read up on them if they are relevant to the solution.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Subset sum counting
  1. Subspace and subset (Replies: 10)

  2. Subset and subspace (Replies: 4)

  3. Subset and subspace (Replies: 1)

  4. Subsets question (Replies: 2)

Loading...