Question: Considering the following master theorem T(n) = a * T(n/b) + f(n) where f(n) (n d ), d 0 Master Theorem: if a < b
Considering the following master theorem
T(n) = a * T(n/b) + f(n) where f(n) (nd), d 0
Master Theorem:
if a < bd, T(n) (nd)
if a = bd, T(n) (nd log n)
if a > bd, T(n) (nlog b a)
Base o the above theorem, determine the time efficiency of the following formula T(n).
a) T(n) = 2 * T(n/2) + n2 + 2n + 1
......
b) T(n) = 4 * T(n/2) + 5(n)
........
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
