# 林登词

**林登词**（Lyndon word）是全序字母表上的一个非空有限词，它在字典序下严格小于其每一个非平凡旋转（循环移位）。等价地，它是一个本原词，即不是某个更短词的幂，并且是其共轭类（该词所有旋转构成的集合）中字典序最小的成员。<sup>[1](https://www.mdpi.com/1999-4893/12/6/124)</sup><sup> • </sup><sup>[2](https://www.cambridge.org/core/journals/canadian-journal-of-mathematics/article/lyndon-words-free-algebras-and-shuffles/6422EA3BF2893083FA11949D56B81518)</sup> 例如，在满足 0 < 1 的二进制字母表上，词 0011 是林登词，而 0101 不是，因为它等于自身平移两个位置后的旋转，因此不是本原词。<sup>[3](https://www-igm.univ-mlv.fr/~berstel/Articles/1994AverageCostDuval.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 一个在字典序下严格小于其所有非平凡旋转的词；等价地，它是本原的，并且在其共轭类中最小<sup>[1](https://www.mdpi.com/1999-4893/12/6/124)</sup><sup> • </sup><sup>[2](https://www.cambridge.org/core/journals/canadian-journal-of-mathematics/article/lyndon-words-free-algebras-and-shuffles/6422EA3BF2893083FA11949D56B81518)</sup> |
| 起源 | 由罗杰·C·林登（Roger C. Lyndon）于 1954 年以“标准”序列之名引入，用于构造自由李代数的基<sup>[4](https://link.springer.com/article/10.1007/s13373-014-0054-6)</sup><sup> • </sup><sup>[5](https://isa-afp.org/browser_info/current/AFP/Combinatorics_Words_Lyndon/Lyndon.html)</sup> |
| 分解定理 | 每个词都有唯一分解，分解为字典序非增的林登词序列（陈（Chen）、福克斯（Fox）和林登，1958）<sup>[1](https://www.mdpi.com/1999-4893/12/6/124)</sup> |
| 快速分解 | 杜瓦尔（Duval）1983 年的算法仅使用常数额外空间，在 O(n) 时间内计算该分解<sup>[6](https://litis-lyndex.univ-rouen.fr/algo.php)</sup> |
| 生成代价 | 杜瓦尔算法生成所有长度不超过给定值的林登词时，每个词的平均代价渐近等于 (q + 1)/(q − 1)，与长度无关，其中 q 为字母表大小<sup>[7](https://www.sciencedirect.com/science/article/pii/0304397594000131)</sup> |
| 德布鲁因（de Bruijn）关联 | 按字典序拼接所有长度整除 n 的林登词，会得到 n 阶德布鲁因序列（弗雷德里克森（Fredricksen）和迈奥拉纳（Maiorana），1978）<sup>[8](https://www-2.dc.uba.ar/staff/becher/papers/lyndon.pdf)</sup> |
| 代数对应 | 基数为 k 的字母表上的林登词与有限域 F<sub>k</sub> 上的不可约多项式一一对应<sup>[9](https://www.mdpi.com/1999-4893/13/11/294)</sup> |

## 定义与基本性质

定义可以用两种等价方式表述。若对每个满足 1 ≤ i < |w| 的旋转下标 i，都有 w < ROT(w, i)，其中 ROT(w, i) 将前 i 个字符移到末尾，则 w 是林登词。<sup>[1](https://www.mdpi.com/1999-4893/12/6/124)</sup> 等价地，w 是林登词当且仅当对每个满足 u、v 均非空的分解 w = uv，都有 w < vu；也就是说，w 排在交换这两个因子后得到的词之前。<sup>[10](https://www.researchgate.net/publication/324793347_Nyldon_words)</sup>

由定义可直接得到两个推论。长度至少为 2 的林登词必须以一个严格小于其最后一个字符的字符开头；且形如 a<sup>k</sup>（单个字母重复 k ≥ 2 次）的词都不是林登词。<sup>[1](https://www.mdpi.com/1999-4893/12/6/124)</sup> 在满足 0 < 1 的二进制字母表上，长度至多为 5 的 14 个林登词按字典序依次以 0、00001、0001、00011、001 等开始。<sup>[3](https://www-igm.univ-mlv.fr/~berstel/Articles/1994AverageCostDuval.pdf)</sup>

## 历史

罗杰·C·林登在其 1954 年论文《论伯恩赛德问题》（*On Burnside's problem*）中引入了这些词，称之为“标准”序列，作为构造自由群下中心列各商的一组基（等价地，自由李代数的一组基）的工具。<sup>[5](https://isa-afp.org/browser_info/current/AFP/Combinatorics_Words_Lyndon/Lyndon.html)</sup><sup> • </sup><sup>[2](https://www.cambridge.org/core/journals/canadian-journal-of-mathematics/article/lyndon-words-free-algebras-and-shuffles/6422EA3BF2893083FA11949D56B81518)</sup> 独立地，阿列克谢·希尔绍夫（Aleksei Shirshov）于 1958 年以“正则词”之名发展了同一概念。此后数十年间，多数作者只引用希尔绍夫，这些词被称为希尔绍夫正则词；从洛泰尔（Lothaire）1983 年的《词组合学》（*Combinatorics on Words*）一书开始，“林登词”这一名称才广泛流行。<sup>[4](https://link.springer.com/article/10.1007/s13373-014-0054-6)</sup> 下文的分解定理通常归功于 K. T. 陈（K. T. Chen）、R. H. 福克斯（R. H. Fox）和 R. C. 林登（R. C. Lyndon），其依据是舒岑贝格尔（Schützenberger）1958 年的一篇论文，该文中它作为自由幺半群分解的一个例子出现，不过其起源被描述为不确切。<sup>[11](https://www-igm.univ-mlv.fr/~berstel/Articles/2007Origins.pdf)</sup>

## 陈–福克斯–林登分解

核心结构结果通常称为陈–福克斯–林登定理，它指出每个词 w 都有唯一分解 CFL(w) = w₁, w₂, …, wₘ，分解为林登词，并满足字典序下 w₁ ≥ w₂ ≥ … ≥ wₘ。<sup>[1](https://www.mdpi.com/1999-4893/12/6/124)</sup> 在代数中使用的等价乘法形式里，词 s 写成 s = s₁^{m₁} … sₙ^{mₙ}，其中林登词严格递减 s₁ ≻ … ≻ sₙ，指数为正整数。<sup>[12](https://doi.org/10.1016/j.jalgebra.2026.01.026)</sup> 该定理还允许对该词族作递归定义：字母是林登词；长度至少为 2 的词是林登词，当且仅当它不能拆成由更短林登词构成的字典序非增序列。<sup>[10](https://www.researchgate.net/publication/324793347_Nyldon_words)</sup>

该分解在计算上很有用，因为它揭示了字符串的重复结构。它与伦佩尔–齐夫（Lempel–Ziv）分解相关但不同：两者具有非常不同的组合结构，但一个词的林登分解的大小从不超过其非重叠 LZ 分解大小的两倍。<sup>[13](https://arxiv.org/abs/1611.08898)</sup>

## 算法

**杜瓦尔的分解算法。** 让-皮埃尔·杜瓦尔（Jean-Pierre Duval）于 1983 年发表了一个算法，可在 O(n) 时间内原地计算长度为 n 的词的陈–福克斯–林登分解，且只需常数额外空间。<sup>[6](https://litis-lyndex.univ-rouen.fr/algo.php)</sup><sup> • </sup><sup>[9](https://www.mdpi.com/1999-4893/13/11/294)</sup> 同一论文中的算法可用于计算一个词的最小后缀和最小循环移位。<sup>[14](https://doi.org/10.1016/0196-6774(83)90017-2)</sup> 针对特殊输入已发展出若干变体：一种面向小字母表的算法跳过最小字符的连续段，在长 DNA 字符串上测得比杜瓦尔原算法快十倍以上；另一种算法可在 O(ρ) 时间和常数空间内计算长度为 ρ 的游程编码字符串的分解。<sup>[15](https://arxiv.org/abs/1405.4892)</sup>

**生成。** 杜瓦尔还给出了一个算法，可在与输出规模成正比的时间内，按字典序生成有序字母表上长度至多为 n 的所有林登词。<sup>[6](https://litis-lyndex.univ-rouen.fr/algo.php)</sup> 1994 年的一项分析证明，该生成算法的平均代价渐近为 (q + 1)/(q − 1)，其中 q 为字母表大小，因此每个生成词的平均代价与词长无关；精确展开为

该量等于 ((q+1)/(q-1))(1 + 2q/((q²-1)n) + O(1/n²))。

<sup>[7](https://www.sciencedirect.com/science/article/pii/0304397594000131)</sup><sup> • </sup><sup>[3](https://www-igm.univ-mlv.fr/~berstel/Articles/1994AverageCostDuval.pdf)</sup> 弗雷德里克森和迈奥拉纳更早提出了一个按字典序生成所有长度不超过给定值的林登词的算法，其平均运行时间为常数。<sup>[9](https://www.mdpi.com/1999-4893/13/11/294)</sup>

## 应用

**自由李代数。** 最初的动机来自代数。林登词给出自由李代数的一组基：通过标准分解和迭代括号化，每个林登词产生一个换位子；无论在自由群还是自由李代数中解释，这些换位子都构成一组基。<sup>[11](https://www-igm.univ-mlv.fr/~berstel/Articles/2007Origins.pdf)</sup> 举例来说，对林登词 aaababb 应用标准分解 (a)(ababb)，得到换位子 [a, [[a, b], [[a, b], b]]]，展示了这类词如何产生换位子。<sup>[11](https://www-igm.univ-mlv.fr/~berstel/Articles/2007Origins.pdf)</sup> 林登词集合还构成一个霍尔（Hall）集，相关的李单项式构成格罗布纳–希尔绍夫（Gröbner–Shirshov）基理论中使用的林登–希尔绍夫基。<sup>[4](https://link.springer.com/article/10.1007/s13373-014-0054-6)</sup>

**德布鲁因序列。** 弗雷德里克森和迈奥拉纳于 1978 年证明，按字典序拼接所有长度整除 n 的林登词，会得到一个 n 阶德布鲁因序列；这是一个循环序列，其中字母表上每个长度为 n 的词都恰好出现一次。<sup>[8](https://www-2.dc.uba.ar/staff/becher/papers/lyndon.pdf)</sup> 对于长度为 4 的二进制词，相应的林登词为 1、1110、1100、10、1000、0，它们的拼接是德布鲁因序列 1 1110 1100 10 1000 0。<sup>[8](https://www-2.dc.uba.ar/staff/becher/papers/lyndon.pdf)</sup> 该构造与高效林登词生成相结合，可在线性时间和对数空间内得到每个阶的字典序最大德布鲁因项链。<sup>[8](https://www-2.dc.uba.ar/staff/becher/papers/lyndon.pdf)</sup> 林登词与字典序最小德布鲁因序列之间的联系，也为林登词定秩和解码该序列的算法提供了基础。<sup>[16](https://arxiv.org/abs/1510.02637)</sup>

**字符串算法与文本索引。** 林登分解的边界已被用于计算后缀数组；林登数组存储每个位置上以该位置开头的最长林登词的长度，可作为伯罗斯–惠勒（Burrows–Wheeler）变换求逆的副产品计算出来。<sup>[17](https://www.sciencedirect.com/science/article/pii/S089054012400018X)</sup><sup> • </sup><sup>[18](https://www.sciencedirect.com/science/article/pii/S1570866718301254)</sup> 在班奈（Bannai）及其同事通过林登词刻画字符串的游程（极大周期性），从而解决了“长度为 n 的字符串的游程少于 n 个”这一长期猜想之后，人们对林登数组的兴趣日益增长。<sup>[18](https://www.sciencedirect.com/science/article/pii/S1570866718301254)</sup> 针对二进制字符串的伯罗斯–惠勒型双射变换也建立在类林登结构之上。<sup>[19](https://www.sciencedirect.com/science/article/pii/S0304397516301645)</sup>

**计数。** 基数为 k 的字母表上的林登词与有限域 F<sub>k</sub> 上的不可约多项式之间的双射，把许多已知结果转移到分解上，包括因子的平均数目以及最长因子和最短因子的平均长度。<sup>[9](https://www.mdpi.com/1999-4893/13/11/294)</sup>

## 变体

在林登词的递归定义中反转字典序，就得到**奈尔登词**（Nyldon words），由埃米莉·沙利耶（Émilie Charlier）、马农·菲利贝尔（Manon Philibert）和马农·斯蒂普兰蒂（Manon Stipulanti）引入。每个有限词都有唯一分解，分解为字典序非减的奈尔登词序列，因此奈尔登词构成自由幺半群关于反转序的完全分解，并且它们构成一个右拉扎尔（Lazard）集。<sup>[10](https://www.researchgate.net/publication/324793347_Nyldon_words)</sup> 其他变体包括 p 进林登词——即为正特征情形研究的林登词的非负整数次幂——以及在 V 序和二进制块序等替代序下定义的类林登词。<sup>[12](https://doi.org/10.1016/j.jalgebra.2026.01.026)</sup><sup>[19](https://www.sciencedirect.com/science/article/pii/S0304397516301645)</sup>

## References

1. [Lyndon Factorization Algorithms for Small Alphabets and Run-Length Encoded Strings, Algorithms (MDPI)](https://www.mdpi.com/1999-4893/12/6/124)
2. [Guy Melançon and Christophe Reutenauer, Lyndon Words, Free Algebras and Shuffles, Canadian Journal of Mathematics 41 (1989)](https://www.cambridge.org/core/journals/canadian-journal-of-mathematics/article/lyndon-words-free-algebras-and-shuffles/6422EA3BF2893083FA11949D56B81518)
3. [Average cost of Duval's algorithm for generating Lyndon words (Berstel et al., Theoretical Computer Science 132, 1994), full text](https://www-igm.univ-mlv.fr/~berstel/Articles/1994AverageCostDuval.pdf)
4. [L. A. Bokut and Yuqun Chen, Gröbner–Shirshov bases and their calculation, Bulletin of Mathematical Sciences 4 (2014)](https://link.springer.com/article/10.1007/s13373-014-0054-6)
5. [Theory Lyndon, Archive of Formal Proofs](https://isa-afp.org/browser_info/current/AFP/Combinatorics_Words_Lyndon/Lyndon.html)
6. [The Lyndex Project, algorithms page, LITIS, University of Rouen](https://litis-lyndex.univ-rouen.fr/algo.php)
7. [Average cost of Duval's algorithm for generating Lyndon words, Theoretical Computer Science 132 (1994)](https://www.sciencedirect.com/science/article/pii/0304397594000131)
8. [Verónica Becher and Tomás Tropea, Lyndon pairs and the lexicographically greatest perfect necklace](https://www-2.dc.uba.ar/staff/becher/papers/lyndon.pdf)
9. [Computing Maximal Lyndon Substrings of a String, Algorithms (MDPI)](https://www.mdpi.com/1999-4893/13/11/294)
10. [(pdf) nyldon words](https://www.researchgate.net/publication/324793347_Nyldon_words)
11. [J. Berstel and D. Perrin, The origins of combinatorics on words, European Journal of Combinatorics 28 (2007), full text](https://www-igm.univ-mlv.fr/~berstel/Articles/2007Origins.pdf)
12. [A polynomial basis for the stuffle algebra and its applications, Journal of Algebra](https://doi.org/10.1016/j.jalgebra.2026.01.026)
13. [On the Size of Lempel-Ziv and Lyndon Factorizations (arXiv:1611.08898)](https://arxiv.org/abs/1611.08898)
14. [J. P. Duval, Factorizing words over an ordered alphabet, Journal of Algorithms 4 (1983)](https://doi.org/10.1016/0196-6774(83)90017-2)
15. [Alternative Algorithms for Lyndon Factorization (arXiv:1405.4892)](https://arxiv.org/abs/1405.4892)
16. [Efficient Ranking of Lyndon Words and Decoding Lexicographically Minimal de Bruijn Sequence (arXiv:1510.02637)](https://arxiv.org/abs/1510.02637)
17. [Constructing and indexing the bijective and extended Burrows–Wheeler transform, Information and Computation](https://www.sciencedirect.com/science/article/pii/S089054012400018X)
18. [Lyndon array construction during Burrows–Wheeler inversion, Theoretical Computer Science](https://www.sciencedirect.com/science/article/pii/S1570866718301254)
19. [Binary block order Rouen Transform, Theoretical Computer Science 656 (2016)](https://www.sciencedirect.com/science/article/pii/S0304397516301645)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Algebraic combinatorics and graph theory › Combinatorics on words and free structures

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/lyndon-word

English original: https://www.edgepedia.org/lyndon-word
