Matrix Multiplication
Algorithms
for i = 1 to n
for j = 1 to n
for k = 1 to n
C[i, j] = A[i, k] * B[k, j]This algorithm runs at .
- Simple Divide and Conquer
- Dividing each matrices into four sub-matrices. Eight multiplications and four additions in total.
- Partition methods: copying or index calculation.
- This also runs at , as the recursion-tree is “bushier”.
- Strassen’s algorithm for matrix multiplication.