subset sum

Revision en2, by avik26091998, 2018-09-07 18:56:05

Can anybody provide me an optimized approach on how to find the sum of all subsets of a set. suppose my set is {a, b, c}. So subsets are — {a}, {b}, {c}, {a,b}, {a,c}, {b,c}, {a,b,c}. I want to find a + b + c + (a + b) + (a + c) + (b + c) + (a + b + c). Thanks in advance.

Tags subsetsum

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English avik26091998 2018-09-07 18:56:05 5
en1 English avik26091998 2018-09-07 18:52:04 294 Initial revision (published)