I have tried your all strategy in my project lab6,and they run well. However, I have a better strategy, and after some experiments, it really runs better. Here are my strategy(I call it "The Clothest Speed"):
1.if there are some empty ladders, choose one at random.
2.if there is no empty ladder, there are two ways:
a,choose such ladder that the nearest monkey on the ladder was
slightly faster than waiting monkey.
b.if there is no ladder like "a", then choose the fastest ladder (the
ladder's speed equals the slowest monkey speed that on the ladder)
3.if there is no ladder meets those conditions, then just waiting.
In this strategy, all the monkeys on a ladder have similar speeds, and the monkeys in front don't block the monkeys behind.
I have tried your all strategy in my project lab6,and they run well. However, I have a better strategy, and after some experiments, it really runs better. Here are my strategy(I call it "The Clothest Speed"):
1.if there are some empty ladders, choose one at random.
2.if there is no empty ladder, there are two ways:
a,choose such ladder that the nearest monkey on the ladder was
slightly faster than waiting monkey.
b.if there is no ladder like "a", then choose the fastest ladder (the
ladder's speed equals the slowest monkey speed that on the ladder)
3.if there is no ladder meets those conditions, then just waiting.
In this strategy, all the monkeys on a ladder have similar speeds, and the monkeys in front don't block the monkeys behind.