PA of Algorithms Q30

0. Let f (n) = n2 logn and g(n) = n(logn)10 be two positive functions of n. Which of the following statements is correct?

  • Option : B
  • Explanation :
    f(n) = n2 logn
    g(n) = n (logn)10
    Here we can remove common factor from both the function to simply the value of f(n) & g(n)
    So f(n) = n
    g(n) = (logn)9
    Now choose the largest value of n to compare both the function.
    if n = 2100 then f(n) = 2100
    g(n) = (100)9
    f(n) > g(n).
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *