COP 4531: Lecture 16
Learning objectives
After this class, you should be able to:
- Given a sequence of matrices, find an optimal parenthesization, using dynamic programming.
- Analyze the time complexity of the above algorithm.
- Given a similar problem, give an algorithm, based on dynamic programming, to solve it, and analyze its time complexity.
Reading assignment
- CLR: Section 15.2.
- CLR: page 347.
Exercises and review questions
- Questions on current lecture's material
- Exercise 15.2-1.
- Exercise 15.2-3.
- Questions on next lecture's material
- Give an efficient algorithm for computing the
n
th term of a Fibonacci sequence using memoization.