Lyndon Array Construction during Burrows-Wheeler Inversion

Felipe A. Louza, W. F. Smyth, Giovanni Manzini, Guilherme P. Telles
10/27/2017
cs.DS

Official code: felipelouza/lyndon-array (9 stars, C, last commit 2021-01-25).

Abstract

In this paper we present an algorithm to compute the Lyndon array of a string $T$ of length $n$ as a byproduct of the inversion of the Burrows-Wheeler transform of $T$. Our algorithm runs in linear time using only a stack in addition to the data structures used for Burrows-Wheeler inversion.

Show full abstract

We compare our algorithm with two other linear-time algorithms for Lyndon array construction and show that computing the Burrows-Wheeler transform and then constructing the Lyndon array is competitive compared to the known approaches. We also propose a new balanced parenthesis representation for the Lyndon array that uses $2n+o(n)$ bits of space and supports constant time access. This representation can be built in linear time using $O(n)$ words of space, or in $O(n\log n/\log\log n)$ time using asymptotically the same space as $T$.

View on arXivView PDF

Code Implementations(1)

Computing the Lyndon Array in linear time [JDA 2018, SPIRE'19]

91C, PythonMar 11, 20195 years ago
burrows-wheeler-transformlyndon-arraysuffix-array

Similar Papers

Cite this paper

@article{louza2017lyndon,
  title  = {Lyndon Array Construction during Burrows-Wheeler Inversion},
  author = {Felipe A. Louza and W. F. Smyth and Giovanni Manzini and Guilherme P. Telles},
  year   = {2017},
  eprint = {1710.10105},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1710.10105}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1710.10105.svg)](https://codeofpaper.com/paper/1710.10105)

Discussion