Content deleted Content added
m →Booth's Algorithm: remove python anti-pattern: replace range(len(S)) to enumerate(). see http://lignos.org/py_antipatterns/ |
m →Shiloach's Fast Canonization Algorithm: {{tmath}} |
||
Line 73:
| author = Yossi Shiloach }}
</ref>
proposed an algorithm improving on Booth's result in terms of performance. It was observed that if there are
The algorithm is divided into two phases. The first phase is a quick sieve which rules out indices that are obviously not starting locations for the lexicographically minimal rotation. The second phase then finds the lexicographically minimal rotation start index from the indices which remain.
|