Introduction to Algorithms : Recurrence
Print this page
Assume
for some value of
i
.That is,
i = log n
= nT(1) + C
2
n*log(n)
T(n)
= C
1
n + C
2
n*log(n)
= O(n*log(n)
)
If
for some
i
, consider
< 2nT(1) + c
2
n*log(n)
T(n)
= 2c
1
n + c
2
n*log(n)
= O(n*log(n))
Prev
First
|
Next
|
End