2020-11-28 19:12:53 +0200 | asked a question | Can't get right answer using knapsack solver for big weights Hi, everyone! I try to use knapsack solver in sage to solve subset-sum problem, but can't get right answer. Here's my code: and it'll give an inf. (obviously, choosing the first element in w is the optimal solution) Any help would be appreciated. |
2020-11-28 19:12:53 +0200 | asked a question | Get incorrect answer on knapsack problem with big weights Hi everyone! Recently I try using knapsack problem solver in sage to solve subset-sum problem, but I can't get right answer when the weights are big. Here's the code: and it'll give an inf. Any help would be appreciated. |