Suppose f(n)=n^2 log⁡n. Consider the statements:

2022

Suppose f(n)=n^2 log⁡n. Consider the statements:

image.pngimage.png

  1. A.

    A, B & C are all not true.

  2. B.

    B & C are true but A is not true.

  3. C.

    B is true but A & C are not true.

  4. D.

    A & B are true and C is not true.

Attempted by 371 students.

Show answer & explanation

Correct answer: C

image.png

Given f(n) = n^2 log n.

  • Compare with n sqrt(n) = n^{3/2}: (n^2 log n)/(n^{3/2}) = n^{1/2} log n → ∞, so f(n) grows faster than n sqrt(n) and therefore is not O(n sqrt(n)).

  • Compare with n^2 sqrt(n) = n^{5/2}: (n^2 log n)/(n^{5/2}) = (log n)/n^{1/2} → 0, so f(n) is asymptotically smaller and hence f(n) = O(n^2 sqrt(n)).

  • Compare with n^3: (n^2 log n)/n^3 = (log n)/n → 0, so f(n) = o(n^3) and therefore f(n) is not Ω(n^3).

Conclusion: The only true statement is that f(n) = O(n^2 sqrt(n)). The other two statements are false.

Explore the full course: Up Lt Grade Assistant Teacher 2025