Algorithms Analysis - I
Algorithms Analysis - I
1. Introduction
2. Big-Oh and other Notations
3. Typical Growth Rates
4. Sum and Product Rules
5. Examples
6. Summary
What is a Good Algorithm?
The efficiency of an algorithm is measured by 2 important
factors :
Experimental Study
Expressions:
T1(n)
T2(n)
T(n) = T1 (n) + T2(n)
Sum Rule
Suppose T1(n) is O(f(n)) and T2(n) is O(g(n)), then T(n) is
O(max(f(n), g(n))
Rule of Products
T1(n)