Karatsuba algorithm: Difference between revisions

Content deleted Content added
m Reverted edits by Hvestermark (talk) to last version by Koornti
Monkbot (talk | contribs)
m Task 18 (cosmetic): eval 4 templates: del empty params (1×);
Line 161:
 
==Pseudocode==
Here is the pseudocode for this algorithm, using numbers represented in base ten. For the binary representation of integers, it suffices to replace everywhere 10 by 2.<ref>{{cite book |last= Weiss |first= Mark A. |date= 2005 |title= Data Structures and Algorithm Analysis in C++ |___location= |publisher= Addison-Wesley|page= 480|isbn= 0321375319}}</ref>
 
The second argument of the split_at function specifies the number of digits to extract from the ''right'': for example, split_at("12345", 3) will extract the 3 final digits, giving: high="12", low="345".