CUET PG 2026 — DSA PYQ
CUET PG | DSA | 2026If f(n)=5n2+3nlogn and g(n)=n2, what is the asymptotic relationship between f(n) and g(n)?
Choose the correct answer:
- A.
f(n)=o(g(n))
- B.
f(n)=ω(g(n))
- C.
f(n)=Θ(g(n))
(Correct Answer) - D.
f(n)=Θ(g(n))
Explanation
To find the asymptotic relationship between f(n) and g(n), evaluate the limit of their ratio as n→∞:
n→∞limg(n)f(n)=n→∞limn25n2+3nlogn
Dividing each term in the numerator by n2:
n→∞lim(n25n2+n23nlogn)=n→∞lim(5+n3logn)
As n→∞, nlogn→0:
5+0=5
Since the limit is a positive constant (0 < 5 < \infty), f(n) and g(n) have the same order of growth.
By definition:
f(n)=Θ(g(n))
Correct Answer: (C) f(n)=Θ(g(n))
Explanation
To find the asymptotic relationship between f(n) and g(n), evaluate the limit of their ratio as n→∞:
n→∞limg(n)f(n)=n→∞limn25n2+3nlogn
Dividing each term in the numerator by n2:
n→∞lim(n25n2+n23nlogn)=n→∞lim(5+n3logn)
As n→∞, nlogn→0:
5+0=5
Since the limit is a positive constant (0 < 5 < \infty), f(n) and g(n) have the same order of growth.
By definition:
f(n)=Θ(g(n))
Correct Answer: (C) f(n)=Θ(g(n))
