Fast%20Sparse%20Matrix%20Multiplication - PowerPoint PPT Presentation

About This Presentation
Title:

Fast%20Sparse%20Matrix%20Multiplication

Description:

ESA 2004. 2. Matrix multiplication. i. j. 3. Matrix multiplication. Coppersmith, Winograd (1990) ... n - number of rows and columns. m - number of non-zero ... – PowerPoint PPT presentation

Number of Views:271
Avg rating:3.0/5.0
Slides: 19
Provided by: UriZ
Category:

less

Transcript and Presenter's Notes

Title: Fast%20Sparse%20Matrix%20Multiplication


1
Fast SparseMatrix Multiplication
  • Raphael YusterHaifa University (Oranim)
  • Uri ZwickTel Aviv University
  • ESA 2004

2
Matrix multiplication
j
i

?
3
Matrix multiplication
Authors Complexity
- n3
Strassen (1969) n2.81
Coppersmith, Winograd (1990) n2.38
4
Sparse Matrix Multiplication

?
n - number of rows and columnsm - number of
non-zero elements
The distribution of the non-zeroelements in the
matrices is arbitrary!
5
Sparse Matrix Multiplication
j
k
k

?
Each element of B is multiplied by at most n
elements from A. Complexity mn
6
Matrix multiplication
Authors Complexity
Coppersmith, Winograd (1990) n2.38
- mn
here m0.7n1.2n2o(1)
Can we do something better?
7
Comparison
mn
m0.7n1.2n2
?
n2.38
Complexity n?
r (mnr)
8
A closer look at the naïve algorithm

?
9
Complexity of the naïve algorithm
Complexity
where
Can it really be that bad?
10
Best case for naïve algorithm
Regular case
11
Worst case for naïve algorithm
12
Worst case for naïve algorithm
0

?
0
13
Rectangular Matrix multiplication
Coppersmith (1997) Complexity
n1.85p0.54n2o(1)
For p n0.29, complexity n2o(1) !!!
14
The combined algorithm
Fast rectangularmatrix multiplication
Naïve sparsematrix multiplication
Assume a1b1 a2b2 anbn
Choose 0 p n
Compute AB A1B1 A2B2
15
Analysis of combined algorithm
Theorem There exists a 1pn for which
16
Multiplying three sparse matrices
?
?
A
B
C
n - number of rows and columnsm - number of
non-zero elements
17
Applications
  • Computing the square of a sparse graph
  • Finding short cycles (YZ04)
  • Other applications?

18
Open problems
  • A faster, more sophisticated, algorithmfor
    sparse matrix multiplication?
  • A faster algorithm for multiplying three or more
    sparse matrices?
  • An O(m1-?n1?) transitive closure algorithm?
Write a Comment
User Comments (0)
About PowerShow.com