Large W limit of the knapsack problem

Mobolaji Williams
6/22/2021
1 citation
cond-mat.stat-mechcs.DSmath-ph

Official code: mowillia/LargeWKP (0 stars, Jupyter Notebook, last commit 2023-03-18).

Abstract

We formulate the knapsack problem (KP) as a statistical physics system and compute the corresponding partition function as an integral in the complex plane. The introduced formalism allows us to derive three statistical-physics-based algorithms for the KP: one based on the recursive definition of the exact partition function; another based on the large weight limit of that partition function; and a final one based on the zero-temperature limit of the second.

Show full abstract

Comparing the performances of the algorithms, we find that they do not consistently outperform (in terms of runtime and accuracy) dynamic programming, annealing, or standard greedy algorithms. However, the exact partition function is shown to reproduce the dynamic programming solution to the KP, and the zero-temperature algorithm is shown to produce a greedy solution. Therefore, although dynamic programming and greedy solutions to the KP are conceptually distinct, the statistical physics formalism introduced in this work reveals that the large weight-constraint limit of the former leads to the latter. We conclude by discussing how to extend this formalism in order to obtain more accurate versions of the introduced algorithms and to other similar combinatorial optimization problems.

View on arXivView PDF

Code Implementations(1)

mowillia/LargeWKPOfficial100%

Large W Limit of Knapsack Problem

00Jupyter Notebook, PythonFeb 6, 20213 years ago
algorithmsknapsack-problemstatistical-physics

Similar Papers

Cite this paper

@article{williams2021large,
  title  = {Large W limit of the knapsack problem},
  author = {Mobolaji Williams},
  year   = {2021},
  eprint = {2107.14080},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.14080}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.14080.svg)](https://codeofpaper.com/paper/2107.14080)

Discussion