Abstract
We show various hardness results for knapsack and related problems; in particular we will show that unless the Exponential-Time Hypothesis is false, subset-sum cannot be approximated any better than with an FPTAS. We also provide new unconditional lower bounds for approximating knapsack in Ketan Mulmuley’s parallel PRAM model. Furthermore, we give a simple new algorithm for approximating knapsack and subset-sum, that can be adapted to work for small space, or in small parallel time.
Similar content being viewed by others
Notes
More precisely, the contents of a register at any given time-step is a polynomial in these parameters, but precisely which polynomial depends on the outcomes of previous conditionals (greater-than-zero instructions).
While the max-flow problem, like any problem in P, reduces to the knapsack problem, it does not seem to be possible to have such a reduction in a way that preserves the bit-length of the numerical parameters (the flow capacities). So the lower bound for max-flow does not imply a lower bound for the knapsack problem.
Intuitively, there is good reason to believe that such a reduction does not exist. The subset-sum problem is a “purely numerical” problem, in the sense that it has no combinatorial structure whatsoever; hence the combinatorial structure of a max-flow problem (the graph itself) will need to be somehow encoded in the numbers of the subset-sum problem we would wish to reduce to; but this graph can be much larger than the bit-lengths of the edge weights.
And undefined if I′ and I″ are both undefined.
To see this, notice that the maximum of W-many a-bit numbers can be computed by AC circuits of size O(W2a2), and the basic case can be computed by a circuit of size O(b).
This is the problem of scheduling tasks to processors of different speeds, while attempting to minimize execution time. Hence each task t in a set of tasks T has a length l(t), and each processor p in a set of processors P has a speed factor s(p). We wish to find an assignment of the tasks f : T → P minimizing completion time: \(\max _{p \in P} \sum _{t : f(t) = p} l(t) s(p)\).
The encoding of the circuit could be changed to make this lookup easier.
Here it is worth pointing out: this is the reason we need to “pad” each block of the weights with additional bits. This bears some resemblance to the superincreasing sequences used in the Merkle-Hellman knapsack cryptosystem.
Here we extend the knapsack problem to the reals. This can easily be done due to it being a homogeneous optimization problem, i.e. \(S(\alpha \bar w, \alpha W) = \alpha S(\bar w, W)\) for any real α. We could avoid this, except that it makes the definitions easier to visualize.
We will also use the notation \(Y_{(i_{1}, i_{2})}^{(0)}, Y_{(i_{1}, i_{2})}^{(1)}\) to denote the items corresponding to the variable \(y_{(i_{1}, i_{2})}\).
By this we mean that each C j , for j = 1, … , 30K, is one of the three items \(G_{j}^{\prime (00)}, G_{j}^{\prime (01)}, G_{j}^{\prime (10)}\) for some j ′, that appear in the proof of Theorem 5. We group them together because we will treat them in the exact same way.
References
Bach, E., Shallit, J.: Algorithmic Number Theory I: Efficient Algorithms. Cambridge University Press (1996)
Barrington, D.A.: Bounded-width polynomial-size branching programs recognize exactly those languages in NC 1. J. Comput. Syst. Sci. 38(1), 150–164 (1989)
Bellman, R.: Bottleneck problems and dynamic programming. Proc. Natl. Acad. Sci. USA 39(9), 947–951 (1953)
Buss, S. R.: The boolean formula value problem is in ALOGTIME. In: Proceedings of the 19th STOC, pp. 123–131 (1987)
Buss, S.R., Cook, S.A., Gupta, A., Ramachandran, V.: An optimal parallel algorithm for formula evaluation. SIAM J. Comput. 21, 755–780 (1992)
Crescenzi, P., Kann, V.: A compendium of NP optimization problems. http://www.nada.kth.se/viggo/problemlist/compendium.html (2005)
Cygan, M., Dell, H., Lokshtanov, D., Marx, D, Nederlof, J, Okamoto, Y, Paturi, R, Saurabh, S, Wahlström, M: On problems as hard as CNF-SAT. In: Proceedings of the 27th CCC, pp. 74–84 (2012)
Håstad, J: Some optimal inapproximability results. J. ACM 48(4), 798–859 (2001)
Hochbaum, S.S., Shmoys, D.B.: A polynomial approximation scheme for machine scheduling on uniform processors: Using the dual approach. SIAM J. Comput. 17, 539–551 (1988)
Horowitz, E., Sahni, S.: Computing partitions with an application to the subset-sum problem. J. ACM 20(2), 277–292 (1974)
Impagliazzo, R., Paturi, R.: The complexity of k-SAT. In: Proceedings of the 14th CCC, pp. 237–240 (1999)
Impagliazzo, R., Paturi, R., Zane, F.: Which problems have strongly exponential complexity? J. Comput. Syst. Sci. 63(4), 512–530 (2001)
Lewin, M., Livnar, D, Zwick, U: Improved rounding techniques for the MAX 2-SAT and MAX DI-CUT problems. In: Proceedings of the 9th ICPO, pp. 67–82 (2002)
Lokshtanov, D., Nederlof, J.: Saving space by algebraization. In: Proceedings of the 42nd STOC, pp. 321–330 (2010)
Mulmuley, K.: Lower bounds in a parallel model without bit operations. SIAM J. Comput. 28(4), 1460–1509 (1999)
Myasnikov, A., Nikolaev, A., Ushakov, A.: Knapsack problems in groups. ArXiv:1302.5671 (2013)
Nederlof, J, Leeuwen, E.J.v., Zwaan, R.v.d.: Reducing a target interval to a few exact queries. In: Proceedings of the 37th MFCS, pp. 718–727 (2012)
Raz, R, Safra, S: A sub-constant error-probability low-degree test, and a sub-constant error-probability PCP characterization of NP. In: Proceedings of the 29th STOC, pp. 475–484 (1997)
Sen, S: The hardness of speeding-up knapsack. Technical report, BRICS (1998)
Stockmeyer, LJ., Meyer, AR.: Word problems requiring exponential time. In: Proceedings of the 5th STOC, pp. 1–9 (1973)
Vazirani, V.V.: Approximation Algorithms. Springer (2004)
Acknowledgments
We thank Ulle Endriss for asking the question that led to this paper, as well as Karl Bringmann, Radu Curticapean, and Dominik Scheder for pointing out that the sparsification lemma would give the full contradiction with the ETH.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Buhrman, H., Loff, B. & Torenvliet, L. Hardness of Approximation for Knapsack Problems. Theory Comput Syst 56, 372–393 (2015). https://doi.org/10.1007/s00224-014-9550-z
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00224-014-9550-z