...
STQC-NIELIT SC-B 2021
November 29, 2023
Data-Communication
November 29, 2023
STQC-NIELIT SC-B 2021
November 29, 2023
Data-Communication
November 29, 2023

Question 9754 – Time-Complexity

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

Correct Answer: B

Question 13 Explanation: 
f(n) = n2logn; g(n) = n(logn)10
Cancel nlogn from f(n), g(n)
f(n) = n; g(n) = (logn)9
n is too large than (logn)9
So f(n)! = O(g(n)) and g(n) = O(f(n))
A
f(n) = O(g(n) and g(n) ≠ O(f(n))
B
g(n) = O(f(n) and f(n) ≠ O(g(n))
C
f(n) ≠ O(g(n)) and g(n) ≠ O(f(n))
D
f(n) = O(g(n)) and g(n) = O(f(n))

Leave a Reply

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