Complexity of Algorithms
#Math213
Algorithm
Basic
Comparison
- Time Complexity: number of machine operations
- Space Complexity: amount of memory needed
Growth of Functions
Big-Omega: tells us a lower bound of growth rate
Complexity
Example
对于 Average Complexity: 考虑所有情况等可能,计算其复杂度均值(一般情况下难以计算)