Identifying all abelian periods of a string in quadratic time and relevant problems - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue International Journal of Foundations of Computer Science Année : 2012

Identifying all abelian periods of a string in quadratic time and relevant problems

Résumé

Abelian periodicity of strings has been studied extensively over the last years. Lately, Constantinescu and Ilie defined the abelian period of a string and several algorithms for the computation of all abelian periods of a string were given. In contrast to the classical period of a word, its abelian version is more flexible, factors of the word are considered the same under any internal permutation of their letters.We show two O(|y|2) algorithms for the computation of all abelian periods of a string y. The first one maps each letter to a suitable number such that each factor of the string can be identified by the unique sum of the numbers corresponding to its letters and hence abelian periods can be identified easily. The other one maps each letter to a prime number such that each factor of the string can be identified by the unique product of the numbers corresponding to its letters and so abelian periods can be identified easily. We also define weak abelian periods on strings and give an O(|y|log(|y|)) algorithm for their computation, together with some other algorithms for more basic problems.

Dates et versions

hal-00836957 , version 1 (21-06-2013)

Identifiants

Citer

Michalis Christou, Maxime Crochemore, Costas Iliopoulos. Identifying all abelian periods of a string in quadratic time and relevant problems. International Journal of Foundations of Computer Science, 2012, 23 (6), pp.1371-1384. ⟨10.1142/S0129054112500190⟩. ⟨hal-00836957⟩
29 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More