For each of the following g(n), which are legitimate Big-O, Big-Theta, or Big-Omega for f(n) = n^2 + 2n. List all that apply.
a) n^2
b) n^3
c) n
d) 2^n
e) lg n
a) n^2 f(n) = Theta(n^2) b) n^3 f(n) = Big-O(n^3) c) n f(n) = Big-Omega(n) d) 2^n f(n) = Big-O(2^n) e) lg n f(n) = Big-Omega(lg n)
For each of the following g(n), which are legitimate Big-O, Big-Theta, or Big-Omega for f(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...
Use the properties of Big - Oh, Big - Omega, and Big - Theta to prove that if f (n) = theta (3 Squareroot n) and g (n) = Ohm (f (n) + 7 f (n)^2 + 49 Squareroot n), then g (n)^3 = Ohm (n^2). You may use the fact that n^a = 0 (n^b) if and only if a lessthanorequalto b, where a and b are constants.
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...
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)...
Part 3 - Big-Theta 15pts For the following problem, give and prove the Big-Oh, Big-Omega, and thus the Big-Theta of the function. Provide a graph for both the Big-Oh and Big-Omega inequalities with the constants you chose. You may use wolframalpha.com or any other graphing site to achieve this. Show that f(n)= 18n+4 is in Θ(n). Explain your analysis.
Prove the following using the following definition of O,Big-omega,Theta, small omega Σki=1 ?i ?i = ?(nk )??? ? > 1.
Consider the following function, select all the function and apply which one is f= 0(g), f= omega g & f = theta g. Explain it each and every step. f = n! g = 2^n f=(log n)^3 g = n f= 5^n/2 g =2^n f=logn! g= nlog n f=3^(n+1) g= 5^n f=n! g= 2^n f=2^n g= 2^n/2 f=2n+logn g = n+(logn)^2 f=nsqrt(n) g= 5^(log_2 (n))
1) Which of the following are in O (n): a) n + lg n b) n + 2n c) n + n2 d) 1000 n + 4500 lg n + 54 n 2) What is a stack? Give an ADT. 3) How would you implement the push method for a Stack implemented as a Linked List? 4) How would you implement the pop method for a Stack implemented as a Linked List?
For each of the following functions, indicate the class Θ(g(n)) the function belongs to. ( Use the simplest g(n) possible in your answers). Prove your assertions. a. ( n2 + 1)10 b. 2n+1 + 3n-1 c. [ log2 n ] d. 2n lg(n+2)2 + ( n+2)2 lg n/2 e. ( 10n2 + 7n + 3)1/2
Which of the following series diverges? n +2 2n -1 n1 n+3 O A. 2 B. O C. 1,3 O D. 1, 2 OE. 2, 3 F. None O G. O H. 1,2,3 Find the sum of the series A. B. OC. 1/10 D. 1/2 3/2 3/4 OE. 1 F. 5/12 OG. 1/4 H. Divergent Which of the following series converges? oo 2n 1.Σ n 1 23n nE1 (n+ 1)3 n+ 1 3. O A. None O B. 2 O...