A FAST WAY TO COMPUTE MATRIX MULTIPLICATION MAE05 Presented by: Forrest Yau Zhen Kit , Jurong Pioneer Junior College 1
HIGHLIGHTS I. Background What led me to research more on this topic? II. Methodology How does my contributions help in this research topic? III. Conclusion What are some future possible directions? 2
I. BACKGROUND 3
NAΓVE MATRIX MULTIPLICATION ο‘ It takes π 3 steps to multiply two π Γ π matrices. ο‘ Involves a total of 8 multiplication steps for a 2 x 2 matrices. ο‘ However, it is not the most optimal method. 4 Can we go faster than π π ?
STRASSENβS ALGORITHM 5
STRASSENβS ALGORITHM ο‘ π 1 = π 11 + π 22 π 11 + π 22 π· 11 = π 1 + π 4 β π 5 + π 7 ο‘ π 2 = π 21 + π 22 π 11 π· 12 = π 3 + π 5 ο‘ π 3 = π 11 π 12 β π 22 π· 21 = π 2 + π 4 ο‘ π 4 = π 22 π 21 β π 11 π· 22 = π 1 β π 2 + π 3 + π 6 ο‘ π 5 = π 11 + π 12 π 22 ο π΅ = π 11 π 12 πΆ = π 11 π 12 π 21 π 22 π 21 π 22 ο‘ π 6 = π 21 β π 11 π 11 + π 12 Where A x B = C= π 11 π 12 ο‘ π 7 = π 12 β π 22 π 21 + π 22 6 π 21 π 22
STRASSEN'S ALGORITHM ο‘ Involves 7 multiplication steps instead of 8 multiplication steps for a 2 x 2 matrices. ο‘ Matrix multiplication algorithm efficiency of O( π 2.81 ). ο‘ Faster compared to the naΓ―ve algorithm. 7
CAN WE GO FASTER THAN O( π 2.81 ) ? 8
II. METHODOLOGY 9
PROPOSED ALGORITHM ο‘ Inspiration from Gaussian elimination ο‘ Involves back-to-back elimination method to obtain a βzero triangular formβ ο‘ An attempt to cut down the number of multiplication steps to just 6 10
PERFORMANCE TEST I 11
PERFORMANCE TEST I 12
PERFORMANCE TEST II 13
PERFORMANCE TEST II *Lower the bar, the better 14
III. CONCLUSION 15
THE IMPORTANCE OF FAST MATRIX MULTIPLICATION ALGORITHM ο‘ Matrix multiplication has its applications and uses in all areas of study and purposes eg. Big Data, Data Representation. ο‘ Cuts down the costs involved. 16
FUTURE DIRECTIONS ο‘ Requires further testing of proposed algorithm. ο‘ Basis of future research into achieving better efficiency in other π Γ π matrices. ο‘ Possible use of Master Theorem to determine true complexity. 17
THATβS THE END OF MY PRESENTATION THANK YOU! 18
A FAST WAY TO COMPUTE MATRIX MULTIPLICATION MAE05 Summary of content covered: β’ NaΓ―ve matrix multiplication & Strassenβs algorithm β’ Possibility of achieving a more efficient algorithm β’ Importance of fast matrix multiplication 19
PERFORMANCE TEST II ο‘ Benchmarks used to run the algorithm: 1. CPU ο± Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz 2. GPU ο± NVIDIA GeForce 940MX 3. RAM 20 ο± 8GB
Recommend
More recommend