Question

1. For each function defined below, find the value of k such that s(n) = O(nk). For part (a), justify your answer from the de
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer(a)

Big O Notaion:

's(n) = \Theta (nk)

s(n) = (2n +1) (5n2 + 1)

s(n) = (2n +1) (5n2 + 1)

s(n) = ( 2n x 5n2 + 2n + 5n2 + 1)

s(n) = ( 10 n3 + 2n + 5n2 + 1) // major term is n3

s(n) = ( 10 n3 )

nk \leqslant ( 10 n3 )

nk = O(n3 ) k =0,1,2,3   according to k values we can select constant C values satisfying equation

s(n) = O(n3 )

-------------------------------------------------------------------------------------------

Omega O Notaion:

's(n) = \Theta (nk)

s(n) = (2n +1) (5n2 + 1)

s(n) = (2n +1) (5n2 + 1)

s(n) = ( 2n x 5n2 + 2n + 5n2 + 1)

s(n) = ( 10 n3 + 2n + 5n2 + 1) // major term is n3

s(n) = ( 10 n3 )

nk \geq ( 10 n3 )

nk = O(n3 ) k =3,4,5,....... according to k values we can select constant C values satisfying equation

s(n) = \Omega (n3 )

----------------------------------------------------------------------------------------------------------------------------

Theta O Notaion:

's(n) = \Theta (nk)

s(n) = (2n +1) (5n2 + 1)

s(n) = (2n +1) (5n2 + 1)

s(n) = ( 2n x 5n2 + 2n + 5n2 + 1)

s(n) = ( 10 n3 + 2n + 5n2 + 1) // major term is n3

s(n) = ( 10 n3 )

nk = ( 10 n3 )

nk = (n3 ) k =3   constant C1 = 1 and C2 =1

s(n) = \Theta (n3 )

-----------------------------------------------------------------------------------------------------

Answer(b)

(b) s(n) = n3 t(n) + n5 where t(n) = (nb)

s(n) = n3 t(n) + n5

s(n) = n3 x nb+ n5  

  • case 1: if b = 0,1,2 then

s(n) = n3 x nb+ n5  

s(n) = O(n5 )  

  • case 2: if b = 3,4,...... then

s(n) = n3 x nb+ n5  

s(n) = O(n3 nb )  

Add a comment
Know the answer?
Add Answer to:
1. For each function defined below, find the value of k such that s(n) = O(nk)....
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
  • For each function defined below, find the value of k such that s(n) = O(n). For...

    For each function defined below, find the value of k such that s(n) = O(n). For part (a), justify your answer from the definitions of 0, 0, and 2 by finding explicit constants that work For part (b), you do not need to find explicit constants, just explain why your answer is correct. (a) s(n) = (2n + 1)(5n² +1) (b) s(n) = nºt(n) + no where t(n) = O(n") (Hint: answer in terms of b.)

  • For each of the following problems, simplify and express your answer as Θ(nk) or Θ(nk(log n...

    For each of the following problems, simplify and express your answer as Θ(nk) or Θ(nk(log n wherever possible. If the asymptotic running time is exponential, then just give exponential lower bounds. Random(n) generates a random number between 1 and n with uniform distribution (every integer between 1 and n is equally likely.) CoinFlip) returns heads or tails with equal probability. Consider the following ution: Func5 (A, n) A is an array of inlegers 1 if (n <10 the retur (A])...

  • In questions 1-8, find the limit of the sequence. sin n cos n 2. 37 /n sin n 3. 4. cos rn 5. /n sin n o cos n n! 9. If c is a positive real number and lan) is a sequence such that for all inte...

    In questions 1-8, find the limit of the sequence. sin n cos n 2. 37 /n sin n 3. 4. cos rn 5. /n sin n o cos n n! 9. If c is a positive real number and lan) is a sequence such that for all integer n > 0, prove that limn →00 (an)/n-0. 10. If a > 0, prove that limn+ (sin n)/n 0 Theorem 6.9 Suppose that the sequence lan) is monotonic. Then ta, only if...

  • 1. Consider the circuit shown below. Cl e, (0) c, e。(t) Find the transfer function below using t...

    Please help with this dynamics circuit analysis. Please show work and explain. Thank you!! 1. Consider the circuit shown below. Cl e, (0) c, e。(t) Find the transfer function below using time-domain and impedance methods. (a) Determine the differential equation for the relationship between eo(1) and e(1) (b) Find the transfer function E, (s)/E,(s) and determine the system time constant in terms of the circuit element values C, C, and R 17 2 (c) Find the transfer function E, (s)/E,...

  • (2) Solow Model Arithmetic: Suppose that the economy has the following production function K >O The...

    (2) Solow Model Arithmetic: Suppose that the economy has the following production function K >O The population grows at the exogenously given rate n, so that N-(1+n)N (a) Derive the per worker production function, where y- Y/N is output per worker and k = K/N is capital per worker. (b) Derive the aggregate accumulation equation for capital per worker expressed solely as a function of k, ,A, and parameters (s,8, d,n). Recall the law of motion for capital: (e) Show...

  • IN (1,2,3,4 following .) D-(x1x=2n-1,neEN), G-k x-2 nEN). and Fs(x1x#2n + 1 n-oornEN). ind the s...

    IN (1,2,3,4 following .) D-(x1x=2n-1,neEN), G-k x-2 nEN). and Fs(x1x#2n + 1 n-oornEN). ind the s plest poss ble e pression for each a. DUF b.DUG O C. The simplest expression tor D UF is the universal set b. Select the correct choice below and, if necessary, fill in the answer box to complete your choice. O A. The simplest expression for D U G is O B. The simplest expression for D UGIs@ 0 C. The simplest expression for...

  • In the following exercises, find the value(s) of k that makes each function continuous over the...

    In the following exercises, find the value(s) of k that makes each function continuous over the given interval. 145. f(x) = $3x + 2, x<k 12x – 3, k < x < 8 3 153. Apply the IVT to determine whether 2* = x has a solution in one of the intervals [1.25, 1.375] or [1.375, 1.5]. Briefly explain your response for each interval. Determine whether each of the given statements is true. Justify your response with explanation or counterexample....

  • Q9 6. Define Euclidean domain. 7. Let FCK be fields. Let a € K be a...

    Q9 6. Define Euclidean domain. 7. Let FCK be fields. Let a € K be a root of an irreducible polynomial pa) EFE. Define the near 8. Let p() be an irreducible polynomial with coefficients in the field F. Describe how to construct a field K containing a root of p(x) and what that root is. 9. State the Fundamental Theorem of Algebra. 10. Let G be a group and HCG. State what is required in order that H be...

  • What s the mahermatiab n t Choose the correct answer below. n1 n2 O B. n-1...

    What s the mahermatiab n t Choose the correct answer below. n1 n2 O B. n-1 OD, x1-x2

  • Constants Part A A uniform 249-N rod that is 1.85 m long carries a 225- weight...

    Constants Part A A uniform 249-N rod that is 1.85 m long carries a 225- weight at its right end and an unknown weight W toward the left end (see the figure (Figure 1). When W s placed 44 8 cm from the left end of the rod, the system just balances horizontally when the fulcrum is located 70.6 cm from the right end Find W W- Submit Part B If W is now moved 26. 4 cm to the...

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