Artykuł w czasopiśmie
Brak miniatury
Licencja

CC-BYCC-BY - Uznanie autorstwa

Linear-Time Computation of Cyclic Roots and Cyclic Covers of a String

Autor
Zuba, Wiktor
Waleń, Tomasz
Rytter, Wojciech
Radoszewski, Jakub
Kociumaka, Tomasz
Iliopoulos, Costas S.
Data publikacji
2023
Abstrakt (EN)

Cyclic versions of covers and roots of a string are considered in this paper. A prefix V of a string S is a cyclic root of S if S is a concatenation of cyclic rotations of V. A prefix V of S is a cyclic cover of S if the occurrences of the cyclic rotations of V cover all positions of S. We present (n)-time algorithms computing all cyclic roots (using number-theoretic tools) and all cyclic covers (using tools related to seeds) of a length-n string over an integer alphabet. Our results improve upon (n log log n) and (n log n) time complexities of recent algorithms of Grossi et al. (WALCOM 2023) for the respective problems and provide novel approaches to the problems. As a by-product, we obtain an optimal data structure for Internal Circular Pattern Matching queries that generalize Internal Pattern Matching and Cyclic Equivalence queries of Kociumaka et al. (SODA 2015).

Słowa kluczowe EN
cyclic cover
cyclic root
circular pattern matching
internal pattern matching
Dyscyplina PBN
informatyka
Strony od-do
15:1-15
Data udostępnienia w otwartym dostępie
2023-06-21
Licencja otwartego dostępu
Uznanie autorstwa