Analysis of Algorithms