Bees have a dance so when they find food they tell other bees what direction and how far.
The Role of Learning in Honey Bee Waggle Dance | Evolution News
Learning is largely a programmed behavior, governed by a type of algorithm, particularly for animals with limited cognitive ability.
evolutionnews.org