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.
CITATION STYLE
Bannai, H., I, T., & Köppl, D. (2023). Longest bordered and periodic subsequences. Information Processing Letters, 182. https://doi.org/10.1016/j.ipl.2023.106398
Mendeley helps you to discover research relevant for your work.