Longest bordered and periodic subsequences

Hideo Bannai, I Tomohiro, Dominik Köppl · Information Processing Letters · 2023

We present an algorithm computing the longest periodic subsequence of a string of length n in O(n7) time with O(n3) space. We obtain improvements when restricting the exponents or extending the search allowing the reported subsequence to be subperiodic down to O(n2) time and O(n) space. By allowing subperiodic subsequences in the output, the task becomes finding the longest bordered subsequence, for which we devise a conditional lower bound.

Read the paper · More papers on PaperTik