01
Algorithm Analysis
Algorithm criteria, asymptotic notations, complexity classes, and cost calculation methods.
- 01 What Is an Algorithm The criteria for an algorithm, the distinction between correctness and termination, the model of computation, and why measuring running time is not enough.
- 02 Asymptotic Notation Definitions of big O, big omega, and big theta, elimination of constants, sum and product rules, and common misreadings.
- 03 Little o and Little omega Definitions of non-tight bounds, the limit criterion, the analogy between the five notations and comparison operators, and the limits of the ordering relation.
- 04 Reading Complexity Classes Constant, logarithmic, linear, linearithmic, polynomial, exponential, and factorial growth; scaling behavior and practical limits.
- 05 The Method for Computing Complexity Counting cost with loop and conditional rules, recurrence relations, the master theorem, and amortized analysis.
- 06 Time and Space Trade-off Space complexity, in-place operation, the cost of the recursion stack, memoization and precomputation patterns, and the limits of the trade-off.