Skip to content

About The Strategy #3

Description

@ChengWang-hit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions