首页 | 官方网站   微博 | 高级检索  
     

求解0-1背包问题的一种新混合算法
引用本文:孙怀影,耿寅融,单谦.求解0-1背包问题的一种新混合算法[J].计算机工程与应用,2012,48(4):50-53.
作者姓名:孙怀影  耿寅融  单谦
作者单位:1. 暨南大学信息科学技术学院计算机科学系,广州,510632
2. 暨南大学产业经济研究院产业经济学系,广州5 10632
摘    要:用动态规划算法求解0-1背包问题的时空复杂度为O(nC)。这个空间复杂度在求解大规模问题上是不可接受的。从计算0-1背包问题最优值的递归方程出发,给出高效利用内存的动态规划算法。为了克服内存高效的动态规划算法带来的缺点,设计新混合算法求解0-1背包问题。该新混合算法的时间复杂度为O(nC);它消除了回溯阶段,并且为求得放入背包的物品所使用的空间复杂度仅为O(「n/d」+C),其中d为计算机字长。实验结果表明,混合算法的工作效率与理论分析相同。

关 键 词:0-1背包问题  动态规划  分治策略  混合算法
修稿时间: 

New hybrid algorithm to solve 0-1 knapsack problem
SUN Huaiying , GENG Yinrong , SHAN Qian.New hybrid algorithm to solve 0-1 knapsack problem[J].Computer Engineering and Applications,2012,48(4):50-53.
Authors:SUN Huaiying  GENG Yinrong  SHAN Qian
Affiliation:1.Department of Computer Science, College of Information Science and Technology, Jinan University, Guangzhou 510632, China2.Department of Industrial Economics, Institute of Industrial Economics, Jinan University, Guangzhou 510632, China
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 O-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 ( nl d] + C), where d is the word length of computer. Experimental result demonstrates that the algorithm works identically with the theory.
Keywords:0-1 knapsack problem  dynamic programming  divided-and-conquered  hybrid algorithm
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号