Question

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 positive functions. Which of the following statements is true?

Select one:

a. If f(n) is Ω(g(n)) then there is only a finite set of values for which f(n) < g(n).

b. If f(n) is Ω(g(n)) then limn→∞ f(n)/g(n) >= 1.

c. f(n) is Ω(g(n)) iff for all n >= n0, g(n)/f(n) <= c, where n0 and c are positive constants.

d. If f(n) is Ω(g(n)) then limn→∞ g(n)/f(n) exists and is not infinity.

4.

Let f(n)=2nf(n)=2n and let g(n)=3ng(n)=3n. Which of the following is true?

Select one:

a. f(n)f(n) is O(g(n))O(g(n))

b. f(n)f(n) is Θ(g(n))Θ(g(n))

c. Neither function is an asymptotic upper bound of the other

5.

Let f and g be two functions such that f(n)/g(n) converges to 0 as n tends to infinity. Which of the following is necessarily true?

Select one:

a. f(n)=O(g(n))

b. f(n)=Ω(g(n))

c. f(n)=θ(g(n))

6.

Suppose that an algorithm runs in time T(n)=n^2+10n where n is the size of the input. Which of the following is not true:

Select one:

a. T(n) is O(n^2)

b. T(n) is O(n^3)

c. T(n) is Ω(n)

d. T(n) is Ω(log n)

e. T(n) is O(n)

7.

Suppose that an algorithm runs in time T(n)=(log n)^4+n log n where n is the size of the input. Which of the following is not true:

Select one:

a. T(n) is O(n^2)

b. T(n) is O(n log n)

c. T(n) is θ(n log n)

d. T(n) is Ω(n^4)

e. T(n) is Ω(n log n)

8.

Suppose the running time of an algorithm whose input has size nn is T(n)=n2+nlognT(n)=n2+nlog⁡n. Which of the following statements is always true.

Select one:

a. The algorithm runs in polynomial time.

b. The algorithm doesn't run in polynomial time.

c. Whether or not the algorithm runs in polynomial time depends on the value of n.

9. Suppose T(n)=3n2+2n+1T(n)=3n2+2n+1. What is the smallest value of cc such that T(n)≤cn2T(n)≤cn2 for all n≥1n≥1?

10. ∑j=1 ∑ji=1i=Θ(nc)∑j=1n∑i=1ji=Θ(n^c) for what value of c?

Homework Answers

Answer #1

1 answer)

f(n)/g(n) converges to a positive value less than 1 as n tends to infinity when g(n) >f(n). It can be written as f(n)=O(g(n)).

Option c

2 answer)

In n+23 log(2n) , dominating term is n.

In worst case time complexity could be O(n) and not more than that.

Option b

3 answer)

f(n) is Ω(g(n)) when limn→∞ f(n)/g(n) >= 1.

Option b

4 answer)

It's trivial......f(n) is Θ(g(n)).

Option b

5 answer)

f(n)/g(n) converges to 0 as n tends to infinity when f(n)<g(n).

So option a.

6 answer)

In  T(n)=n^2+10n , major term is n^2. In worst case it can't be less than n^2.

So option e

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
For each of the following pairs of functions f and g (both of which map the...
For each of the following pairs of functions f and g (both of which map the naturals N to the reals R), state whether f is O(g), Ω(g), Θ(g) or “none of the above.” Prove your answer is correct. 1. f(x) = 2 √ log n and g(x) = √ n. 2. f(x) = cos(x) and g(x) = tan(x), where x is in degrees. 3. f(x) = log(x!) and g(x) = x log x.
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...
Master Theorem: Let T(n) = aT(n/b) + f(n) for some constants a ≥ 1, b >...
Master Theorem: Let T(n) = aT(n/b) + f(n) for some constants a ≥ 1, b > 1. (1). If f(n) = O(n logb a− ) for some constant > 0, then T(n) = Θ(n logb a ). (2). If f(n) = Θ(n logb a ), then T(n) = Θ(n logb a log n). (3). If f(n) = Ω(n logb a+ ) for some constant > 0, and af(n/b) ≤ cf(n) for some constant c < 1, for all large n,...
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.
21.2. Let f(n) and g(n) be functions from N→R. Prove or disprove the following statements. (a)...
21.2. Let f(n) and g(n) be functions from N→R. Prove or disprove the following statements. (a) f(n) = O(g(n)) implies g(n) = O(f(n)). (c) f(n)=?(g(n)) if and only if (n)=O(g(n)) and g(n)=O(f(n)).
Let f,g be positive real-valued functions. Use the definition of big-O to prove: If f(n) is...
Let f,g be positive real-valued functions. Use the definition of big-O to prove: If f(n) is O(g(n)), then f2(n)+f4(n) is O(g2(n)+g4(n)).
1. (15 pts total) Prove or disprove each of the following claims, where f(n) and g(n)...
1. (15 pts total) Prove or disprove each of the following claims, where f(n) and g(n) are functions on positive values. (a) f(n) = O(g(n)) implies g(n) = Ω(f(n)) (b) f(n) = O(g(n)) implies 2^f(n) = O(2^g(n)) (c) f(n) = O((f(n))^2)
Are any of the following implications always true? Prove or give a counter-example. a) f(n) =...
Are any of the following implications always true? Prove or give a counter-example. a) f(n) = Θ(g(n)) -> f(n) = cg(n) + o(g(n)), for some real constant c > 0. *(little o in here) b) f(n) = Θ(g(n)) -> f(n) = cg(n) + O(g(n)), for some real constant c > 0. *(big O in here)
Let the functions f (t) = | t |3 and g (t) = t3. Only one...
Let the functions f (t) = | t |3 and g (t) = t3. Only one of the following statements is false. Which? a)W(f, g) = 0 at t = 0. b) The functions f and g are not solutions of the same linear EDO of order 2 on R. c) f (t)/g(t) ≠ const for all t ∈ R. d) f and g are linearly dependent. e) The wronskian of f and g is zero over all R.
For each of the following pairs of functions f and g (both of which map the...
For each of the following pairs of functions f and g (both of which map the naturals N to the reals R), show that f is neither O(g) nor Ω(g). Prove your answer is correct. 1. f(x) = cos(x) and g(x) = tan(x), where x is in degrees.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT