subset sum

Правка en2, от 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.

Теги subsetsum

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский avik26091998 2018-09-07 18:56:05 5
en1 Английский avik26091998 2018-09-07 18:52:04 294 Initial revision (published)