CSC325 · 2080 · 10 marks
Write down the advantages of dynamic programming over greedy strategy. Find optimal bracketing to multiply 4 matrices of order 2, 3, 4, 2, 5.
Write down the advantages of dynamic programming over greedy strategy. Find optimal bracketing to multiply 4 matrices of order $2, 3, 4, 2, 5$. [10]
Design and Analysis of AlgorithmsChapter 5: Dynamic ProgrammingGreedy Algorithms vs Dynamic Programming, Recursion vs DynamNumerical: matrix chain multiplication