Combinatorial Optimization Of Subsequence Patterns In Words