T1(n) = 4T1 n2 +nlog45. Which is true?
Correct Answer :
Solution :
The correct option is:
Step-by-Step Explanation:
The given recurrence relation is:
We can analyze this recurrence relation using the Master Theorem, which is applicable to recurrences of the form:
By comparing the terms, we identify the parameters:
- Coefficient of the recursive term, a = 4
- Dividing factor of the input size, b = 2
- Non-recursive cost function, f(n) = nlog4(5)
Next, we compute the critical exponent value:
Now we compare f(n) = nlog4(5) with nlogb(a) = n2.
Since 4 < 5 < 16, we know that:
The value of log4(5) is approximately 1.161. Since 1.161 is strictly less than 2, the non-recursive part grows strictly slower than n2:
for a constant ε = 2 - log4(5) ≈ 0.839 > 0.
According to Case 1 of the Master Theorem, when the recursive work dominates the non-recursive overhead, the overall time complexity is determined by the recursive work:
Access expert-curated educational resources and study materials—completely free.
Create, conduct, and manage professional online assessments with Mindyard. Perfect for teachers and institutes.
Copyright © 2026 Mindyard. All Rights Reserved.