23 April 2024 03:10:56 PM matrix_chain_dynamic_test(): C++ version Test matrix_chain_dynamic(). n = 4 dims(): 40 20 30 10 30 minimal cost = 26000 Number of possible orderings = 5 n = 4 dims(): 1 2 3 4 3 minimal cost = 30 Number of possible orderings = 5 n = 2 dims(): 10 20 30 minimal cost = 6000 Number of possible orderings = 1 n = 3 dims(): 10 30 5 60 minimal cost = 4500 Number of possible orderings = 2 n = 1 dims(): 10 20 minimal cost = 0 Number of possible orderings = 1 n = 0 dims(): 40 minimal cost = 0 Number of possible orderings = 0 matrix_chain_dynamic_test(): Normal end of execution. 23 April 2024 03:10:56 PM