Talk:Knapsack problem/Unbounded: Difference between revisions

(→‎Dynamic Python solution: The decimal points need shifting)
Line 14:
 
The decimal points need shifting in the printout of the Python "Dynamic Programming solution". --[[User:Paddy3118|Paddy3118]] 13:17, 2 January 2009 (UTC)
 
:The problem is that in order to use the dynamic programming solution I had to re-word the problem to only use integer weights and volumes. So the printout is correct for that problem statement. I guess I could manually divide the weights and volumes by the corresponding amounts when I print them, but it doesn't seem like a very nice solution. --[[User:Spoon!|Spoon!]] 22:59, 2 January 2009 (UTC)
Anonymous user