No label defined (Q3690246)
From MaRDI portal
!
This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use the normal view instead:
scientific article; zbMATH DE number 3913712
| Language | Label | Description | Also known as |
|---|---|---|---|
| default for all languages | No label defined |
||
| English | No label defined |
scientific article; zbMATH DE number 3913712 |
Statements
1985
0 references
linear time algorithm
0 references
square
0 references
0.8693012595176697
0 references
0.8656914830207825
0 references
0.8523874282836914
0 references
0.8467652797698975
0 references
0.8352238535881042
0 references
[For the entire collection see Zbl 0564.00027.] A square is an immediately repeated nonempty string, e.g., aa, abab, abcabc. This paper presents a new O(n log n) algorithm to determine whether a string of length n has a substring which is a square. The algorithm is not as general as some previous algorithms for finding all squares, but it does have a simplicity which the others lack. Also, for a fixed alphabet of size k, the algorithm can be improved by a factor of \(\log_ k(n)\), yielding an O(n) algorithm for determining whether a string contains a square.
0 references