Planned island sizes are random with an expected value that matches the average size requested by the user. Can be off quite a bit when the number of islands is small. Also, actual island size can be smaller than planned size when space is tight. Instead of picking random island sizes independently, pick a random split of their requested total size. To reduce the probability of islands not growing to their planned size, grow large islands before smaller ones. To compensate for inability to grow, carry the difference over to the next island size. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
17 lines
236 B
Text
17 lines
236 B
Text
add 1 1 1 p
|
|
newcap 1 5,11
|
|
add 2 2 2 p
|
|
newcap 2 53,3
|
|
add 3 3 3 p
|
|
newcap 3 46,16
|
|
add 4 4 4 p
|
|
newcap 4 16,0
|
|
add 5 5 5 p
|
|
newcap 5 38,28
|
|
add 6 6 6 p
|
|
newcap 6 61,23
|
|
add 7 7 7 p
|
|
newcap 7 31,7
|
|
add 8 8 8 p
|
|
newcap 8 20,20
|
|
add 9 visitor visitor v
|