107 std::cout <<
"\n=== Matrix-Chain Dynamic Programming ===\n\n";
109 run_case({30, 35, 15, 5, 10, 20, 25},
"Scenario A: CLRS reference chain");
110 run_case({10, 20, 30},
"Scenario B: Two matrices");
111 run_case({10, 30, 5, 60},
"Scenario C: Three matrices (high asymmetry)");
112 run_case({5, 5, 5, 5, 5},
"Scenario D: Uniform square matrices");
114 std::cout <<
"Scenario E: Cost-only helper\n";
118 std::cout << std::setw(26) << std::left <<
"matrix_chain_min_cost"
122 std::cout <<
"\nDone.\n";