Data structure and algorithm analysis