Skip to main content

Questions tagged [big-theta]

-2 votes
2 answers
13k views

What is the difference between O(N^2) and Θ(N^2)? I know that O is the upper bound and Θ is tight bound. Could someone explain me this concept with an example.
Sgt. Foley's user avatar
1 vote
1 answer
3k views

What notation do you use for the average time complexity of an algorithm? It occurs to me that the proper way would be to use big-theta to refer to a set of results (even when a specific try may ...
user2106285's user avatar
11 votes
5 answers
956 views

I'm used to search for the Landau (Big O, Theta...) notation of my algorithms by hand to make sure they are as optimized as they can be, but when the functions are getting really big and complex, it's ...
Julien L's user avatar
  • 219
13 votes
3 answers
5k views

Let's say I have a linear function f(n)= an+b, what is the best way to prove that this function belongs to O(n2) and Θ(n)? I do not need mathematical rigor here. I need a programmers answer. Some ...
Geek's user avatar
  • 5,217
9 votes
5 answers
10k views

In asymptotic notation when it is stated that if the problem size is small enough (e.g. n<c for some constant c) the solution takes constant time and is writen as Theta(1). Why we write 1 inside ...
user10326's user avatar
  • 1,830
26 votes
2 answers
8k views

Big O notation provides an upper bound to a function whereas Big Theta provides a tight bound. However I find that Big O notation is typically (and informally) taught and used when they really mean ...
tskuzzy's user avatar
  • 752