MATRIX-CHAIN MULTIPLICATION There is another important problem involving thecomplexity of the multiplication of matrices. How should the matrix-chain A1A2 ··· An be com-puted using the fewest multiplications of integers, where A1, A2,..., An are m1 × m2, m2 ×m3,...,mn × mn+1 matrices, respectively, and each has integers as entries? (Because matrixmultiplication is associative, as shown in Exercise 13 in Section 2.6, the order of the mul-tiplication used does not change the product.) Note that m1m2m3 multiplications of integersare performed to multiply an m1 × m2
đang được dịch, vui lòng đợi..