algorithm perfume