Send scouts (generate initial population)
  Repeat
 Employed bees phase
 Onlooker bees phase
 Scout bee phase
 Memorize the best food source found so far
  Until termination condition satisfied
Pseudocode 1: Pseudocode of the general ABC algorithm.