English

Weakly Approximating Knapsack in Subquadratic Time

Data Structures and Algorithms 2025-04-23 v2

Abstract

We consider the classic Knapsack problem. Let tt and OPT\mathrm{OPT} be the capacity and the optimal value, respectively. If one seeks a solution with total profit at least OPT/(1+ε)\mathrm{OPT}/(1 + \varepsilon) and total weight at most tt, then Knapsack can be solved in O~(n+(1ε)2)\tilde{O}(n + (\frac{1}{\varepsilon})^2) time [Chen, Lian, Mao, and Zhang '24][Mao '24]. This running time is the best possible (up to a logarithmic factor), assuming that (min,+)(\min,+)-convolution cannot be solved in truly subquadratic time [K\"unnemann, Paturi, and Schneider '17][Cygan, Mucha, W\k{e}grzycki, and W{\l}odarczyk '19]. The same upper and lower bounds hold if one seeks a solution with total profit at least OPT\mathrm{OPT} and total weight at most (1+ε)t(1 + \varepsilon)t. Therefore, it is natural to ask the following question. If one seeks a solution with total profit at least OPT/(1+ε)\mathrm{OPT}/(1+\varepsilon) and total weight at most (1+ε)t(1 + \varepsilon)t, can Knsapck be solved in O~(n+(1ε)2δ)\tilde{O}(n + (\frac{1}{\varepsilon})^{2-\delta}) time for some constant δ>0\delta > 0? We answer this open question affirmatively by proposing an O~(n+(1ε)7/4)\tilde{O}(n + (\frac{1}{\varepsilon})^{7/4})-time algorithm.

Keywords

Cite

@article{arxiv.2504.15001,
  title  = {Weakly Approximating Knapsack in Subquadratic Time},
  author = {Lin Chen and Jiayi Lian and Yuchen Mao and Guochuan Zhang},
  journal= {arXiv preprint arXiv:2504.15001},
  year   = {2025}
}

Comments

To appear in ICALP2025

R2 v1 2026-06-28T23:05:24.689Z