- #1
xeon123
- 90
- 0
I'm reading the book "Algorithms Design" and a recursion algorithm is defined as:
T(n)[itex]\leq[/itex]qT(n/q)+cn
But in the Karatsuba’s Algorithm, the recurrence for this algorithm is
T (n) = 3T (n/2) + O(n) = O(nlog2 3).
The last equation is strange, since 3T(n/2) is bigger than the set. Why they define like that?
(see pdf https://www.google.pt/url?sa=t&rct=...FrwVhGb_q1zQv1J8g&sig2=tNHJR-cfgZQBnihc7wckJQ)
T(n)[itex]\leq[/itex]qT(n/q)+cn
But in the Karatsuba’s Algorithm, the recurrence for this algorithm is
T (n) = 3T (n/2) + O(n) = O(nlog2 3).
The last equation is strange, since 3T(n/2) is bigger than the set. Why they define like that?
(see pdf https://www.google.pt/url?sa=t&rct=...FrwVhGb_q1zQv1J8g&sig2=tNHJR-cfgZQBnihc7wckJQ)
Last edited: