Flower algorithm.