Average-case analysis of a greedy algorithm for the 0/1 knapsack problem

  • Authors:
  • James M. Calvin;Joseph Y. -T. Leung

  • Affiliations:
  • Department of Computer Science, New Jersey Institute of Technology, Newark, NJ 07102, USA;Department of Computer Science, New Jersey Institute of Technology, Newark, NJ 07102, USA

  • Venue:
  • Operations Research Letters
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

We consider the average-case performance of a well-known approximation algorithm for the 0/1 knapsack problem, the decreasing density greedy (DDG) algorithm. Let U"n={u"1,...,u"n} be a set of n items, with each item u"i having a size s"i and a profit p"i, and K"n be the capacity of the knapsack. Given an instance of the 0/1 knapsack problem, let P"L denote the total profit of an optimal solution of the linear version of the problem (i.e., a fraction of an item can be packed in the knapsack) and P"D"D"G denote the total profit of the solution obtained by the DDG algorithm. Assuming that U"n is a random sample from the uniform distribution over (0,1]^2 and K"n=@sn for some constant 0