是否有一個很好的算法將隨機生成的數字拆分爲三個桶,每個桶都有可能包含的總數的限制。 例如,說我的隨機生成的數字是1,000,我需要將它分成桶a,b和c。 These ranges are only an example. See my edit for possible ranges.
Bucket a may only be between 10% - 70% of the number (1
此問題與Seeking a solution or a heursitic approxmation for the 3-partition combinatorial situation中描述的上下文有關。該任務將約48件遺傳珠寶分發給3位繼承人,以便爲每位遺產繼承人賦予相等或幾乎相等的價值。爲了我的合法目的,這個問題已經得到了充分的回答。 這個新的問題出現在我追求通過枚舉解決這個問題上。完全不