in reply to Re: Decomposing sum to unique sets of summands
in thread Decomposing sum to unique sets of summands
The post says:
And this needs to be very fast since in use it's going to have to handle sums of up to 10^6.I don’t think your program can be used for this; it only works for small integers.
The so-called partition function p(n) represents the number of possible partitions of a natural number n (distinct and order independent). Unfortunately p(n) grows rapidly, see Partition. Try to run the program on n=1000.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Decomposing sum to unique sets of summands
by JavaFan (Canon) on Oct 28, 2008 at 15:00 UTC | |
|
Re^3: Decomposing sum to unique sets of summands
by JadeNB (Chaplain) on Oct 28, 2008 at 17:54 UTC |