in reply to Re^3: Challenge: Number of unique ways to reach target sum
in thread Challenge: Number of unique ways to reach target sum
Oh, you state elsewhere that it requires greater than 400 GB to store all the answers. Since each value in the set of 10 is 100 or less then each set only requires 10 bytes. 10 * 14_479_062_752 = 144_790_627_520 which is less than a 150 GB but still far too much. Since the code I used (and have yet to show) generates the solutions in ascending order - an even smaller amount of storage is required. There is a little overhead in bookkeeping but if I use variable length records I only need to record the portion of 1 record that differs from the previous.
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Challenge: Number of unique ways to reach target sum
by fergal (Chaplain) on Feb 15, 2006 at 15:54 UTC | |
by Limbic~Region (Chancellor) on Feb 15, 2006 at 18:38 UTC | |
by fergal (Chaplain) on Feb 15, 2006 at 21:02 UTC | |
by Limbic~Region (Chancellor) on Feb 15, 2006 at 21:10 UTC | |
by fergal (Chaplain) on Feb 15, 2006 at 21:26 UTC | |
|