algorithm note