The Universal and Practical Programming Code for Subset Sum Problem

07/07/2018
by   Zhengjun Cao, et al.
0

Given a multiset S of n numbers and a target number t, the subset sum problem is to decide if there is a subset of S that sums up to t. There are several methods for solving this problem, including exhaustive search, divide-and-conquer method, and Bellman's dynamic programming method. However, none of them could generate universal and practical programming code. In this paper, we present such code which can return all solutions. If n is small enough, it is efficient for practical purpose.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/07/2018

New Algorithms for Subset Sum Problem

Given a set (or multiset) S of n numbers and a target number t, the subs...
research
07/22/2018

Subset Sum Made Simple

Subset Sum is a classical optimization problem taught to undergraduates ...
research
01/28/2022

Solving a percolation inverse problem with a divide-and-concur algorithm

We present a percolation inverse problem for diode networks: Given infor...
research
12/21/2021

Efficient reductions and algorithms for variants of Subset Sum

Given (a_1, …, a_n, t) ∈ℤ_≥ 0^n + 1, the Subset Sum problem (𝖲𝖲𝖴𝖬) is to...
research
12/08/2021

Faster Algorithms for k-Subset Sum and Variations

We present new, faster pseudopolynomial time algorithms for the k-Subset...
research
12/02/2021

A Practical Dynamic Programming Approach to Datalog Provenance Computation

We establish a translation between a formalism for dynamic programming o...
research
07/30/2018

Reach-Avoid Problems via Sum-of-Squares Optimization and Dynamic Programming

Reach-avoid problems involve driving a system to a set of desirable conf...

Please sign up or login with your details

Forgot password? Click here to reset