Analysis of algorithms