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. 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 .

Lyndon array construction during Burrows–Wheeler inversion

Manzini, Giovanni;
2018-01-01

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. 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 .
2018
Louza, Felipe A.; Smyth, W. F.; Manzini, Giovanni; Telles, Guilherme P.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11568/1097671
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 6
  • ???jsp.display-item.citation.isi??? 1
social impact