Theta vs. Omega

56 views Asked by At

I'm trying to understand time complexity.

If you have an algorithm with a running time of θ(n^2), is it possible to have a best case running time of Ω(n)? Or is the fastest running time only some constant factor c * n^2?

1

There are 1 answers

0
PhilHQ On BEST ANSWER

Theta is a tight bound, meaning that it represents the worst case and the best case. So in your case, the fastest running time will be a constant of the tight bound.