- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
50 2012 ,48 (4 ) Computer Engineering and Applications 计算机工程与应用
求解0-1 背包问题的一种新混合算法
1 1 2
孙怀影 ,耿寅融 ,单 谦
1 1 2
SUN Huaiying , GENG Yinrong , SHAN Qian
1.暨南大学 信息科学技术学院 计算机科学系,广州 510632
2.暨南大学 产业经济研究院 产业经济学系,广州 510632
1.Department of Computer Science, College of Information Science and Technology, Jinan University, Guangzhou 510632, China
2.Department of Industrial Economics, Institute of Industrial Economics, Jinan University, Guangzhou 510632, China
SUN Huaiying, GENG Yinrong, SHAN Qian. New hybrid algorithm to solve 0-1 knapsack problem. Computer Engineering and
Applications ,2012 ,48 (4 ):50-53.
Abstract :When using dynamic programming algorithm to solve 0-1 knapsack problem, its time complexity and space complexity both
are O (nC ). Its space complexity is not acceptable in case of large scale problem. From the recursive equations for computing optimal
value of 0-1 knapsack problem, Memory Efficient Dynamic Programming (MEDP )is proposed. In order to conquer the drawback of
MEDP, a new hybrid algorithm is put forward, which combines divided-and-conquered strategy with it and whose time complexity is O(nC ).
The hybrid algorithm eliminates the backtracking step, while it can find the goods put into the knapsack under the space complexity O (「n/d ⌉+
C), where d is the word length of computer. Experimental result demonstrates that the algorithm works identically with the theory.
Key words :0-1 knapsack problem; dynamic programming; divided-and-conquered; hybrid algorithm
摘 要:用动态规划算法求解0-1 背包问题的时空复杂度为O (nC )。这个空间复杂度在求解大规模问题上是不可接受的。从计
算0-1 背包问题最优值的递归方程出发,给出高效利用内存的动态规划算法。为了克服内存高效的动态规划算法带来的缺点,设
计新混合算法求解0-1 背包问题。该新混合算法的时间复杂度为O(nC );它消除了回溯阶段,并且为求得放入背包的物品所使用
的空间复杂度仅为O(「n/d⌉+C),其中d 为计算机字长。实验结果表明,混合算法的工作效率与理论分析相同。
关键词:0-1 背包问题;动态规划;分治策略;混合算法
DOI :10.3778/j.issn. 1002-8331.2012.04.015 文章编号:1002-8331(2012 )04-0050-04 文献标识码:A
文档评论(0)