Is there a way to assign values to objects such that if you sum some values you can figure out the objects just from the sum? For example, if values are $10, $15, $20, $25, and $30, but you're given just a sum of $40, you don't know whether it's $10 and $30, or $15 and $25.
-
-
Good call about being able to use 0.1, 0.01, etc. @DylanBakerCFM also mentioned just doubling numbers would work fine (0.01, 0.02, 0.04, etc). Can you elaborate storing multiple items per decimal? I don't follow.
-
For each decimal you can use e.g. 2, 3, 4 9 = all 3 items 5 = 2+3 6= 2+4 7 = 3+4 So did instance 9.53 tells you: 2+3+4+0.2+0.3+0.03 (unique) This assumes each item can only appear once
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.