What are the recursive steps of Karatsuba Multiplication?
What are the recursive steps of Karatsuba Multiplication?
With the numbers x and y split into four numbers: a, b, c, d.
1) Recursively compute ac (a × c).
2) Recursively compute bd (b × d).
3) Recursively compute (a + b) × (c + d),
which = ac + ad + bc + bd, then compute step 3 - step 1 - step 2 = ad + bc.