-1

As we know for master theorem: T(n)=aT(n/b)+Θ(nd) this formate is required.. But for T(n)=2T(n/2)+2^n If I want to apply theorem what will be value of d here? We cant just take d=2 here..right?

1 Answers1

0

The master theorem concerns recurrence relations of the form:

$T(n)=aT(n/b)+\color{red}{f(n)}$ this formate is required, where $a\geqslant 1, b>1$

This fits for case 3 of the theorem:

$f(n)=\Theta(n^c)$ where $c>\log _2 2=1$ can you procced from here?

Nehorai Elbaz
  • 211
  • 1
  • 7