public void TestMethod4() { int[] A = { 1, 2, 3, 4, 3 }; IV.Set08_MatrixChainMultiplication mcm = new IV.Set08_MatrixChainMultiplication(); var x = mcm.MatrixChainOrder_DP(A); Assert.AreEqual(30, x); }
public void TestMethod3() { int[] A = { 40, 20, 30, 10, 30 }; IV.Set08_MatrixChainMultiplication mcm = new IV.Set08_MatrixChainMultiplication(); var x = mcm.MatrixChainOrder_DP(A); Assert.AreEqual(26000, x); }