Consider the method used to apportion seats in the United States House
of Representatives:
http://mathdl.maa.org/mathDL/46/?pa=content&sa=viewDocument&nodeId=3163&bodyId=3392.
Dave
On Sep 9, 1:24 am, "Sandeep .A.S." wrote:
> Hi,
>
> Please let me know is there any standard algorithm to solve t
ibute across M num
baskets of varying capacity in balanced way
Hello Bharath,
Thanks for your suggestion.
I want to distribute the apple across all the basket balanced way.
In other words
“I want to calculate the optimal number of apples on each basket such
a way that free and used space on
Hello Bharath,
Thanks for your suggestion.
I want to distribute the apple across all the basket balanced way.
In other words
“I want to calculate the optimal number of apples on each basket such
a way that free and used space on each basket equal to total
percentage of free and used space on
What does optimal balance mean?
In your example case, if you have 10 apples,
put 2 in basket1, 4 in basket2, 4 in basket3 and basket4 gets nothing.
If you have to make sure that, each basket gets at least one apple, then
start distributing apples one by one to each basket until it reaches its ma