| >Given a number N, construct a set S of N positive integers such that
>all subsets of S have unique sums and the sum of S is as small as possible.
>One obvious set of numbers to try is 2^0..2^(N-1) whose sum is 2^N - 1. But
>sets with smaller totals can be found.
The set S = {2^0,..,2^(N-1)} looks pretty good to me. Suppose there is some
other set S' of N positive integers whose subsets have 2^N unique sums (we
allow the empty subset with sum 0). The largest sum is >= 2^N-1, otherwise
the pigeonhole principle would say they're not all unique. But the largest sum
is just the sum of the elements in S'. So, the sum of S' >= 2^N-1 = sum of S.
Thus, there are no sets with smaller sums.
|
| >>Given a number N, construct a set S of N positive integers such that
>>all subsets of S have unique sums and the sum of S is as small as possible.
>>One obvious set of numbers to try is 2^0..2^(N-1) whose sum is 2^N - 1. But
>>sets with smaller totals can be found.
>
>The set S = {2^0,..,2^(N-1)} looks pretty good to me. Suppose there is some
Yes, you're right. Actually all I care about are small subsets of S having
unique sums. Small means subsets with sizes <= M and M is small in relation
to N (10*M <= N).
-Gary
|