English

Computing Longest (Common) Lyndon Subsequences

Data Structures and Algorithms 2022-01-19 v1

Abstract

Given a string TT with length nn whose characters are drawn from an ordered alphabet of size σ\sigma, its longest Lyndon subsequence is a longest subsequence of TT that is a Lyndon word. We propose algorithms for finding such a subsequence in O(n3)O(n^3) time with O(n)O(n) space, or online in O(n3σ)O(n^3 \sigma) space and time. Our first result can be extended to find the longest common Lyndon subsequence of two strings of length nn in O(n4σ)O(n^4 \sigma) time using O(n3)O(n^3) space.

Keywords

Cite

@article{arxiv.2201.06773,
  title  = {Computing Longest (Common) Lyndon Subsequences},
  author = {Hideo Bannai and Tomohiro I and Tomasz Kociumaka and Dominik Köppl and Simon J. Puglisi},
  journal= {arXiv preprint arXiv:2201.06773},
  year   = {2022}
}