Skip to main content
Log in

Improved Dynamic Programming in Connection with an FPTAS for the Knapsack Problem

  • Published:
Journal of Combinatorial Optimization Aims and scope Submit manuscript

Abstract

A vector merging problem is introduced where two vectors of length n are merged such that the k-th entry of the new vector is the minimum over ℓ of the ℓ-th entry of the first vector plus the sum of the first k − ℓ + 1 entries of the second vector. For this problem a new algorithm with O(n log n) running time is presented thus improving upon the straightforward O(n 2) time bound.

The vector merging problem can appear in different settings of dynamic programming. In particular, it is applied for a recent fully polynomial time approximation scheme (FPTAS) for the classical 0–1 knapsack problem by the same authors.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  • H. Kellerer and U. Pferschy, “A new fully polynomial time approximation scheme for the knapsack problem,” Journal of Combinatorial Optimization, vol. 3, pp. 59–71, 1999.

    Google Scholar 

  • E. Lawler, “Fast approximation algorithms for knapsack problems,” Mathematics of Operations Research, vol. 4, pp. 339–356, 1979.

    Google Scholar 

  • M.J. Magazine and O. Oguz, “A fully polynomial approximation algorithm for the 0-1 knapsack problem,” European Journal of Operational Research, vol. 8, pp. 270–273, 1981.

    Google Scholar 

  • S. Martello, D. Pisinger, and P. Toth, “New trends in exact algorithms for the 0-1 knapsack problem,” European Journal of Operational Research, vol. 123, pp. 325–332, 2000.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Kellerer, H., Pferschy, U. Improved Dynamic Programming in Connection with an FPTAS for the Knapsack Problem. Journal of Combinatorial Optimization 8, 5–11 (2004). https://doi.org/10.1023/B:JOCO.0000021934.29833.6b

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1023/B:JOCO.0000021934.29833.6b

Navigation