The Big-O designation expresses an asymptotic upper bound, while the Big-Theta notation additionally expresses an asymptotic lower bound. Often the upper bound is what interests people, so they write O (something), even when Theta (something) is also true. For example, if you want to count the number of things equal to x in an unsorted list, you can say that this can be done in linear time and there is O (n), because for you it is important, t take more than that. However, it would also be true that this is Omega (n) and therefore Theta (n), since you need to examine all the elements in the list - this cannot be done in sublinear time.
source share