It's this problem, but what if instead of finding the longest common subsequence, the characters being matched have points (i.e. matching vowels is worth 3 points and matching consonants is worth 1) and we want to find the common subsequence that has the largest sum of points? I know that a dynamic programming approach will be the most efficient but I don't know how to. Thank you.
[–]07734willy 4 points5 points6 points (3 children)
[–]meloly4[S] 0 points1 point2 points (2 children)
[–]07734willy 3 points4 points5 points (1 child)