![]() However, the order in which we parenthesize the product affects the number of simple arithmetic operations needed to compute the product, or the efficiency. For example, if we had four matrices A, B, C, and D, we would have: (ABC)D = (AB)(CD) = A(BCD) =. In other words, no matter how we parenthesize the product, the result will be the same. We have many options to multiply a chain of matrices because matrix multiplication is associative. The problem is not actually to perform the multiplications, but merely to decide in which order to perform the multiplications. Given a sequence of matrices, find the most efficient way to multiply these matrices together. Prerequisite : Dynamic Programming | Set 8 (Matrix Chain Multiplication)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |