On tropical knapsack-type problems
In this paper, we investigate the computational complexity of the knapsack problem and subset sum problem for the following tropical algebraic structures. We consider the semigroup of square matrices of size [Formula: see text] with non-negative entries over the max-plus algebra and the semigroup of square matrices of size [Formula: see text] with positive entries over the max-times algebra. We prove that the knapsack problem and the subset sum problem for these structures are [Formula: see text]-complete. We demonstrate that there are pseudo-polynomial algorithms to solve these problems. Also, we show that for the latter semigroup, there are polynomial generic algorithms to solve the knapsack problem and the subset sum problem.
- Book Chapter
31
- 10.1090/conm/677/13625
- Jan 1, 2016
- Contemporary mathematics - American Mathematical Society
It is shown that the knapsack problem (introduced by Myasnikov, Nikolaev, and Ushakov) is undecidable in a direct product of sufficiently many copies of the discrete Heisenberg group (which is nilpotent of class 2). Moreover, for the discrete Heisenberg group itself, the knapsack problem is decidable. Hence, decidability of the knapsack problem is not preserved under direct products. It is also shown that for every co-context-free group, the knapsack problem is decidable. For the subset sum problem (also introduced by Myasnikov, Nikolaev, and Ushakov) we show that it belongs to the class NL (nondeterministic logspace) for every finitely generated virtually nilpotent group and that there exists a polycyclic group with an NP-complete subset sum problem.
- Research Article
142
- 10.1006/jagm.1999.1034
- Oct 1, 1999
- Journal of Algorithms
Linear Time Algorithms for Knapsack Problems with Bounded Weights
- Research Article
64
- 10.1090/s0025-5718-2014-02880-9
- Jul 30, 2014
- Mathematics of Computation
We generalize the classical knapsack and subset sum problems to arbitrary groups and study the computational complexity of these new problems. We show that these problems, as well as the bounded submonoid membership problem, are P \mathbf {P} -time decidable in hyperbolic groups and give various examples of finitely presented groups where the subset sum problem is N P \mathbf {NP} -complete.
- Book Chapter
7
- 10.1007/978-1-4757-3333-4_11
- Jan 1, 2001
Knapsack problems are typically concerned with selecting from a set of n given items, each with a specified weight and value, a subset of items whose weight sum does not exceed a prescribed capacity and whose value is maximum. This NP-hard problem arises in many applications and has been the focus of considerable research over the past two decades. A number of exact algorithms have been developed for the classical 0–1 Knapsack Problems and its variants. In this paper, exact algorithms are presented for the following variants and data types: the Subset Sum Problem; the Strongly Correlated 0–1 Knapsack Problem; the Inverse Strongly Correlated 0–1 Knapsack Problem; and the corresponding Bounded Strongly Correlated Knapsack Problem and Bounded Subset Sum Problem. All our algorithms consist of three stages: the first stage generates an initial solution by a greedy procedure; the second stage refines the approximate solution; and the final stage applies a partial lexicographic search procedure to generate an optimal solution. Extensive computational experiments show that our algorithms are able to solve large problems of size up to one million variables in less than 7 seconds CPU time on a Silicon Graphic Workstation (R 5000) running at a clock speed of 150 MHz. A comparative analysis with some recent effective algorithms is given.
- Research Article
92
- 10.1016/j.cor.2021.105692
- Feb 7, 2022
- Computers & Operations Research
After the seminal books by Martello and Toth (1990) and Kellerer, Pferschy, and Pisinger (2004), knapsack problems became a classical and rich research area in combinatorial optimization. The purpose of this survey, which is structured in two parts, is to cover the developments that appeared in this field after the publication of the latter volume. Part I is devoted to problems whose goal is to optimally assign items to a single knapsack. Besides the classical knapsack problems (binary, subset sum, bounded, unbounded, change-making), we review problems with special constraints (setups, multiple-choice, conflicts, precedences, sharing, compartments) as well as relatively recent fields of investigation, like robust and bilevel problems. The subsequent Part II covers multiple, multidimensional, and quadratic knapsack problems, and includes a succinct treatment of online and multiobjective knapsack problems.
- Research Article
2
- 10.1587/transfun.e95.a.903
- Jan 1, 2012
- IEICE Transactions on Fundamentals of Electronics, Communications and Computer Sciences
SUMMARY The subset sum problem, which is often called as the knapsack problem, is known as an NP-hard problem, and there are several cryptosystems based on the problem. Assuming an oracle for shortest vector problem of lattice, the low-density attack algorithm by Lagarias and Odlyzko and its variants solve the subset sum problem efficiently, when the “density” of the given problem is smaller than some threshold. When we define the density in the context of knapsack-type cryptosystems, weights are usually assumed to be chosen uniformly at random from the same interval. In this paper, we focus on general subset sum problems, where this assumption may not hold. We assume that weights are chosen from different intervals, and make analysis of the effect on the success probability of above algorithms both theoretically and experimentally. Possible application of our result in the context of knapsack cryptosystems is the security analysis when we reduce the data size of public keys.
- Research Article
10
- 10.1021/acsphotonics.3c01164
- Nov 8, 2023
- ACS Photonics
Computationally complex problems such as the subset sum problem (SSP) are difficult to solve on the electronic computer when the problem size scales up. Optical computing enables the acceleration of complex problems due to its low latency and multiple free degrees of parallelism. Here, we thoroughly exploit the programmability in silicon photonic circuits and construct a programmable microring resonator mesh to implement the solution of two types of computationally complex problems: the SSP and stochastic process simulation. We experimentally accomplish the solving of multiple different sets, which shows the great versatility and scalability of the SSP solver. The knapsack problems are also demonstrated as an example of practical optimization problems derived from SSP. Besides, two-state discrete time stochastic processes are also experimentally accomplished with our solver chip. Our proposed photonic solver shows the potential application of optical NP-complete problem-solving and quantum computing.
- Book Chapter
113
- 10.1007/978-1-4684-4730-9_2
- Jan 1, 1984
Let al,...,an and s be a set of integers. The knapsack (or subset sum) problem is to find a 0–1 vector (el,...,en) such that Σ eiai = s or to show that such a vector does not exist. The integers al,...,an are sometimes referred to as weights. The general knapsack problem is known to be NP complete [5,6]. Several cryptosystems based on the knapsack problem have been designed [9,12,16]. In April, 1982, Adi Shamir [14] announced a method for breaking the Merkle-Hellman cryptosystem. Since that time there has been a flurry of activity to extend his results to include all of the proposed knapsack based cryptosystems [1,2,3,7,13].
- Research Article
3
- 10.1016/j.parco.2009.09.005
- Oct 9, 2009
- Parallel Computing
Observations on optimal parallelizations of two-list algorithm
- Research Article
- 10.1016/j.laa.2012.08.035
- Sep 28, 2012
- Linear Algebra and its Applications
On semigroups of matrices with nonnegative diagonals
- Research Article
13
- 10.1007/s10107-012-0520-4
- Mar 11, 2012
- Mathematical Programming
This paper studies stochastic programs with first-stage binary variables and capacity constraints, using simple penalties for capacities violations. In particular, we take a closer look at the knapsack problem with weights and capacity following independent random variables and prove that the problem is weakly $${\mathcal{N}\mathcal{P}}$$ -hard in general. We provide pseudo-polynomial algorithms for three special cases of the problem: constant weights and capacity uniformly distributed, subset sum with Gaussian weights and strictly positively distributed random capacity, and subset sum with constant weights and arbitrary random capacity. We then turn to a branch-and-cut algorithm based on the outer approximation of the objective function. We provide computational results for the stochastic knapsack problem (i) with Gaussian weights and constant capacity and (ii) with constant weights and capacity uniformly distributed, on randomly generated instances inspired by computational results for the knapsack problem.
- Research Article
10
- 10.1016/j.ejor.2004.09.025
- Feb 1, 2006
- European Journal of Operational Research
Sensitivity analysis of a greedy heuristic for knapsack problems
- Research Article
54
- 10.1016/s0167-6377(99)00066-8
- Mar 1, 2000
- Operations Research Letters
Approximate minimization algorithms for the 0/1 Knapsack and Subset-Sum Problem
- Book Chapter
3
- 10.1007/3-540-39118-5_11
- Apr 13, 1987
A knapsack (or subset-sum) problem that is useful for cryptographic purposes, consists of a set of n positive integers a = {a1, a2, ... an}, called the knapsack a, and a sum s. The density d of a knapsack is defined to be n /log2 (ai)max. The knapsack problem then consists of finding the set, if any, of binary numbers x = {x1 , x2, ... , xn}, such that Σxi·ai = s.
- Research Article
1
- 10.1017/s0017089500002081
- Mar 1, 1974
- Glasgow Mathematical Journal
In [1], Pall proved an interesting result on a certain class of 2 × 2 integral matrices. He showed that the semigroup of 2 × 2 matrices of determinant 1 and non-negative entries contains exactly 2 primes , and every other non-unit is expressible uniquely as products of these primes. Before formally stating this result, we need some notation. Let Gn denote the semigroup of n × n matrices with determinant 1 and nonnegative integral entries, In the n × n identity matrix, the n × n matrix with a 1 as its (i, j) element and zeros elsewhere, and let . When the dimension is clear, we shall drop the superscripts.