0
9.8kviews
Solve the following sum of subset problem using backtracking: w= {1, 3, 4, 5}, m=8. Find the possible subsets of 'w' that sum to 'm'.

Subject: Analysis Of Algorithm

Topic: Backtracking

Difficulty: High

1 Answer
0
732views

Subset sum problem is to find subset of elements that are selected from a given set whose sum adds up to a given number K. We are considering the set contains non-negative values. It is assumed that the input set is unique (no duplicates are presented).

Using exhaustive search we …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.