Lyndon word: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Inthar (talk | contribs)
Created page with "A '''Lyndon word''' is a word that is lexicographically strictly less than all of its rotations. (A Lyndon word must be primitive by definition.) == Algorithm == The Lynd..."
(No difference)

Revision as of 02:29, 2 September 2024

A Lyndon word is a word that is lexicographically strictly less than all of its rotations. (A Lyndon word must be primitive by definition.)

Algorithm

The Lyndon rotation of a primitive word can be found using Booth's algorithm in O(n) time where n is the length of a word.