394 views
3 votes
3 votes
time complexity questions like :

h(n)=O(n2);

f(n)= O(logn);

g(n)=omega(n2);

what is the complexity of ::::  1. h(n)-g(n)=??

                                              2. h(n)-f(n)=???

elaborate plz

1 Answer

0 votes
0 votes

Subtraction doesn't affect the Bound

1. h(n)-g(n)=Ω (n2) as we have a lower bound on g(n)

2. h(n)-f(n)=Ο (n2), max(h(n),f(n))

No related questions found