Efficient Representation and Counting of Antipower Factors in Words
Abstract
A -antipower (for ) is a concatenation of pairwise distinct words of the same length. The study of fragments of a word being antipowers was initiated by Fici et al. (ICALP 2016) and first algorithms for computing such fragments were presented by Badkobeh et al. (Inf. Process. Lett., 2018). We address two open problems posed by Badkobeh et al. We propose efficient algorithms for counting and reporting fragments of a word which are -antipowers. They work in time and time, respectively, where is the number of reported fragments. For , this improves the time complexity of of the solution by Badkobeh et al. We also show that the number of different -antipower factors of a word of length can be computed in time. Our main algorithmic tools are runs and gapped repeats. Finally we present an improved data structure that checks, for a given fragment of a word and an integer , if the fragment is a -antipower. This is a full and extended version of a paper from LATA 2019. In particular, all results about counting different antipowers factors are completely new compared with the LATA proceedings version.
Keywords
Cite
@article{arxiv.1812.08101,
title = {Efficient Representation and Counting of Antipower Factors in Words},
author = {Tomasz Kociumaka and Jakub Radoszewski and Wojciech Rytter and Juliusz Straszyński and Tomasz Waleń and Wiktor Zuba},
journal= {arXiv preprint arXiv:1812.08101},
year = {2020}
}
Comments
Full version of a paper from LATA 2019