Weakly Approximating Knapsack in Subquadratic Time
Abstract
We consider the classic Knapsack problem. Let t and OPT be the capacity and the optimal value, respectively. If one seeks a solution with total profit at least OPT/(1 + ) and total weight at most t, then Knapsack can be solved in O(n + (1)2) time [Chen, Lian, Mao, and Zhang '24][Mao '24]. This running time is the best possible (up to a logarithmic factor), assuming that (,+)-convolution cannot be solved in truly subquadratic time [K\"unnemann, Paturi, and Schneider '17][Cygan, Mucha, Wegrzycki, and Wodarczyk '19]. The same upper and lower bounds hold if one seeks a solution with total profit at least OPT and total weight at most (1 + )t. Therefore, it is natural to ask the following question. If one seeks a solution with total profit at least OPT/(1+) and total weight at most (1 + )t, can Knsapck be solved in O(n + (1)2-δ) time for some constant δ > 0? We answer this open question affirmatively by proposing an O(n + (1)7/4)-time algorithm.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.