Question

1. a) Let f(n) = 6n2 - 100n + 44 and g(n) = 0.5n3 . Prove that f(n) = O(g(n)) using the definition of Big-O notation. (You need to find constants c and n0).


b) Let f(n) = 3n2 + n and g(n) = 2n2 . Use the definition of big-O notation to prove that

  1. f(n) = O(g(n)) (you need to find constants c and n0) and

  2. g(n) = O(f(n)) (you need to find constants c and n0).

Conclude that f(n) = Θ(g(n)).

2. Order the following 16 functions by asymptotic growth rate from lowest to highest. If any are of the same order then circle them on your list.

5n-6, 3, 5n+n3, \sqrt{n} , n2.01, 3log2n, 4log n, n!, log n3, n1/3, 3n3-5n+n4, n log n +4n, 10n4, 4n, 2n, 4n+1. Note: When comparing two functions f(n) and g(n) you may use lim (f(n)/g(n)) to compare their asymptotic growth rates.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

a)

Given f(n)=6n2 - 100n + 44

g(n)=0.5*n^3

So, since we know that n^2<n^3 for all n>=1

So,

f(n)=6n2 - 100n + 44<=6*n^3 for n>=1 because (44-100n)<0 for n>=1

So,

f(n)<=12*(0.5*n^3)

So, since we found c=12 and n0=1

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

b)

f(n)=3*n^2+n

g(n)=2*n^2

So,

f(n)=3*n^2+n<=3*n^2+n^2

So,

f(n)<=4*n^2

So,

f(n)<=2*(2n^2) for n>=1

So, since we found c=2 and n0=1

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

Note: Brother According to Chegg's policy we are only allowed to answer first Q if there are many. So, I request you to post other part as separate posts

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
1. a) Let f(n) = 6n2 - 100n + 44 and g(n) = 0.5n3 . Prove...
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
  • 3. (10 pts) For each of the following functions f(n), prove the stated claim by providing...

    3. (10 pts) For each of the following functions f(n), prove the stated claim by providing constants no C1, and c2 such that for all n2 no, cig(n) S f(n) or f(n) c2g(n), and provide a calculation that shows that this inequality does indeed hold (a) f(n) 2n2 3n3-50nlgn10 0(n3) O(g(n)) (b) f(n)-2n log n + 3n2-10n-10-Ω ( 2)-0(g(n))

  • Formal Definitions of Big-Oh, Big-Theta and Big-Omega: 1. Use the formal definition of Big-Oh to prove that if f(n) is...

    Formal Definitions of Big-Oh, Big-Theta and Big-Omega: 1. Use the formal definition of Big-Oh to prove that if f(n) is a decreasing function, then f(n) = 0(1). A decreasing function is one in which f(x1) f(r2) if and only if xi 5 r2. You may assume that f(n) is positive evervwhere Hint: drawing a picture might make the proof for this problem more obvious 2. Use the formal definition of Big-Oh to prove that if f(n) = 0(g(n)) and g(n)...

  • Need help with 1,2,3 thank you. 1. Order of growth (20 points) Order the following functions...

    Need help with 1,2,3 thank you. 1. Order of growth (20 points) Order the following functions according to their order of growth from the lowest to the highest. If you think that two functions are of the same order (Le f(n) E Θ(g(n))), put then in the same group. log(n!), n., log log n, logn, n log(n), n2 V, (1)!, 2", n!, 3", 21 2. Asymptotic Notation (20 points) For each pair of functions in the table below, deternme whether...

  • For each pair of functions f(n) and g(n), indicate whether f(n) = O(g(n)), f(n) = Ω(g(n)), and/or...

    For each pair of functions f(n) and g(n), indicate whether f(n) = O(g(n)), f(n) = Ω(g(n)), and/or f(n) = Θ(g(n)), and provide a brief explanation of your reasoning. (Your explanation can be the same for all three; for example, “the two functions differ by only a multiplicative constant” could justify why f(n) = n, g(n) = 2n are related by big-O, big-Omega, and big-Theta.) i. f(n) = n^2 log n, g(n) = 100n^2 ii. f(n) = 100, g(n) = log(log(log...

  • Let f(n) = 5n^2. Prove that f(n) = O(n^3). Let f(n) = 7n^2. Prove that f(n)...

    Let f(n) = 5n^2. Prove that f(n) = O(n^3). Let f(n) = 7n^2. Prove that f(n) = Ω(n). Let f(n) = 3n. Prove that f(n) =ꙍ (√n). Let f(n) = 3n+2. Prove that f(n) = Θ (n). Let k > 0 and c > 0 be any positive constants. Prove that (n + k)c = O(nc). Prove that lg(n!) = O(n lg n). Let g(n) = log10(n). Prove that g(n) = Θ(lg n). (hint: ???? ? = ???? ?)???? ?...

  • For each pair of functions determine if f(n) ? ?(g(n)) or f(n) ? ?(g(n)) or f(n)...

    For each pair of functions determine if f(n) ? ?(g(n)) or f(n) ? ?(g(n)) or f(n) ? O(g(n)) and provide a proof as specified. For each of the following, give a proof using the definitions. 1. f(n) = log(n), g(n) = log(n + 1) 2. f(n) = n3 + nlog(n) ? n, g(n) = n4 + n 3. f(n) = log(n!), g(n) = nlog(n) 4. f(n) = log3(n), g(n) = log2(n) 5. f(n) = log(n), g(n) = log(log(n))

  • Choose the equivalent Big Oh notation for the functions given below. If there is more than...

    Choose the equivalent Big Oh notation for the functions given below. If there is more than one option, circle the tightest asymptotic bound. function f(n) = 5n - 10 belongs to a) O(1) b) O(n) c) O(n2) d) O(log n) function f(n) = 4n2 + 4n + 1 belongs to a) O(1) b) O(n) c) O(n2) d) O(log n) function f(n) = n2 + 100 log n belongs to a) O(1) b) O(n) c) O(n2) d) O(log n)

  • a) Prove that running time T(n)=n3+30n+1 is O(n3) [1 mark] b) Prove that running time T(n)=(n+30)(n+5)...

    a) Prove that running time T(n)=n3+30n+1 is O(n3) [1 mark] b) Prove that running time T(n)=(n+30)(n+5) is O(n2) [1 mark] c) Count the number of primitive operation of algorithm unique1 on page 174 of textbook, give a big-Oh of this algorithm and prove it. [2 mark] d) Order the following function by asymptotic growth rate [2 mark] a. 4nlogn+2n b. 210 c. 3n+100logn d. n2+10n e. n3 f. nlogn

  • Please solve Q1, this is a discrete math question. "O" represents Oh notation, f=O(g) if there...

    Please solve Q1, this is a discrete math question. "O" represents Oh notation, f=O(g) if there are positive constants c and n0 such that for any n≥ n0, f(n) ≤ c·g(n). Please include all your explanations. Problem 1 (3 points) Find the least integer t such that (n° + n2 log(n)) (log(n) + 1) + (8 log(n) +6) (n3 + 4) is 0 (nt). Briefly justify your answer (i.e., why it is o (nt) and why it is not 0...

  • I need to prove this mathematically and I'm not sure what to do. 3. (a) Find...

    I need to prove this mathematically and I'm not sure what to do. 3. (a) Find the best possible relationship using one of the notations: 0, 2, O, o, w, for the following pairs of functions: n3 + 6n1.5 + 3100 and nig8 – 10n1.6 – 9000; nlgn and n1.01; 3n and (3.01)”; 7" and n!. Justify each answer. (b) Function f(n) = 21 +5000n - 60000 when n < 75 and f(n) = n2 – 100n for 150 >...

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