Summary: | 碩士 === 逢甲大學 === 資訊工程所 === 91 === Karatsuba''s multiplication algorithm uses three single-digit multiplications to perform one two-digit multiplication. If we apply Karatsuba''s multiplier recursively, it takes only 3n single-digit multiplications to multiply a pair of 2n -digit numbers. This is a significant improvement compared to 4n single-digit multiplications using grade- school multiplier. In this paper, we will use tensor production formulation to express Karatsuba''s multiplication algorithm in both recursive and iterative form. Usually, Karatsuba''s algorithm is implemented as recursive program. With the iterative tensor product formula of Karatsuba''s algorithm, we can derive an iterative (for loop) program to perform multiplication of long-digit numbers. Furthermore, the 3n single- digit multiplications can be fully parallelized.
|