You will work out the relatedness of worker bees, test Hamilton's rule, and find how safe a flock is.
The idea. Two workers whose mother mated with males have an average relatedness of . Helping is favoured when . In a flock of birds, each alert with chance , the chance that at least one is alert is .
Your tasks.
sister_r. It gives the average relatedness of two workers for a number of fathers.helps. It gives True when Hamilton's rule favours helping.alert. It gives the chance that at least one bird of a flock is alert.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…