License: Creative Commons Attribution 4.0 International license (CC BY 4.0)
When quoting this document, please refer to the following
DOI: 10.4230/LIPIcs.ESA.2022.48
URN: urn:nbn:de:0030-drops-169863
URL: http://dagstuhl.sunsite.rwth-aachen.de/volltexte/2022/16986/
Go to the corresponding LIPIcs Volume Portal


Ellert, Jonas

Lyndon Arrays Simplified

pdf-format:
LIPIcs-ESA-2022-48.pdf (0.8 MB)


Abstract

A Lyndon word is a string that is lexicographically smaller than all of its proper suffixes (e.g., "airbus" is a Lyndon word; "amtrak" is not a Lyndon word because its suffix "ak" is lexicographically smaller than "amtrak"). The Lyndon array (sometimes called Lyndon table) identifies the longest Lyndon prefix of each suffix of a string. It is well known that the Lyndon array of a length-n string can be computed in O(n) time. However, most of the existing algorithms require the suffix array, which has theoretical and practical disadvantages. The only known algorithms that compute the Lyndon array in O(n) time without the suffix array (or similar data structures) do so in a particularly space efficient way (Bille et al., ICALP 2020), or in an online manner (Badkobeh et al., CPM 2022). Due to the additional goals of space efficiency and online computation, these algorithms are complicated in technical detail. Using the main ideas of the aforementioned algorithms, we provide a simpler and easier to understand algorithm that computes the Lyndon array in O(n) time.

BibTeX - Entry

@InProceedings{ellert:LIPIcs.ESA.2022.48,
  author =	{Ellert, Jonas},
  title =	{{Lyndon Arrays Simplified}},
  booktitle =	{30th Annual European Symposium on Algorithms (ESA 2022)},
  pages =	{48:1--48:14},
  series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
  ISBN =	{978-3-95977-247-1},
  ISSN =	{1868-8969},
  year =	{2022},
  volume =	{244},
  editor =	{Chechik, Shiri and Navarro, Gonzalo and Rotenberg, Eva and Herman, Grzegorz},
  publisher =	{Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{https://drops.dagstuhl.de/opus/volltexte/2022/16986},
  URN =		{urn:nbn:de:0030-drops-169863},
  doi =		{10.4230/LIPIcs.ESA.2022.48},
  annote =	{Keywords: Lyndon table, Lyndon array, Lyndon word, nearest smaller suffixes, lexicographical ordering, general ordered alphabets, combinatorial algorithms}
}

Keywords: Lyndon table, Lyndon array, Lyndon word, nearest smaller suffixes, lexicographical ordering, general ordered alphabets, combinatorial algorithms
Collection: 30th Annual European Symposium on Algorithms (ESA 2022)
Issue Date: 2022
Date of publication: 01.09.2022
Supplementary Material: Software (Source Code): https://github.com/jonas-ellert/simple-lyndon archived at: https://archive.softwareheritage.org/swh:1:dir:dbbf2b4ac2fa652eb0865cdc6719924ce8a81952


DROPS-Home | Fulltext Search | Imprint | Privacy Published by LZI