Question

Use the properties of Big-Oh, Big-Omega, and Big Theta to prove that if f (n) O (Vn) and g(n) S2(f(n) 7f(n) +49 m), then g(n) S2(n2). You may use the fact that n O no) if and only if a S b, where a and b are constants

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

importat fact is that the base of logarithms is not important. Any two log functions are related by multiplication by a constant. The formula is loga(n) = logb(n) loga(b) (so the constant is loga(b)). To prove this, start with aloga(n) = blogb(n) (both of these equal n), take logs to base a of both sides and simplify using the rules of logarithms.Fact B1. If f is O(g) and g is O(h), then f is O(h). You should know how to prove this Fact. It implies that if f is O(g), then it is also Big-O of any function “bigger” than g. This is why one is typically interested in finding a “best possible” big-O expression for f (i.e., one that can not be replaced by a “smaller” function). Usually one can guess a “best possible” big-O estimate for a function by first throwing away all constants, and second keeping only the biggest term in the expression. (You still need to prove that your guess is correct.) For example applying these guidelines to f(n) = 10 · 2nn2 + 17n3 log(n) − 500 suggests that a best possible big-O form is O(2nn2). A quick way to decide if f is O(g) is to use limits. It turns out that f is O(g) if

limn→∞ |f(n)| |g(n)|

exists and is finite. The proof that this works involves the definition of the limit of a function, which we have not studied. Most often you will be asked to prove f is O(g) using the definition, so this method will not be accepted. Memorize: Suppose f : Z → R and g : Z → R are functions. We say f is Ω(g) if there exists constants C and k so that |f(n)| ≥ C|g(n)| for all n>k. Big-Ω is just like big-O, except that Cg(n) is now a lower bound for f(n) for all large values of n. All of the same comments and proof techniques as above apply except the inequalities are in the other direction. Fact B2. A function f is Ω(g) if and only if g is O(f). You should know how to prove this Fact, and should also be able to use it in arguments involving big-Ω. Memorize: Suppose f : Z → R and g : Z → R are functions. We say f is Θ(g) if f is O(g) and f is Ω(g). In other words, a function f is Θ(g) if and only if there are constants C1 and C2 so that C1g(n) ≤ f(n) ≤ C2g(n) for all large vales of n. Fact B3. A function f is Θ(g) if and only if f is O(g) and g is O(f). You should know how to prove this Fact, and should also be able to use it in arguments involving big-Θ. It turns out that f is Θ(g) if

limn→∞ |f(n)| |g(n)|

Add a comment
Know the answer?
Add Answer to:
Use the properties of Big - Oh, Big - Omega, and Big - Theta to 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
  • 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)...

  • Prove that if f (n) = O (g (n)) and g (n) = Ohm (h (n)),...

    Prove that if f (n) = O (g (n)) and g (n) = Ohm (h (n)), it is not necessarily true that f(n) = O (h (n)). You may assume that low degree (i.e., low-exponent) polynomials do not dominate higher degree polynomials, while higher degree polynomials dominate lower ones. For example, n^3 notequalto O (n^2), but n^2 = O (n^3). Prove that if f (n) = O (g (n)) and g (n) = Ohm (h (n)), it is not necessarily...

  • How can I go prove ( sqrt( (n+1)^3 ) ) is Big Omega (n * sqrt(n))...

    How can I go prove ( sqrt( (n+1)^3 ) ) is Big Omega (n * sqrt(n)) using the formal definitions of Big Oh, Big Theta, and Big Omega?

  • 1 question) Arrange the following in the order of their growth rates, from least to greatest:...

    1 question) Arrange the following in the order of their growth rates, from least to greatest: (5 pts) n3                     n2         nn        lg n     n!       n lg n              2n                     n 2 question)Show that 3n3 + n2 is big-Oh of n3. You can use either the definition of big-Oh (formal) or the limit approach. Show your work! (5 pts.) 3 question)Show that 6n2 + 20n is big-Oh of n3, but not big-Omega of n3. You can use either the definition of big-Omega...

  • 1. [5 marks Show the following hold using the definition of Big Oh: a) 2 mark...

    1. [5 marks Show the following hold using the definition of Big Oh: a) 2 mark 1729 is O(1) b) 3 marks 2n2-4n -3 is O(n2) 2. [3 marks] Using the definition of Big-Oh, prove that 2n2(n 1) is not O(n2) 3. 6 marks Let f(n),g(n), h(n) be complexity functions. Using the definition of Big-Oh, prove the following two claims a) 3 marks Let k be a positive real constant and f(n) is O(g(n)), then k f(n) is O(g(n)) b)...

  • Use the definition of 0 to show that 5n^5 +4n^4 + 3n^3 + 2n^2 + n...

    Use the definition of 0 to show that 5n^5 +4n^4 + 3n^3 + 2n^2 + n 0(n^5).Use the definition of 0 to show that 2n^2 - n+ 3 0(n^2).Let f,g,h : N 1R*. Use the definition of big-Oh to prove that if/(n) 6 0(g{n)) and g(n) 0(h{n)) then/(n) 0(/i(n)). You should use different letters for the constants (i.e. don't use c to denote the constant for each big-Oh).

  • 23.87: An electric dipole in a uniform horizontal electric field is displaced slightly from its equilibrium...

    23.87: An electric dipole in a uniform horizontal electric field is displaced slightly from its equilibrium position as shown, where theta is small. The separation of the charges is 2a, and each of the two particles has mass m. a)Assuming the dipole is released from this position (at rest), show that its angular orientation exhibits simple harmonic motion (this is the same as showing that d^2 theta/d t^2 + omega * theta = 0 where omega is a collection of...

  • What are the Big-Oh and Omega orders of the following code fragment? What is Tilde approximation?...

    What are the Big-Oh and Omega orders of the following code fragment? What is Tilde approximation? The fragment is prameterized on the variable n. Assume that you are measuring the number of swap calls. for(int j=0;j<n-1;j++){      int z = j;      for (int i=j+1; i<n; i++){             if(a[i] < a[z]){                       z=i;} } if(z!= j){       swap(a[j], a[z]); //count these      } }

  • 1. a) Let f(n) = 6n2 - 100n + 44 and g(n) = 0.5n3 . Prove...

    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 f(n) = O(g(n)) (you need to find constants c and n0) and g(n) = O(f(n)) (you need to find constants c and n0). Conclude that...

  • Prove, either a function is injective, surjective or bijective.

    Prove If the functions are injective, surjective, or bijective. You must prove your answer. For example, if you decide a function is only injective, you must prove that it is injective and prove that it is not surjective and that it is not bijective. Similarly, if you claim a function is only surjective, you must prove it is surjective and then prove it is not injective and not bijective. - Define the function g: N>0 → N>0 U {0} such that g(x) = floor(x/2). You may use the fact that...

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