Fast approximation algorithms for knapsack problems

  • Authors:
  • E. L. Lawler

  • Affiliations:
  • -

  • Venue:
  • SFCS '77 Proceedings of the 18th Annual Symposium on Foundations of Computer Science
  • Year:
  • 1977

Quantified Score

Hi-index 0.00

Visualization

Abstract

Fully polynomial approximation algorithms for knapsack problems are presented. These algorithms are based on ideas of Ibarra and Kim, with modifications which yield better time and space bounds, and also tend to improve the practicality of the procedures. Among the principal improvements are the introduction of a more efficient method of scaling and the use of a median-finding routine to eliminate sorting. The 0-1 knapsack problem, for n items and accuracy ε 0, is solved in (n log(1/ε) + 1/ε4) time and 0(n + 1/ε3) space. The time bound is reduced to 0(n + 1/ε3) for the "unbounded" knapsack problem. For the "subset-sum" problem, 0(n + 1/ε3) time and 0(n + 1/ε2) space, or 0(n + 1/ε2 log (1/ε)) time and space, are achieved. The "multiple choice" problem, with m equivalence classes, is solved in 0(nm2/ε) time and space.