According to master theorem -
T(n) = aT(n/b) + f(n) where a >= 1 and b > 1
There are following three cases:
1. If f(n) = Θ(nc) where c < Logba then T(n) = Θ(nLogba)
2. If f(n) = Θ(nc) where c = Logba then T(n) = Θ(ncLog n)
3.If f(n) = Θ(nc) where c > Logba then T(n) = Θ(f(n))
- a = 2^n
- b = 2
- c = n
- c = Logba
- T(n) = Θ(ncLog n)
so T(n) = Θ(n^n Log n)