Question: Problem 5 . Karatsuba multiplication reduces the time complexity of multiplying two n - digit numbers to O ( nlog 2 3 ) O (
Problem Karatsuba multiplication reduces the time complexity of multiplying two n digit numbers to
Onlog On using the recurrence:
T nT n On
The algorithm splits the numbers as follows:
x xn x y yn y
and computes three products: x y x y and x x cdoty y Two values you are multiplying
might be n digits each, rather than n digits, since the addition might have led to a carry. For
instance compute x xy y for x and y Notice the carry and the extra digit. So the
recurrence will be
T nT n T n On
Prove that this issue wont affect our analysis and we still Onlog complexity.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
