CUET PG 2026 — DSA PYQ
CUET PG | DSA | 2026Using the Master Theorem, what is the tight asymptotic bound for the recurrence relation T(n)=4T(n/2)+n?
Choose the correct answer:
- A.
Θ(nlogn)
- B.
Θ(n2)
(Correct Answer) - C.
Θ(n3)
- D.
Θ(n2logn)
Θ(n2)
Explanation
The Master Theorem form for divide-and-conquer recurrences is:
T(n)=aT(n/b)+f(n)
From the given recurrence relation T(n)=4T(n/2)+n:
a=4
b=2
f(n)=n
Step 1: Calculate nlogba
nlogba=nlog24=n2
Step 2: Compare f(n) with nlogba
f(n)=n
nlogba=n2
Since f(n)=O(n2−ϵ) for \epsilon = 1 > 0, f(n) grows polynomially slower than nlogba.
Step 3: Apply Case 1 of Master Theorem
If f(n)=O(nlogba−ϵ), then:
T(n)=Θ(nlogba)
Therefore:
T(n)=Θ(n2)
Correct Answer: (B) Θ(n2)
Explanation
The Master Theorem form for divide-and-conquer recurrences is:
T(n)=aT(n/b)+f(n)
From the given recurrence relation T(n)=4T(n/2)+n:
a=4
b=2
f(n)=n
Step 1: Calculate nlogba
nlogba=nlog24=n2
Step 2: Compare f(n) with nlogba
f(n)=n
nlogba=n2
Since f(n)=O(n2−ϵ) for \epsilon = 1 > 0, f(n) grows polynomially slower than nlogba.
Step 3: Apply Case 1 of Master Theorem
If f(n)=O(nlogba−ϵ), then:
T(n)=Θ(nlogba)
Therefore:
T(n)=Θ(n2)
Correct Answer: (B) Θ(n2)
