关于背包问题的一个新算法
A New Algorithm for Knapsack Problem
-
摘要: 背包问题本质上是一个整数规划问题,但是从计算机角度而言它是一个NP-问题。本文就背包问题给出一个算法复杂度O(n)≤n·B 的算法。尽管这是一个算法复杂度用伪多项式表示的算法,但当背包容积B 不是非常大时其运算效率还是很高的。Abstract: Knapsack proplem is essentially an integer programming problem,but it is a NPproblem in the view of computer algorithms.In this paper,an algorithm,whose complexityO(n)≤n.B,is presented for knapsack problem.Though its algorithm complexity is a pseudo-polynomial,its calculating efficiency is high when knapsack' capacity B is not very big.
下载: