Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
4951264 | Journal of Computer and System Sciences | 2017 | 14 Pages |
Abstract
We present efficient algorithms computing all Abelian periods of two types in a word. Regular Abelian periods are computed in O(nlogâ¡logâ¡n) randomized time which improves over the best previously known algorithm by almost a factor of n. The other algorithm, for full Abelian periods, works in O(n) time. As a tool we develop an O(n)-time construction of a data structure that allows O(1)-time gcdâ¡(i,j) queries for all 1â¤i,jâ¤n. This is a result of independent interest.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
T. Kociumaka, J. Radoszewski, W. Rytter,