What is the difference between lower bound and tight bound?

后端 未结 8 864
遇见更好的自我
遇见更好的自我 2020-12-04 04:56

With the reference of this answer, what is Theta (tight bound)?

Omega is lower bound, quite understood, the minimum time an algorithm may take. And we know Big-O is

8条回答
  •  既然无缘
    2020-12-04 05:53

    If you have something that's O(f(n)) that means there's are k, g(n) such that f(n)k g(n).

    If you have something that's Ω(f(n)) that means there's are k, g(n) such that f(n)k g(n).

    And if you have a something with O(f(n)) and Ω(f(n)), then it's Θ(f(n).

    The Wikipedia article is decent, if a little dense.

提交回复
热议问题