Given a word w and a Parikh vector P, an abelian run of period P in w is a maximal occurrence of a substring of w having abelian period P. Our main result is an online algorithm that, given a word w of length n over an alphabet of cardinality σ and a Parikh vector P, returns all the abelian runs of period P in w in time O(n) and space O(σ+p), where p is the norm of P, i.e., the sum of its components. We also present an online algorithm that computes all the abelian runs with periods of norm p in w in time O(np), for any given norm p. Finally, we give an O(n2)-time offline randomized algorithm for computing all the abelian runs of w. Its deterministic counterpart runs in O(n2log⁡σ) time.

Fici, G., Kociumaka, T., Lecroq, T., Lefebvre, A., Prieur-Gaston, É. (2016). Fast computation of abelian runs. THEORETICAL COMPUTER SCIENCE, 656, 256-264 [10.1016/j.tcs.2015.12.010].

Fast computation of abelian runs

FICI, Gabriele;
2016-01-01

Abstract

Given a word w and a Parikh vector P, an abelian run of period P in w is a maximal occurrence of a substring of w having abelian period P. Our main result is an online algorithm that, given a word w of length n over an alphabet of cardinality σ and a Parikh vector P, returns all the abelian runs of period P in w in time O(n) and space O(σ+p), where p is the norm of P, i.e., the sum of its components. We also present an online algorithm that computes all the abelian runs with periods of norm p in w in time O(np), for any given norm p. Finally, we give an O(n2)-time offline randomized algorithm for computing all the abelian runs of w. Its deterministic counterpart runs in O(n2log⁡σ) time.
2016
Fici, G., Kociumaka, T., Lecroq, T., Lefebvre, A., Prieur-Gaston, É. (2016). Fast computation of abelian runs. THEORETICAL COMPUTER SCIENCE, 656, 256-264 [10.1016/j.tcs.2015.12.010].
File in questo prodotto:
File Dimensione Formato  
Fast computation of abelian runs.pdf

Solo gestori archvio

Dimensione 370.85 kB
Formato Adobe PDF
370.85 kB Adobe PDF   Visualizza/Apri   Richiedi una copia

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/10447/234661
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 1
social impact