Source Code
Matrix multiplication
Source Code
package dynamic;
public class MatrixChainMultiplication {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Program is running");
int[] q={2,5,3,5,2,3,5};
int [][] m=matrixChain(p);
System.out.println("Total cost of multiplication matrix:");
for(int i=1;i
No comments:
Post a Comment