Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) 2023
DOI: 10.1137/1.9781611977554.ch189
|View full text |Cite
|
Sign up to set email alerts
|

Optimal Square Detection Over General Alphabets

Abstract: Squares (fragments of the form xx, for some string x) are arguably the most natural type of repetition in strings. The basic algorithmic question concerning squares is to check if a given string of length n is square-free, that is, does not contain a fragment of such form. Main and Lorentz [J. Algorithms 1984] designed an O(n log n) time algorithm for this problem, and proved a matching lower bound assuming the so-called general alphabet, meaning that the algorithm is only allowed to check if two characters a… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1

Citation Types

0
1
0

Year Published

2024
2024
2024
2024

Publication Types

Select...
1

Relationship

0
1

Authors

Journals

citations
Cited by 1 publication
(1 citation statement)
references
References 60 publications
0
1
0
Order By: Relevance
“…This algorithm works for a general unordered alphabet. For the case where the input string is drawn from a linearly-sortable alphabet [10], such as an integer alphabet of size polynomial in n, there is an alternative suffix tree [11] based algorithm which takes O(n) time [12]. In this method, the suffix tree of T #T R $ is constructed, where T R is the reversed string of T , and # and $ are special characters not occurring in T .…”
Section: Introductionmentioning
confidence: 99%
“…This algorithm works for a general unordered alphabet. For the case where the input string is drawn from a linearly-sortable alphabet [10], such as an integer alphabet of size polynomial in n, there is an alternative suffix tree [11] based algorithm which takes O(n) time [12]. In this method, the suffix tree of T #T R $ is constructed, where T R is the reversed string of T , and # and $ are special characters not occurring in T .…”
Section: Introductionmentioning
confidence: 99%