You have:
a = 1, b = 2 f(m) = Ө(lg(m))
The second case of the main theorem applies if:
f(m) = Ө(m^c * lg^k(m))
Where:
c = log_b(a)
Experiencing this, we have:
f(m) = Ө(lg(m)) = Ө(m^0 * lg(m)) -> c = 0 -> c = log_b(a) = log_2(1) = 0
Thus, the second case applies. Thus, the solution to the problem of repetition:
T(m) = Ө(m^c * lg²(m)) = Ө(lg²(m))
Substituting m , we return to
T(n) = Ө(lg²(lg(n)))
source share