Food sources The map shows a surface from above: darker tones are higher. 10 food sources were placed on the surface at random. The quality of a source is the height where it stands. The triangle marks the highest point; the colony does not know where it is.
An employed bee improves its source Each source has an employed bee. The bee tries a new point near the source: it shifts a random axis by a random multiple of the difference to another source. The outlined source has height 0.190, the blue candidate 0.682. The candidate is higher, so the source moves there. In the first round the candidates of 4 employed bees were accepted; the trial counters of the rejected ones went up by 1.
Onlookers go to good sources Onlooker bees wait in the hive and choose a source by watching the employed bees dance. The probability of choosing a source is its height divided by the total height of all sources. The outlined source is the most likely, with probability 0.28; the lowest source has probability 0.00. An onlooker also tries a candidate for the source it chose, so good sources are probed more often.
Round 1 Height 0 1 Best source Round 1 Best: 0.682 Each round has an employed, an onlooker and a scout phase. The best source found so far is 0.682; the red ring is there. Up to this round 0 sources were abandoned.
Round 5 Height 0 1 Best source Round 5 Best: 0.783 Each round has an employed, an onlooker and a scout phase. The best source found so far is 0.783; the red ring is there. Up to this round 0 sources were abandoned.
A scout bee finds a new source Height 0 1 Best source Round 5 Best: 0.783 In round 7 the trial counter of a source passed the limit 10: the source had not improved for a long time. Its employed bee left it, became a scout and found a new source at random on the map. The old source had height 0.783, the new one 0.009. Scouts let the colony leave the peaks it is stuck on.
Round 10 Height 0 1 Best source Round 10 Best: 0.783 Each round has an employed, an onlooker and a scout phase. The best source found so far is 0.783; the red ring is there. Up to this round 3 sources were abandoned.
Round 20 Height 0 1 Best source Round 20 Best: 0.998 Each round has an employed, an onlooker and a scout phase. The best source found so far is 0.998; the red ring is there. Up to this round 6 sources were abandoned.
Round 40 Height 0 1 Best source Round 40 Best: 0.998 Each round has an employed, an onlooker and a scout phase. The best source found so far is 0.998; the red ring is there. Up to this round 8 sources were abandoned.
The colony found the highest point Height 0 1 Best source Round 40 Best: 0.998 The best source is 0.998; the highest point has height 1 and the best source is close to it. The colony first got there in round 13. In 40 rounds 8 sources were abandoned and replaced by random sources.