0
51kviews
Write an algorithm of sum of subsets.

Write an algorithm of sum of subsets. Solve following problem and draw portion of state space tree M = 35, W = (5, 7, 10, 12, 15, 18, 20)

1 Answer
6
7.4kviews

Problem statement:

Let, $S = {S_1 …. S-n}$ be a set of n positive integers, then we have to find a subset whose sum is equal to given positive integer d.It is always convenient to sort the set’s elements in ascending order. That is, $S_1 ≤ S_2 ≤…. ≤ S_n$ …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.