Skip to content

Latest commit

 

History

History
75 lines (44 loc) · 2.75 KB

File metadata and controls

75 lines (44 loc) · 2.75 KB

String algorithms

Table of contents


Lexicographically minimal string rotation

Lexicographically minimal rotation if the rotation of a string possessing the lowest lexicographical order of all its rotations.

🔗

Duval’s based algorithm

📝

  • This algorithm is also known as the Zhou Yuan’s minimal expression algorithm.

🔗


Lyndon factorization

Lyndon word is a (non-empty) string that is strictly smaller in lexicographic order than all of its rotations. Lyndon factorization is a decomposition of a string s into Lyndon words, s = w1w2...wn, such that w1 ≥ wi ≥ ... ≥ wn.

📝

🔗

Duval’s algorithm

🔗

📄


String searching

Knuth–Morris–Pratt algorithm

🔗

🎥