Suppose your algorithm works in f(x).
f(x) = O(n*log(n))means that for a xsufficiently high constant c1 > 0, so f(x)there will always be less c1*n*log(n).f(x) = Omega(n)means for xconstant high enough c2 > 0, so that f(x)will be more thanc2*nSo, now you know that from a certain point forward ( xlarge enough), your algorithm will work faster than c2*nslower than c1*n*log(n).
f(x) = Theta(g(x))means that for xlarge enough, there are some c3 > 0and c4 > 0, so that c3*g(x) <= f(x) <= c4*g(x)means it f(x)will only work with a constant factor faster or slower than g(x). So, f(x) = O(g(x))and f(x) = Omega(g(x)).Conclusion: Only with O and Omega data, if they do not match, you cannot conclude what Theta is. If you have an algorithm, you can try and see if O can be selected too high, or Omega can be selected too low.
source
share