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

Please sign up or login with your details

Forgot password? Click here to reset