Introduction - If you have any usage issues, please Google them yourself
Given n matrix consisting of a chain < A1, A2,..., An >, the dimensions of the matrix Ai for PI- 1 x PI, I = 1, 2,..., n.
{3 x 5, 5 x2, 2 x7, 7 x4, 4 by 8}
The product of matrix chain for: A1A2...The An.
Through the product A1A2...An the different position of the bracket, by calculating the product of several of them first, then merge computation, in order to reduce the calculation of total price.