2080 2

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

Aspect Dynamic Programming Greedy Strategy --------------------------------------------- Global optimality Guarantees a globally optimal solution by examining all relevant subproblem combinations May settle for a locally optimal choice that is not globally optimal Subproblem reuse Solves each ove...