algorithm analysis 02 2841771