Question

Part I. (30 pts) (10 pts) Let fin) and g(n) be asymptotically positive functions. Prove or disprove each of the following statements T a、 f(n) + g(n)=0(max(f(n), g(n))) 1. b. f(n) = 0(g(n)) implies g(n) = Ω(f(n)) T rc. f(n)- o F d. f(n) o(f(n)) 0(f (n)) f(n)=6((f(n))2)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a) True

Because the complexity is considered as max of both of the functions.

So it is the time complexity of worst case, so it's true.

(b) False

it's not true let's take an example - f(n)=n and g(n)=n^2 so it doesn't gurantee as g(n)=Omega(f(n)), because it's the best case.

(c) This is true.

It can be written as O(c*(n)) or O(n), multiplication of a constant value doesn't matter.

(d) False.

In left hand side we have O(f(n)) that's the worst case.

and it's not neccesary that it will always be equal to average case .

(e) True.

for example -

any of the function's square will have upper bound for that particular function.

Add a comment
Know the answer?
Add Answer to:
Part I. (30 pts) (10 pts) Let fin) and g(n) be asymptotically positive functions. Prove or...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT