Given ordered words and a target , minimise the number of words in an order-preserving subsequence whose concatenation is . Let be the optimum using the first words to produce the first symbols. Either skip , or, when it matches the target suffix ending at , take it and add one to . The state records both the available-word boundary and target progress, preventing reuse or reordering of words. For and bounded word length, this is an -time algorithm with straightforward predecessor reconstruction.
Articles by others on the same topic
There are currently no matching articles.