What is the difference between O, Ω, and Θ?

前端 未结 6 726
清歌不尽
清歌不尽 2020-12-04 09:38

I am learning algorithm analysis. I am having trouble understanding the difference between O, Ω, and Θ.

The way they\'re defined is as follows:

<
6条回答
  •  旧巷少年郎
    2020-12-04 10:05

    Θ denotes an asymptotically tight upper and lower bound.

    O denotes an upper bound, but this bound might or might not be tight.
    o denotes an upper bound that is not tight.

    Ω denotes a lower bound, but this bound might or might not be tight.
    ω denotes a lower bound that is not tight.

提交回复
热议问题