algorithm analysis 12 pages 5384389