[Algorithm] Notes for Chapter 2

  • [Basic Operation] The most time-consuming operation in the innermost loop. Among the four operations of addition, subtraction, multiplication and division, division is the most time-consuming, followed by multiplication, and addition and subtraction are generally considered uniformly.
  • 由于 l o g a n = l o g a b l o g b n log_a^n=log_a^blog_b^n logan=logablogbn, So the base of the logarithm is often ignored in algorithm analysis, written as logn lognl o g n .
  • [Worst efficiency] When the input scale is n, the efficiency of the algorithm in the worst case is the longest running time compared to other input instances of scale n.
  • [Optimal efficiency] When the input scale is n, the efficiency of the algorithm in the optimal situation is the shortest running time compared to other input instances of scale n.
  • [Sign OOThe
    Insert picture description here
    Insert picture description here
  • 【Symbol Ω ΩΩ
    Insert picture description here
    Insert picture description here
  • 【Symbol Θ ΘΘ
    Insert picture description here
    Insert picture description here
  • 【theorem】
    Insert picture description here
    Insert picture description here
    Insert picture description here
  • [Compare the number of increases with the limit]
    Insert picture description here
    Insert picture description here
  • 【Growth Type】
    Insert picture description here
  • 【About Logarithm】
    Insert picture description here
  • 【About Σ ΣΣSummation
    Insert picture description here
    Insert picture description here
  • Master Theorem
  • Characteristic equation method

Guess you like

Origin blog.csdn.net/weixin_44246009/article/details/108189952