摘要: # 0-1背包问题 > 参考链接:https://en.wikipedia.org/wiki/Knapsack_problem ```java /** * 0-1背包问题 * 将n个价值为v,重量为v的物品放入限重为W的背包中,要求背包中物品的价值最高。 * */ import java.util. 阅读全文
posted @ 2023-06-11 18:16 funflux 阅读(25) 评论(0) 推荐(0)