Large-W limit of the knapsack problem

Mobolaji Williams
Phys. Rev. E 109, 044151 – Published 29 April 2024

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. 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, a statistical physics formalism introduced 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 other similar combinatorial optimization problems.

  • Figure
  • Figure
  • Figure
  • Figure
  • Figure
  • Received 3 August 2023
  • Accepted 25 March 2024

DOI:https://doi.org/10.1103/PhysRevE.109.044151

©2024 American Physical Society

Physics Subject Headings (PhySH)

Statistical Physics & Thermodynamics

Authors & Affiliations

Mobolaji Williams*

  • Jellyfish, 225 Franklin St, 20th Floor, Boston, Massachusetts 02110, USA and School of Engineering and Applied Sciences, Harvard University, Cambridge, Massachusetts 02138, USA

  • *mowillia.github.io; williams.mobolaji@gmail.com

Article Text (Subscription Required)

Click to Expand

References (Subscription Required)

Click to Expand
Issue

Vol. 109, Iss. 4 — April 2024

Reuse & Permissions
Access Options
Author publication services for translation and copyediting assistance advertisement

Authorization Required


×
×

Images

×

Sign up to receive regular email alerts from Physical Review E

Log In

Cancel
×

Search


Article Lookup

Paste a citation or DOI

Enter a citation
×