Karatsuba algorithm: Difference between revisions

Content deleted Content added
No edit summary
Line 40:
:''Z'' = (12 + 34)(56 + 78) - ''X'' - ''Y'' = 46 ⋅ 134 - 672 - 2652 = 2840
:''X'' 10<sup>2&sdot;2</sup> + ''Y'' + ''Z'' 10<sup>2</sup> = 672 0000 + 2652 + 2840 00 = '''7006652''' = 1234 &sdot; 5678
==Algorithm==
 
==Complexity==
If ''T''(''n'') denotes the time it takes to multiply two ''n''-digit numbers with Karatsuba's method, then we can write