Large-W limit of the knapsack problem
Related Experiment Video
Updated: Jun 26, 2025

Mimicking a Space Mission to Mars Using Hindlimb Unloading and Partial Weight Bearing in Rats
Published on: April 4, 2019
1Jellyfish, 225 Franklin St, 20th Floor, Boston, Massachusetts 02110, USA and School of Engineering and Applied Sciences, Harvard University, Cambridge, Massachusetts 02138, USA.
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.
Related Concept Videos
Central Limit Theorem
The sample size, n, that...
Rigid Body Equilibrium Problems - II
Consider two children sitting on a seesaw, which has negligible mass. The first child has a mass (m1) of 26 kg and sits at point A, which is 1.6 meters (r1) from the pivot point B; the second child has a mass (m2) of 32 kg and sits at point C. How far from the pivot point B should the second child sit (r2) to balance the seesaw?
Euler's Formula to Columns: Problem Solving
The system comprises two vertical rigid bars, AB and BC,...
Machines: Problem Solving II
Cable: Problem Solving
Flat Belts: Problem Solving

