Journal "Software Engineering"
a journal on theoretical and applied science and technology
ISSN 2220-3397
Issue N2 2017 year
This article provides two variants of hybrid recursive algorithms of long integers multiplication, combining the asymptotically fast Karatsuba algorithm with shift-and-add algorithm at low levels of recursion. These algorithms can find a good use when creating computer algebra system libraries. The article introduces both the recursive and the sequential (linear) implementation of the algorithms in question. The performance of the experiments made it possible to define the applicability of the algorithms depending on the operands size. The article demonstrates the impact of forward recursion stop threshold in a hybrid algorithm on the computing speed. The optimal values of this parameter are determined. The research proposes an efficient computational scheme which doesnt use additional memory for signs of intermediate computations results (SKML algorithm). The author develops the memory organization schemes supporting both the recursive and the sequential implementation of the SKML and AKML algorithms. The research evaluates the programs memory size and the data memory size needed for efficient use of the algorithms in question. The author compares the computing efficiency of the algorithms in question against the well-known GMP and Boost libraries.