Algorithm 898: Efficient Multiplication of Dense Matrices over GF(2)

被引:14
作者
Albrecht, Martin [1 ]
Bard, Gregory [2 ]
Hart, William [3 ]
机构
[1] Univ London, Informat Secur Grp, Egham TW20 0EX, Surrey, England
[2] Fordham Univ, Dept Math, Bronx, NY 10458 USA
[3] Univ Warwick, Dept Math, Coventry CV4 7AL, W Midlands, England
来源
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE | 2010年 / 37卷 / 01期
基金
英国工程与自然科学研究理事会;
关键词
Algorithms; Experimentation; GF(2); matrix; linear algebra; multiplication; Strassen; greasing;
D O I
10.1145/1644001.1644010
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We describe an efficient implementation of a hierarchy of algorithms for multiplication of dense matrices over the field with two elements (F(2)). In particular we present our implementation in the M4RI library-of Strassen-Winograd matrix multiplication and the "Method of the Four Russians for Multiplication" (M4RM) and compare it against other available implementations. Good performance is demonstrated on AMD's Opteron processor and particulary good performance on Intel's Core 2 Duo processor. The open-source M4RI library is available as a stand-alone package as well as part of the Sage mathematics system. In machine terms, addition in F2 is logical-XOR, and multiplication is logical-AND, thus a machine word of 64 bits allows one to operate on 64 elements of F2 in parallel: at most one CPU cycle for 64 parallel additions or multiplications. As such, element-wise operations over F2 are relatively cheap. In fact, in this paper, we conclude that the actual bottlenecks are memory reads and writes and issues of data locality. We present our empirical findings in relation to minimizing these and give an analysis thereof.
引用
收藏
页数:14
相关论文
共 19 条
[1]  
Aho A. V., 1974, The design and analysis of computer algorithms
[2]  
[Anonymous], 2002, Hacker's Delight
[3]  
[Anonymous], 2007, GAP GROUPS ALG PROGR
[4]  
ARLAZAROV V, 1970, DOKL AKAD NAUK, V194, P11
[5]  
BARD G, 2008, MATRIX INVERSI UNPUB
[6]  
Bard G. V., 2007, ALGORITHMS SOLVING L
[7]  
BARD GV, 2006, 2006251 CRYPT EPRINT
[8]   The Magma algebra system .1. The user language [J].
Bosma, W ;
Cannon, J ;
Playoust, C .
JOURNAL OF SYMBOLIC COMPUTATION, 1997, 24 (3-4) :235-265
[9]  
Brickenstein M., 2007, EL P MEGA 2007
[10]  
DUMAS JG, 2007, MEMORY EFFICIENT SCH