Question

True or False...Provide your reasons If f(n) =o(g(n)), then f(n)=O(g(n)) If f(n) =O(g(n)), then f(n) ≤...

True or False...Provide your reasons

  1. If f(n) =o(g(n)), then f(n)=O(g(n))
  2. If f(n) =O(g(n)), then f(n) ≤ g(n)

3.  If 1<a=O(na), then f(n)=O(nb)

4. A and B are two sorting algorithms. If A is O(n2) and B is O(n), then for an input of X integers, B can sort it faster than A.

Homework Answers

Answer #1

Ans

False

f(n) = o(g(n)) does not imply f(n)= O(g(n))

It means f(n)<c.g(n) but does not mean f(n)<=c.g(n)

False

f(n) = O(g(n)) means f(n)<=c.g(n) where c>0 but it does not mean c=1. Hence f(n) <=g(n) is not inference .

3) False

1<a=O(n​​​​​​a) means 1<a<=c.na

then f(n)<=c.nb

we can't say anything about f(n) and b.

4) True

B is O(n) while A is O(n²). So, number of operation in B less than that of A for n>0. So, B execute faster.

If any doubt ask in the comments.

Know the answer?
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
Similar Questions
True for false An arraylist is a statically allocated data structure (true/false) Program efficiency is best...
True for false An arraylist is a statically allocated data structure (true/false) Program efficiency is best calculated by counting the execution times of programs(true/false) There are algorithms that are cheaper, hence faster than O(N2) when sorting a highly unsorted list(true/false) Java handles cleanup of unreferenced objects in memory automatically (true/false)
Determine wether the statements are true or false 1. Suppose we have f(n) = nlgn ,...
Determine wether the statements are true or false 1. Suppose we have f(n) = nlgn , g(n) = 5n , then f(n) = O(g(n)). 2. Suppose we have f(n) = nn/4 , g(n) = n1/2lg4n , then f(n) = O(g(n)). 3. No comparison-based sorting algorithm can do better than Ω(n log n) in the worst-case 4. Quicksort running time does not depend on random shuffling.
1. (True or False) If f(n) = O(sqrt(n)) then f(n) = O(n), need explain 2. (True...
1. (True or False) If f(n) = O(sqrt(n)) then f(n) = O(n), need explain 2. (True or False) sqrt(n) = O(lg n), need explain
Assume that f(n) = O(g(n)). Can g(n) = O(f(n))? Are there cases where g(n) is not...
Assume that f(n) = O(g(n)). Can g(n) = O(f(n))? Are there cases where g(n) is not O(f(n))? Prove your answers (give examples for the possible cases as part of your proofs, and argue the result is true for your example).
1.Let f and g be two functions such that f(n)/g(n) converges to a positive value less...
1.Let f and g be two functions such that f(n)/g(n) converges to a positive value less than 1 as n tends to infinity. Which of the following is necessarily true? Select one: a. g(n)=Ω(f(n)) b. f(n)=Ω(g(n)) c. f(n)=O(g(n)) d. g(n)=O(f(n)) e. All of the answers 2. If T(n)=n+23 log(2n) where the base of the log is 2, then which of the following is true: Select one: a. T(n)=θ(n^2) b. T(n)=θ(n) c. T(n)=θ(n^3) d. T(n)=θ(3^n) 3. Let f and g be...
1. a True or False? If ∫ [ f ( x ) ⋅ g ( x...
1. a True or False? If ∫ [ f ( x ) ⋅ g ( x ) ] d x = [ ∫ f ( x ) d x ] ⋅ [ ∫ g ( x ) d x ]. Justify your answer. B. Find ∫ 0 π 4 sec 2 ⁡ θ tan 2 ⁡ θ + 1 d θ C. Show that ∫ 0 π 2 sin 2 ⁡ x d x = ∫ 0 π 2 cos...
Understand the complexity of algorithms. Find the c and N for the function g so that...
Understand the complexity of algorithms. Find the c and N for the function g so that f(n) = O(g(n)). 1) f(n) = 4n2 + 3n + 6, g(n) = n2 2) f(n) = 3n2 + 2n + 8, g(n) = n3 3) f(n) = n2 + 4n, g(n) = n2 4) f(n) = 1000 n + 2000, g(n) = n 5) f(n) = 1000 n + 2000, g(n) = n2 6) f(n) = 1000 n + 2000, g(n) = n​​​​​​​3...
True or False? No reasons needed. (e) Suppose β and γ are bases of F n...
True or False? No reasons needed. (e) Suppose β and γ are bases of F n and F m, respectively. Every m × n matrix A is equal to [T] γ β for some linear transformation T: F n → F m. (f) Recall that P(R) is the vector space of all polynomials with coefficients in R. If a linear transformation T: P(R) → P(R) is one-to-one, then T is also onto. (g) The vector spaces R 5 and P4(R)...
i) F o r t h e f o l l o w I n g...
i) F o r t h e f o l l o w I n g f i n d t h e ( c o m p. E x p.) f o u r I e r s e r i e s f o r x( t ) I I ) D r a w t h e am p &. P h a s e s p e c t r a I I I ) T...
Determine if the following statements are true or false. In either case, provide a formal proof...
Determine if the following statements are true or false. In either case, provide a formal proof using the definitions of the big-O, big-Omega, and big-Theta notations. For instance, to formally prove that f (n) ∈ O(g(n)) or f (n) ∉ O(g(n)), we need to demonstrate the existence of a constant c and a sufficient large n0 such that f (n) ≤ c g(n) for all n ≥ n0, or showing that there are no such values. a) [1 mark] 10000n2...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT