Question

Arrange the following functions in ascending order; f(n) should come before g(n) in your list only...

Arrange the following functions in ascending order; f(n) should come before g(n) in your list only if f(n) is O(g(n)).

                        10n2 + 100n, (log n)3, 2n, 99999, log n, n0.1+100, 0.1n3-50n, log n1000, 3n, n log n

Homework Answers

Answer #1

Arrange the following functions in ascending order:

10n2 + 100n, (log n)3, 2n, 99999, log n, n0.1+100, 0.1n3-50n, log n1000, 3n, n log n

Ascending Order:

  • 99999
  • logn
  • (log n)3
  • log n1000
  • n0.1+100
  • n log n
  • 10n2 + 100n
  • 0.1n3-50n
  • 2n
  • 3n

Description:

• The above can be written as:

99999 < logn < (log n)3 < log n1000 < n0.1+100 < n log n < 10n2 + 100n < 0.1n3-50n < 2n < 3n

• Order of the following functions:

• 99999 is the constant function which is the O(1).

• logn, (log n)3,  log n1000 is the O(log(n)).

• n log n is the O(nlogn).

• 10n2 + 100n is the O(n2).

• 0.1n3-50n is the O(n3).

• 2n is the O(2n) and 3n is the O(3n).

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
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...
which of the following are true: (1) f(n) = o(g(n)), (2) f(n) = Θ(g(n)), or (3)...
which of the following are true: (1) f(n) = o(g(n)), (2) f(n) = Θ(g(n)), or (3) g(n) = o(f(n)) for each function. Justify briefly your choices. 1. f(n) = 22n, g(n) = 3n + logn. 2. f(n) = √n + log(nn) + 500, g(n) = n.
Given the following list of functions, determine the order of growth of each using big-Theta notation...
Given the following list of functions, determine the order of growth of each using big-Theta notation and put all the functions in order from slowest-growing to fastest-growing. Be sure to put functions of equal growth rate on the same level. Unless otherwise noted, you can assume all logarithms are base-2. 6nlog(2n)+8n 4n2log(log(8n))+8n2+n 500 n3+7nlog(n2) + 4n 2n+2n+1 log(4n2)+3n+1 12 8log(24n)+10 8n2log(5n2)+7n+200 4log(n3)+1000 100log(16n)log(n6)+23 8nlog(log(n4))+6n+32 9log(log(8n))
Put the following complexity classes in ascending order. O(n log n) O(n) O(2^n) O(n^3)
Put the following complexity classes in ascending order. O(n log n) O(n) O(2^n) O(n^3)
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.
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)).
Arrange the following expressions by growth rate from slowest to fastest. 4n2 ; log3n ; n!...
Arrange the following expressions by growth rate from slowest to fastest. 4n2 ; log3n ; n! ; 3n ; 20n ; 2; log2n; n2/3 ;   n2 + 3n + 7 ; 4n3/2 ;   log2n * log2n ; nlog2n + 200n Format your answer by writing one or more functions on each line of your answer, with slower growing functions appearing first. Functions that grow at the same asymptotic rate as one another should be placed together on the same line...
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.
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.
using dr.racket programing language If we write a function that tests whether a list contains only...
using dr.racket programing language If we write a function that tests whether a list contains only strings, odd numbers, or even numbers, you will notice that the code that iterates through the list stays the same, with the only change being the predicate function that checks for the desired list element. If we were to write a new function for each of the tests listed above, it would be more error-prone and an example of bad abstraction. We could write...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT