Page 1 of 1

help me wid dis

Posted: Tue Nov 22, 2005 1:18 pm
by skinnyguy
the problem:
i have the weight of any number of coins...
i have also the specification of the coins in my currency as... weight and value.
i have to find the minimum possible value with which the weight can be filled...

what do you blv is the fastest way ta do it?

Posted: Sun Dec 04, 2005 12:45 am
by _Rifat_
You may cite sample for this problem.

Re: help me wid dis

Posted: Sat Dec 10, 2005 2:51 pm
by Martin Macko
skinnyguy wrote:the problem:
i have the weight of any number of coins...
i have also the specification of the coins in my currency as... weight and value.
i have to find the minimum possible value with which the weight can be filled...

what do you blv is the fastest way ta do it?
If the weights and values are integers, you can use straightforward DP.