a fast way to compute matrix multiplication
play

A FAST WAY TO COMPUTE MATRIX MULTIPLICATION MAE05 Presented by: - PowerPoint PPT Presentation

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


  1. A FAST WAY TO COMPUTE MATRIX MULTIPLICATION MAE05 Presented by: Forrest Yau Zhen Kit , Jurong Pioneer Junior College 1

  2. 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

  3. I. BACKGROUND 3

  4. 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 𝒐 πŸ’ ?

  5. STRASSEN’S ALGORITHM 5

  6. 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

  7. 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

  8. CAN WE GO FASTER THAN O( π‘œ 2.81 ) ? 8

  9. II. METHODOLOGY 9

  10. 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

  11. PERFORMANCE TEST I 11

  12. PERFORMANCE TEST I 12

  13. PERFORMANCE TEST II 13

  14. PERFORMANCE TEST II *Lower the bar, the better 14

  15. III. CONCLUSION 15

  16. 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

  17. 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

  18. THAT’S THE END OF MY PRESENTATION THANK YOU! 18

  19. 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

  20. 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

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend