Analysis of Algorithms last assignment