Competitive Analysis of Algorithms