A Polynomial-Time Algorithm for Special Cases of the Unbounded Subset-Sum Problem

03/15/2021
by   Majid Salimi, et al.
0

The Unbounded Subset-Sum Problem (USSP) is defined as: given sum s and a set of integers W←{p_1,…,p_n} output a set of non-negative integers {y_1,…,y_n} such that p_1y_1+…+p_ny_n=s. The USSP is an NP-complete problem that does not have any known polynomial-time solution. There is a pseudo-polynomial algorithm for the USSP problem with O((p_1)^2+n) time complexity and O(p_1) memory complexity, where p_1 is the smallest element of W <cit.>. This algorithm is polynomial in term of the number of inputs, but exponential in the size of p_1. Therefore, this solution is impractical for the large-scale problems. In this paper, first we propose an efficient polynomial-time algorithm with O(n) computational complexity for solving the specific case of the USSP where s> ∑_i=1^k-1q_iq_i+1-q_i-q_i+1, q_i's are the elements of a small subset of W in which gcd of its elements divides s and 2≤ k ≤ n. Second, we present another algorithm for smaller values of s with O(n^2) computational complexity that finds the answer for some inputs with a probability between 0.5 to 1. Its success probability is directly related to the number of subsets of W in which gcd of their elements divides s. This algorithm can solve the USSP problem with large inputs in the polynomial-time, no matter how big inputs are, but, in some special cases where s is small, it cannot find the answer.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/26/2018

On Strong NP-Completeness of Rational Problems

The computational complexity of the partition, 0-1 subset sum, unbounded...
research
05/22/2019

The Computational Complexity of Understanding Network Decisions

For a Boolean function Φ{0,1}^d→{0,1} and an assignment to its variables...
research
10/17/2018

On the computational complexity of MSTD sets

We outline a general algorithm for verifying whether a subset of the int...
research
12/08/2014

Minkowski Sum of Polytopes Defined by Their Vertices

Minkowski sums are of theoretical interest and have applications in fiel...
research
11/18/2018

The problematic nature of potentially polynomial-time algorithms solving the subset-sum problem

The main purpose of this paper is to study the NP-complete subset-sum pr...
research
07/06/2020

Computational Complexity Characterization of Protecting Elections from Bribery

The bribery problem in election has received considerable attention in t...
research
05/13/2020

A Polynomial-Time Algorithm for Optimization of Quadratic Pseudo-Boolean Functions

We develop a polynomial-time algorithm to minimize pseudo-Boolean functi...

Please sign up or login with your details

Forgot password? Click here to reset