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

前端 未结 6 733
清歌不尽
清歌不尽 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:08

    Best case is represented by Ω(n) notation. Worst case is represented by Ο(n) notation. Average case is represented by Θ(n) notation.

提交回复
热议问题