A Dynamic Programming Heuristic for the Quadratic Knapsack Problem

It is well known that the standard (linear) knapsack problem can be solved exactly by dynamic programming in 𝒪(nc) time, where n is the number of items and c is the capacity of the knapsack. The quadratic knapsack problem, on the other hand, is NP-hard in the strong sense, which makes it unlikely that it can be solved in pseudo-polynomial time. We show, however, that the dynamic programming approach to the linear knapsack problem can be modified to yield a highly effective constructive heuristic for the quadratic version. In our experiments, the lower bounds obtained by our heuristic were consistently within a fraction of a percent of optimal. Moreover, the addition of a simple local search step enabled us to obtain the optimal solution of all instances considered.

[1]  G. Dantzig Discrete-Variable Extremum Problems , 1957 .

[2]  Philippe Michelon,et al.  Lagrangean methods for the 0-1 Quadratic Knapsack Problem , 1996 .

[3]  P ? ? ? ? ? ? ? % ? ? ? ? , 1991 .

[4]  R. Bellman Dynamic programming. , 1957, Science.

[5]  Aditya Bhaskara,et al.  Detecting high log-densities: an O(n¼) approximation for densest k-subgraph , 2010, STOC '10.

[6]  Paolo Toth,et al.  Knapsack Problems: Algorithms and Computer Implementations , 1990 .

[7]  Hans Kellerer,et al.  Fully Polynomial Approximation Schemes for a Symmetric Quadratic Knapsack Problem and its Scheduling Applications , 2010, Algorithmica.

[8]  Gerhard J. Woeginger,et al.  The quadratic 0-1 knapsack problem with series-parallel support , 2002, Oper. Res. Lett..

[9]  Egon Balas,et al.  An Algorithm for Large Zero-One Knapsack Problems , 1980, Oper. Res..

[10]  Deeparnab Chakrabarty,et al.  Knapsack Problems , 2008 .

[11]  Paolo Toth,et al.  Exact Solution of the Quadratic Knapsack Problem , 1999, INFORMS J. Comput..

[12]  P. Hammer,et al.  Quadratic knapsack problems , 1980 .

[13]  P. Hansen,et al.  Best network flow bounds for the quadratic knapsack problem , 1989 .

[14]  Alain Billionnet,et al.  Linear programming for the 0–1 quadratic knapsack problem , 1996 .

[15]  Subhash Khot,et al.  Ruling out PTAS for graph min-bisection, densest subgraph and bipartite clique , 2004, 45th Annual IEEE Symposium on Foundations of Computer Science.

[16]  David Pisinger,et al.  The quadratic knapsack problem - a survey , 2007, Discret. Appl. Math..

[17]  David Pisinger,et al.  Solution of Large Quadratic Knapsack Problems Through Aggressive Reduction , 2007, INFORMS J. Comput..

[18]  Bahram Alidaee,et al.  Solving Quadratic Knapsack Problems by Reformulation and Tabu Search: Single Constraint Case , 2002 .