226k views
3 votes
Order the following list of functions by the big-oh notation _________.

A) f(n) = n², g(n) = n log n, h(n) = n
B) f(n) = n, g(n) = n log n, h(n) = n²
C) f(n) = n log n, g(n) = n, h(n) = n²
D) f(n) = n², g(n) = n, h(n) = n log n

User Jandot
by
7.6k points

1 Answer

4 votes

Final answer:

The list of functions can be ordered by the Big O notation as follows: f(n) = n, g(n) = n log n, h(n) = n².

Step-by-step explanation:

The list of functions can be ordered by the Big O notation as follows:

  1. f(n) = n, g(n) = n log n, h(n) = n²
  2. f(n) = n log n, g(n) = n, h(n) = n²
  3. f(n) = n², g(n) = n, h(n) = n log n
  4. f(n) = n², g(n) = n log n, h(n) = n

To determine the order, we look at the growth rates of these functions as n approaches infinity. The function with the lowest growth rate is f(n) = n, followed by g(n) = n log n, and the highest growth rate is h(n) = n².

User FoggyFinder
by
8.7k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories