Fast Algorithms for Knapsack via Convolution and Prediction
Abstract
The \Problem{knapsack} problem is a fundamental problem in combinatorial optimization. It has been studied extensively from theoretical as well as practical perspectives as it is one of the most well-known NP-hard problems. The goal is to pack a knapsack of size with the maximum value from a collection of items with given sizes and values. Recent evidence suggests that a classic dynamic-programming solution for the \Problem{knapsack} problem might be the fastest in the worst case. In fact, solving the \Problem{knapsack} problem was shown to be computationally equivalent to the \Problem{ convolution} problem, which is thought to be facing a quadratic-time barrier. This hardness is in contrast to the more famous \Problem{ convolution} (generally known as \Problem{polynomial multiplication}), that has an -time solution via Fast Fourier Transform. Our main results are algorithms with near-linear running times (in terms of the size of the knapsack and the number of items) for the \Problem{knapsack} problem, if either the values or sizes of items are small integers. More specifically, if item sizes are integers bounded by , the running time of our algorithm is . If the item values are integers bounded by , our algorithm runs in time . Best previously known running times were , and (Pisinger, J. of Alg., 1999).
Cite
@article{arxiv.1811.12554,
title = {Fast Algorithms for Knapsack via Convolution and Prediction},
author = {MohammadHossein Bateni and MohammadTaghi Hajiaghayi and Saeed Seddighin and Cliff Stein},
journal= {arXiv preprint arXiv:1811.12554},
year = {2018}
}