Are there any 'tricks' to speed up sampling of a very large knapsack combination type prob?

前端 未结 9 1934
情话喂你
情话喂你 2020-12-29 10:21

UPDATE: I have realized the problem below is not possible to answer in its current form because of the large amount of data involved(15k+ items). I just found out, the

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 10:43

    If you do not have to have exhaustive and precise solution, you can try to approximate the problem. The program will then run in pseudo-polynomial or even polynomial time.

    See http://en.m.wikipedia.org/wiki/Knapsack_problem#Approximation_algorithms

提交回复
热议问题