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.
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.
E. Lawler, “Fast approximation algorithms for knapsack problems,” Mathematics of Operations Research, vol. 4, pp. 339–356, 1979.
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.
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.
Author information
Authors and Affiliations
Rights 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
Issue Date:
DOI: https://doi.org/10.1023/B:JOCO.0000021934.29833.6b