Question

1. For each of the following, prove using the definition of O): (a) 7n + log(n) = O(n) (b) n2 + 4n + 7 =0(na) (c) n! = ((n)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

From definition of Big O

f(n) = O(g(n))

if f(n) <= g(n)

a)

f(n) 7n log(n)= (n) g(n) f(n) = O(n)

b)

g(n) (n2) f(n)n24n7 e(n)g(n) f(n) - O(n2)

c)

g(n) = (n) f (n) n!(n!) f(n)O(n) g(n)

d)

g(n) (22n) f (n) ) 2 e(2) g(n) f(n) O(22n)

Add a comment
Answer #2

1. a) Let us say f(n) = In + log (n). In + log(n) € In +n I As we knowe, nylog(n)] In + log(n) = 8 - In + log(n) {con If nyno1.6) Let us say, f(n) = n²+40 +7. i n+40 +7 £n²+ 40 + 1n? 7 L Int [As 4n < 4n² & I na - nt+4n+ 7 L 12n?. => nt tan +7 Çe.nz VThe answers for the following questions are given as handwritten notes.

Add a comment
Know the answer?
Add Answer to:
1. For each of the following, prove using the definition of O): (a) 7n + log(n)...
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