Extracting powers and periods in a string from its runs structure - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2010

Extracting powers and periods in a string from its runs structure

Résumé

A breakthrough in the field of text algorithms was the discovery of the fact that the maximal number of runs in a string of length n is O(n) and that they can all be computed in O(n) time. We study some applications of this result. New simpler O(n) time algorithms are presented for a few classical string problems: computing all distinct kth string powers for a given k, in particular squares for k = 2, and finding all local periods in a given string of length n. Additionally, we present an efficient algorithm for testing primitivity of factors of a string and computing their primitive roots. Applications of runs, despite their importance, are underrepresented in existing literature (approximately one page in the paper of Kolpakov & Kucherov, 1999). In this paper we attempt to fill in this gap. We use Lyndon words and introduce the Lyndon structure of runs as a useful tool when computing powers. In problems related to periods we use some versions of the Manhattan skyline problem.
Fichier principal
Vignette du fichier
Extracting_Powers_and_Periods_in_a_String.pdf (146.77 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-00742047 , version 1 (13-02-2013)

Identifiants

Citer

Maxime Crochemore, Costas S. Iliopoulos, Marcin Kubica, Jakub Radoszewski, Wojciech Rytter, et al.. Extracting powers and periods in a string from its runs structure. SPIRE, 2010, Los Cabos, Mexico. pp.258-269, ⟨10.1007/978-3-642-16321-0_27⟩. ⟨hal-00742047⟩
206 Consultations
361 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More