License: Creative Commons Attribution 4.0 International license (CC BY 4.0)
When quoting this document, please refer to the following
DOI: 10.4230/LIPIcs.CPM.2022.22
URN: urn:nbn:de:0030-drops-161495
URL: http://dagstuhl.sunsite.rwth-aachen.de/volltexte/2022/16149/
Crochemore, Maxime ;
Iliopoulos, Costas S. ;
Radoszewski, Jakub ;
Rytter, Wojciech ;
Straszyński, Juliusz ;
Waleń, Tomasz ;
Zuba, Wiktor
Linear-Time Computation of Shortest Covers of All Rotations of a String
Abstract
We show that lengths of shortest covers of all rotations of a length-n string over an integer alphabet can be computed in ?(n) time in the word-RAM model, thus improving an ?(n log n)-time algorithm from Crochemore et al. (Theor. Comput. Sci., 2021). Similarly as Crochemore et al., we use a relation of covers of rotations of a string S to seeds and squares in S³. The crucial parameter of a string S is the number ξ(S) of primitive covers of all rotations of S. We show first that the time complexity of the algorithm from Crochemore et al. can be slightly improved which results in time complexity Θ(ξ(S)). However, we also show that in the worst case ξ(S) is Ω(|S|log |S|). This is the main difficulty in obtaining a linear time algorithm. We overcome it and obtain yet another application of runs in strings.
BibTeX - Entry
@InProceedings{crochemore_et_al:LIPIcs.CPM.2022.22,
author = {Crochemore, Maxime and Iliopoulos, Costas S. and Radoszewski, Jakub and Rytter, Wojciech and Straszy\'{n}ski, Juliusz and Wale\'{n}, Tomasz and Zuba, Wiktor},
title = {{Linear-Time Computation of Shortest Covers of All Rotations of a String}},
booktitle = {33rd Annual Symposium on Combinatorial Pattern Matching (CPM 2022)},
pages = {22:1--22:15},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-234-1},
ISSN = {1868-8969},
year = {2022},
volume = {223},
editor = {Bannai, Hideo and Holub, Jan},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/opus/volltexte/2022/16149},
URN = {urn:nbn:de:0030-drops-161495},
doi = {10.4230/LIPIcs.CPM.2022.22},
annote = {Keywords: cover, quasiperiod, cyclic rotation, seed, run}
}
Keywords: |
|
cover, quasiperiod, cyclic rotation, seed, run |
Collection: |
|
33rd Annual Symposium on Combinatorial Pattern Matching (CPM 2022) |
Issue Date: |
|
2022 |
Date of publication: |
|
22.06.2022 |