Fundamentals of the Analysis of Algorithm Efficiency