Lecture 8:
Dynamic Programming
Shang-Hua Teng
First Example: n choose k
Many combinatorial problems require the calculation of
the binomial coefficient.
This is equivalent to given n objects how many different
ways can you choose k of them.
n
n!
Mat
2
Human Coding
Human coding is a popular method for compressing data with variable-length codes.
Given a set of data symbols (an alphabet) and their frequencies of occurrence (or, equivalently, their probabilities), the method constructs a set of variable