Computing Longest (Common) Lyndon Subsequences
arXiv:2201.06773
Abstract
Given a string with length whose characters are drawn from an ordered alphabet of size , its longest Lyndon subsequence is a longest subsequence of that is a Lyndon word. We propose algorithms for finding such a subsequence in time with space, or online in space and time. Our first result can be extended to find the longest common Lyndon subsequence of two strings of length in time using space.