O gives the upper bound ;
Ω gives a lower bound ;
Θ gives an asymptotic estimate ;
Wikipedia has a nice schedule to explain this.
Therefore, they are really not comparable at all.
For your first occasion
O(n^2) + Θ(n) + Ω(n^3)
Let O first be taken. The first member tells us O(n^2) , and the second member tells us O(n) . Based only on these two, we know that we have O(n^2) for the upper bound. However, the third term says nothing about the upper bound! Therefore, we cannot do anything about O
The fact is that O and Θ provides information only about O , and Ω and Θ provides information only about Ω . This is due to the fact that Θ(g(n)) implies both O(g(n)) and Ω(g(n)) , so we can change Θ depending on whether O and Ω suitable for a given analysis.
However, the three together, or even just O and Ω , leave you wordless, since neither O nor Ω implies anything else.
source share