Determining the optimum number of operations to multiply a product of matrices using dynamic programming.