Consider the following two functions

g1[n] = n³, for 0 ≤ n ≤ 10,000 n², for n > 10.000

g2(n) = n, for 0 ≤ n ≤ 100 n³, for n > 100

Which one of the following are true?

a) g1(n) is (g2[n]]

b) g1(n) is O(n³]

c) g2(n) is (gi[n]]

d) g2[n] is O[n]

1 answer

b) g1(n) is O(n³)
Similar Questions
  1. Unicellular cells must carry out ___ of life.(1 point)Responses a few functions a few functions specific functions specific
    1. answers icon 16 answers
  2. Unicellular cells must carry out ___ of life.(1 point)Responses specific functions specific functions a few functions a few
    1. answers icon 7 answers
    1. answers icon 1 answer
  3. Unicellular cells must carry out ___ of life.Responses specific functions specific functions all functions all functions a few
    1. answers icon 1 answer
more similar questions