Exact Counting and Sampling of Optima for the Knapsack Problem

Jakob Bossek, Aneta Neumann, Frank Neumann
6/14/2021
cs.DS

Official code: jakobbossek/LION2021-knapsack-exact-counting (0 stars, Python, last commit 2021-06-14).

Abstract

Computing sets of high quality solutions has gained increasing interest in recent years. In this paper, we investigate how to obtain sets of optimal solutions for the classical knapsack problem.

Show full abstract

We present an algorithm to count exactly the number of optima to a zero-one knapsack problem instance. In addition, we show how to efficiently sample uniformly at random from the set of all global optima. In our experimental study, we investigate how the number of optima develops for classical random benchmark instances dependent on their generator parameters. We find that the number of global optima can increase exponentially for practically relevant classes of instances with correlated weights and profits which poses a justification for the considered exact counting problem.

View on arXivView PDF

Code Implementations(1)

Code and data for our paper on exact counting of zero-one knapsack solutions at LION2021.

01Python, RJun 14, 20215 years ago

Similar Papers

Cite this paper

@article{bossek2021exact,
  title  = {Exact Counting and Sampling of Optima for the Knapsack Problem},
  author = {Jakob Bossek and Aneta Neumann and Frank Neumann},
  year   = {2021},
  eprint = {2106.07412},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.07412}
}

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/2106.07412.svg)](https://codeofpaper.com/paper/2106.07412)

Discussion