Next:
Up:
Previous:
Analysis
T(n) =
k = (n-1)/2:
T(n) = T((n-1)/2) + T(n - (n-1)/2 - 1) +
= T((n-1)/2) + T(n/2 + 1/2 - 1) +
= T((n-1)/2) + T((n-1)/2) +
= 2T((n-1)/2) +
2T(n/2) +
=
k = 0:
T(n) = T(0) + T(n-1) +
= T(n-1) +
=
Next:
Up:
Previous: