Given an array p[] which represents the chain of matrices such that the ith matrix Ai is of dimension p[i-1] x p[i]. We need to write a function MatrixChainOrder() that should return the minimum number of multiplications needed to multiply the chain.
Refer : http://www.geeksforgeeks.org/archives/15553
Refer : http://www.geeksforgeeks.org/archives/15553
No comments:
Post a Comment