OPT(i, j) represents the maximum value of a common subsequence of the first i characters of A and the first j characters of B, where v(c) represents the value of a given character c. Base case: OPT(i, ...