Believe me I've tried, just can't seem to get my head around this problem for some reason
Type: Posts; User: Fork
Believe me I've tried, just can't seem to get my head around this problem for some reason
I want to work out the max value of items that can be placed in a bag under a weight constraint C. I have the values and weights of the items stored in two arrays and i want to make another array...
Nice one, thanks for the help :D
By the way some guy called Napier came up with the algorithm, I know the maths is kind of confusing but it does work
This program I wrote calculates the log of a certain number. Problem is we're supposed to use a recursive function, I tried to use one but the way I have it it could easily be replaced by putting the...