首页 | 本学科首页   官方微博 | 高级检索  
     

基于0/1背包问题的算法探究
引用本文:张景成,戴光明.基于0/1背包问题的算法探究[J].数字社区&智能家居,2007,2(6):1388-1389,1411.
作者姓名:张景成  戴光明
作者单位:中国地质大学计算机学院,湖北武汉430074
摘    要:0/1背包问题是计算机科学中的一个经典问题。动态规划法,递归法,回溯法是求解该问题的三种典型方法,使用这三种方法求解0/1背包问题,并对各算法进行了理论分析。用不同规模的0/1背包问题对三种算法进行测试,比较它们的运行时间,发现测试结果与其理论分析结果相符.最后指出就求解不同规模的0/1背包问题而言各算法的优劣。

关 键 词:背包问题  动态规划  递归法  回溯法
文章编号:1009-3044(2007)11-21388-02
修稿时间:2007-04-10

On the Algorithm of the 0/1 Knapsack Problem
ZHANG Jing-cheng,DAI Guang-ming.On the Algorithm of the 0/1 Knapsack Problem[J].Digital Community & Smart Home,2007,2(6):1388-1389,1411.
Authors:ZHANG Jing-cheng  DAI Guang-ming
Affiliation:School Of Computer,China UniversiW Of Geoscience,Wuhan 430074,China
Abstract:The 0/1 knapsack problem is a classic problem in the computer science.dynamic programming,recursion and backtracking are three kinds of typical algorithms to solve the 0/1 knapsack problem.It solves the 0/1 knapsack problem through these three methods and provides analysis for each algorithm.Through testing these three kinds of algorithms and comparing their running time under different scale,it find that the result of test tally with that of theoretical analysis,and finally point out the advantage and disadvantage of each algorithm as for solving different scale of 0/1 knapsack problem.
Keywords:knapsack problem  dynamic programming  recursion  backtracking
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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