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

β–Ά
a fast way to compute matrix multiplication
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

A FAST WAY TO COMPUTE MATRIX MULTIPLICATION

Presented by: Forrest Yau Zhen Kit , Jurong Pioneer Junior College

1

MAE05

slide-2
SLIDE 2

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?

slide-3
SLIDE 3

3

  • I. BACKGROUND
slide-4
SLIDE 4

ο‚‘ 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

NAÏVE MATRIX MULTIPLICATION

Can we go faster than π’πŸ’ ?

slide-5
SLIDE 5

STRASSEN’S ALGORITHM

5

slide-6
SLIDE 6

ο‚‘

𝑁1 = 𝑏11 + 𝑏22 𝑐11 + 𝑐22

ο‚‘

𝑁2 = 𝑏21 + 𝑏22 𝑐11

ο‚‘

𝑁3 = 𝑏11 𝑐12 βˆ’ 𝑐22

ο‚‘

𝑁4 = 𝑏22 𝑐21 βˆ’ 𝑐11

ο‚‘

𝑁5 = 𝑏11 + 𝑏12 𝑐22

ο‚‘

𝑁6 = 𝑏21 βˆ’ 𝑏11 𝑐11 + 𝑐12

ο‚‘

𝑁7 = 𝑏12 βˆ’ 𝑏22 𝑐21 + 𝑐22

STRASSEN’S ALGORITHM

6

𝐷11 = 𝑁1 + 𝑁4 βˆ’ 𝑁5 + 𝑁7 𝐷12 = 𝑁3 + 𝑁5 𝐷21 = 𝑁2 + 𝑁4 𝐷22 = 𝑁1 βˆ’ 𝑁2 + 𝑁3 + 𝑁6 𝐡 = 𝑏11 𝑏12 𝑏21 𝑏22 𝐢 = 𝑐11 𝑐12 𝑐21 𝑐22 Where A x B = C= 𝑑11 𝑑12 𝑑21 𝑑22

slide-7
SLIDE 7

ο‚‘ 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

STRASSEN'S ALGORITHM

slide-8
SLIDE 8

8

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

slide-9
SLIDE 9

9

  • II. METHODOLOGY
slide-10
SLIDE 10

ο‚‘ 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

PROPOSED ALGORITHM

slide-11
SLIDE 11

PERFORMANCE TEST I

11

slide-12
SLIDE 12

PERFORMANCE TEST I

12

slide-13
SLIDE 13

PERFORMANCE TEST II

13

slide-14
SLIDE 14

PERFORMANCE TEST II

14

*Lower the bar, the better

slide-15
SLIDE 15

15

  • III. CONCLUSION
slide-16
SLIDE 16

ο‚‘ Matrix multiplication has its applications and uses in all

areas of study and purposes eg. Big Data, Data Representation.

ο‚‘ Cuts down the costs involved.

THE IMPORTANCE OF FAST MATRIX MULTIPLICATION ALGORITHM

16

slide-17
SLIDE 17

FUTURE DIRECTIONS

17

ο‚‘ 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.

slide-18
SLIDE 18

18

THAT’S THE END OF MY PRESENTATION THANK YOU!

slide-19
SLIDE 19

A FAST WAY TO COMPUTE MATRIX MULTIPLICATION

Summary of content covered:

  • NaΓ―ve matrix multiplication & Strassen’s algorithm
  • Possibility of achieving a more efficient algorithm
  • Importance of fast matrix multiplication

19

MAE05

slide-20
SLIDE 20

PERFORMANCE TEST II

20

ο‚‘ Benchmarks used to run the algorithm:

  • 1. CPU

 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz

  • 2. GPU

 NVIDIA GeForce 940MX

  • 3. RAM

 8GB