Content deleted Content added
RjwilmsiBot (talk | contribs) m fixing page range dashes using AWB |
m General Fixes using AWB |
||
Line 17:
==Algorithms==
===The Naive Algorithm===
The naive algorithm for finding the lexicographically minimal rotation of a string is to iterate through successive rotations while keeping track of the most lexicographically minimal rotation encountered. If the string is of length '''''n''''', this algorithm runs in '''''O(n<sup>2</sup>)''''' time in the worst case.
Line 60 ⟶ 61:
===Shiloach's Fast Canonization Algorithm===
Shiloach (1981)<ref>
| title = Fast canonization of circular strings
| journal = Journal of Algorithms
Line 78 ⟶ 79:
===Duval's Lyndon Factorization Algorithm===
Duval (1983)<ref>
| title = Factorizing words over an ordered alphabet
| journal = Journal of Algorithms
Line 91 ⟶ 92:
| author = Jean Pierre Duval }}
</ref>
proposed an efficient algorithm involving the factorization of the string into its component [[Lyndon word
==Variants==
|