快速交换矩阵算法
Fast Commutative Matrix Algorithm
摘要:
我们证明了交换环上的n × 3矩阵和3 × 3矩阵的乘积可以用6 n +3次乘法来计算。对于两个3x 3矩阵,这给了我们一个使用21次乘法的算法。这是相对于使用22次乘法的Makarov算法的改进[13]。本文将结果推广到n × 3和3 × 3矩阵,给出了一个计算交换环上1 × n矩阵与n × m矩阵乘积的算法,当m为奇数时,用n(lm+l+m-1)/2次乘法,当m为偶数时,用(n(lm+l+m-1)+l-1)/2次乘法. Waksman和Islam的奇数n算法需要(n-1)(lm+l+m-1)/2+lm次乘法[10,19],因此在这两种情况下,我们的算法需要较少的乘法。我们还给出了一个算法,即使n使用n(lm+l+m-1)/2乘法,而不使用除法,因为Waksman和伊斯兰的算法使用了一些除以2 [10,19]。此外,我们提出了一个新颖的矩阵乘法:在本文中,我们表明,一些具有特殊性质的非双线性算法可以用作递归算法。与双线性算法相比,对于小的n × n矩阵,比如n<20,我们得到了一些更好的结果。从这些非双线性算法,我们最终得到近似的非双线性算法。例如,我们得到了一个近似的非双线性算法的5x 5矩阵,只使用89乘法。如果有可能将该算法与双线性算法进行比较,我们将获得比Smirnov算法更好的结果[15]。
英文摘要:
We show that the product of an nx3 matrix and a 3x3 matrix over a commutative ring can be computed using 6n+3 multiplications. For two 3x3 matrices this gives us an algorithm using 21 multiplications. This is an improvement with respect to Makarov's algorithm using 22 multiplications[13]. We generalize our result for nx3 and 3x3 matrices and present an algorithm for computing the product of an lxn matrix and an nxm matrix over a commutative ring for odd n using n(lm+l+m-1)/2 multiplications if m is odd and using (n(lm+l+m-1)+l-1)/2 multiplications if m is even. Waksman's and Islam's algorithm for odd n needs (n-1)(lm+l+m-1)/2+lm multiplications [10,19], thus in both cases less multiplications are required by our algorithm. We also give an algorithm for even n using n(lm+l+m-1)/2 multiplications without making use of divisions, since Waksman's and Islam's algorithm make use of some divisions by 2 [10,19]. Furthermore we present a novelty for matrix multiplication: In this paper we show that some non-bilinear algorithms with special properties can be used as recursive algorithms. In comparison to bilinear algorithms for small nxn matrices say n<20 we obtain some better results. From these non-bilinear algorithms we finally obtain approximate non-bilinear algorithms. For instance we obtain an approximate non-bilinear algorithm for 5x5 matrices that uses only 89 multiplications. If at all it is possible to compare this algorithm with a bilinear algorithm we obtain a better result with respect to Smirnov's algorithm [15].
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。