Talk:Knapsack problem/Bounded: Difference between revisions

→‎Some technical details: Pseudo-polynomial time?
(tech notes)
 
(→‎Some technical details: Pseudo-polynomial time?)
Line 1:
==Some technical details==
Some solutions, including my perl one, use the 0-1 problem solution, but counting items with multiples as multiple different items. This is almost a good solution, but not quite: if some items have a huge count, the correct solution will not much care, but the hacked 0-1 solution generally can hang. Try for this example set the beer count to say 1000, and see how well your code copes. --[[User:Ledrug|Ledrug]] 09:11, 22 June 2011 (UTC)
:Hi, wp has the problem marked as taking [[wp:Pseudo-polynomial time]]. Does that mean that there is no better exact algo? --[[User:Paddy3118|Paddy3118]] 16:34, 22 June 2011 (UTC)
Anonymous user