I have two functions:
- f(n) = 2;
- g(n) = 10 ^ 100;
I have to justify if f(n) = BigTheta(g(n)) or not.
My guess is that f(n) is BigTheta(g(n)), since both functions are constants (wich means the functions are proportional), but a my teacher insists that I am wrong.
Am I right? Is there any way I could rest my case?
Sorry if this sounds like a noob question! Thanks.
Thus
f(n) = O(g(n)).And so
f(n) = Ω(g(n)).Both
f(n)=O(g(n))andf(n)=Ω(g(n))implyf(n) = Θ(g(n)). Yes, you are right.