[알고리즘]Chained Matrix Multiplications
2020.04.26
Prolem : Find an optimal order for mult. n mat Q. Given (d0, d1, d2, d3, d4, d5) = (2,4,1,3,4,2), solve the chained matrix multiplication problem. You may have only to make an array M and an array P. (You have only to make a table such as in p46 of the notebook.) What is the optimal order of the matrix multiplications? 1. i, j의 거리가 1일때 M[1,2] = 2 x 4 x 1 = 8 (k = 1) M[2,3] = 4 x 1 x 3 = 12 (k = ..