1. Principles:
    Complexity of O(n2)\mathcal{O}(n^2) is not feasible. We’d like linear complexity O(n)\mathcal{O}(n), or linearithm O(nlog(n))\mathcal{O}(nlog(n)).
  2. tilde notation \sim
    The highest order of the complexity with the same coefficient.
    Tilde means the limit of the ratio of the two elements approaches 1.
    eg: 12n\sim\frac{1}{2}n
  3. Best, worst and average time
  4. Bound notation
    Analysis of Algorithms
  5. Memory

相关文章: