spider

导航

 

2020年10月29日

摘要: 0-1背包问题属于动态规划范畴。什么是动态规划?就是当前问题的解依赖于子问题的最优解。 个人认为对于0-1背包解释较好的博文:https://www.cnblogs.com/strick/p/13403324.html 本文只给出C#代码实现。 class goods { public int we 阅读全文
posted @ 2020-10-29 10:45 黑色spider 阅读(209) 评论(0) 推荐(0) 编辑