Matching in Weighted Sequences -- Session 10. Dynamic Programming -- Algorithms for