# 霍兰图式定理

**霍兰图式定理**是遗传算法理论中的一个结果，由约翰·霍兰（John Holland）在其1975年的著作《自然与人工系统中的适应》中证明，该定理给出了经过一代简单遗传算法后，与某个图式相匹配的串的期望数量的一个下界。图式是由某些位置上的固定比特值所定义的定长二进制串的子集。<sup>[1](https://arxiv.org/abs/1105.3538)</sup><sup> • </sup><sup>[2](https://www.flll.jku.at/div/teaching/Ga/GA-Notes.pdf)</sup> 它常被称为“遗传算法的基本定理”，并且是积木块假设和隐含并行性主张的基础，尽管该定理的适用范围及其解释都受到了大量批评。<sup>[3](https://www.ida.liu.se/~zebpe83/heuristic/papers/GA_survey.pdf)</sup><sup> • </sup><sup>[4](https://dynamics.org/Altenberg/PAPERS/STPT/)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由约翰·霍兰（1975）在《自然与人工系统中的适应》中针对使用适应度比例选择、单点交叉和比特翻转变异的遗传算法证明<sup>[2](https://www.flll.jku.at/div/teaching/Ga/GA-Notes.pdf)</sup><sup> • </sup><sup>[5](https://people.cs.nott.ac.uk/pszrq/files/GAsErben.pdf)</sup> |
| 陈述 | 经过一代简单遗传算法后，与某个图式相匹配的串的期望数量的一个下界<sup>[1](https://arxiv.org/abs/1105.3538)</sup><sup> • </sup><sup>[6](https://mathworld.wolfram.com/HollandsSchemaTheorem.html)</sup> |
| 结构 | 分为三部分，分别对应选择、交叉和变异；选择部分是精确的，交叉和变异部分是近似<sup>[1](https://arxiv.org/abs/1105.3538)</sup> |
| 实际解读 | 该定理通常被解读为：适应度高于平均水平的短、低阶图式随着时间的推移获得指数增长的采样数量<sup>[7](https://mat.uab.cat/~alseda/MasterOpt/An_Introduction_to_Genetic_Algorithms-Melanie_Mitchell.pdf)</sup> |
| 隐含并行性 | 一个处理几十个长度为40的串的遗传算法实际上处理了数千个图式，每个串约2·e^40 ≈ 16,000个<sup>[8](https://www.scholarpedia.org/article/Genetic_algorithms)</sup> |
| 主要批评 | 该定理只计算图式的破坏，不计算图式的创建，并且对遗传算法的实际表现没有直接推论<sup>[4](https://dynamics.org/Altenberg/PAPERS/STPT/)</sup><sup> • </sup><sup>[7](https://mat.uab.cat/~alseda/MasterOpt/An_Introduction_to_Genetic_Algorithms-Melanie_Mitchell.pdf)</sup> |

## 图式与设定

图式是定义在字母表{0, 1, *}上的串，其中*表示“无关”；例如，图式10**0*匹配所有前两位为1和0、第五位为0的定长二进制串。因此，图式是定长二进制串空间中自然定义的子集，或称超平面。<sup>[1](https://arxiv.org/abs/1105.3538)</sup><sup> • </sup><sup>[9](https://jmvidal.cse.sc.edu/talks/geneticalgorithms/allslides.html)</sup> 有两个量描述图式对遗传算子的暴露程度：阶o(s)，即已定义（非*）位置的数目；以及定义长度d(s)，即最左和最右已定义位置之间的距离。<sup>[9](https://jmvidal.cse.sc.edu/talks/geneticalgorithms/allslides.html)</sup>

该定理是针对霍兰1975年表述中的“简单”或规范遗传算法陈述的：适应度比例（轮盘赌）选择、以概率p_c施加的单点交叉，以及以概率p_m进行的独立比特翻转变异，作用于长度为l的串上。<sup>[5](https://people.cs.nott.ac.uk/pszrq/files/GAsErben.pdf)</sup><sup> • </sup><sup>[6](https://mathworld.wolfram.com/HollandsSchemaTheorem.html)</sup>

## 定理

设m(s, t)为第t代种群中图式s的实例数，f̄(t)为整个种群的平均适应度，û(s, t)为图式s的实例串的平均适应度。霍兰图式定理陈述如下<sup>[9](https://jmvidal.cse.sc.edu/talks/geneticalgorithms/allslides.html)</sup>

\[ E[m(s, t+1)] \; \geq \; m(s,t) \cdot \frac{\hat{u}(s,t)}{\bar{f}(t)} \cdot \left(1 - p_c \cdot \frac{d(s)}{l-1}\right) \cdot (1 - p_m)^{o(s)} \]

每个因子对应一个算子。在适应度比例选择下，每个串被选中的概率与其适应度成正比，因此选择后s的期望实例数为m(s, t)·û(s, t)/f̄(t)；这部分推导是精确的。<sup>[1](https://arxiv.org/abs/1105.3538)</sup><sup> • </sup><sup>[10](https://www.icts.res.in/sites/default/files/DCS2019-2019-05-20-Ujjwal-Maulik_0.pdf)</sup> 单点交叉的切点在l−1个间隙中均匀选取，只有当切点落在图式的定义长度内时才会破坏该图式，由此得到存活因子1 − p_c·d(s)/(l−1)。独立比特变异只有在图式的o(s)个已定义比特均未被翻转时才保持图式完整，由此得到(1 − p_m)^{o(s)}。<sup>[9](https://jmvidal.cse.sc.edu/talks/geneticalgorithms/allslides.html)</sup><sup> • </sup><sup>[2](https://www.flll.jku.at/div/teaching/Ga/GA-Notes.pdf)</sup>

该结果是一个下界，因为它在两个方面是保守的：它假设任何落在定义长度内的交叉都会破坏图式，并且忽略了增益，即通过交叉和变异从当前不匹配该图式的串中创建s的新实例。<sup>[11](https://www.cs.unibo.it/babaoglu/courses/cas/resources/tutorials/Genetic_Algorithms.pdf)</sup><sup> • </sup><sup>[7](https://mat.uab.cat/~alseda/MasterOpt/An_Introduction_to_Genetic_Algorithms-Melanie_Mitchell.pdf)</sup> 霍兰本人对该结果的简化表述写作N(s, t+1) = u(s, t)·[1 − e]·N(s, t)，其中u(s, t)是图式携带者的观测平均适应度，e是该簇被变异或交叉破坏或创建的总概率；当图式的等位基因分布在染色体的相当大一部分上时，e会变得很大。<sup>[8](https://www.scholarpedia.org/article/Genetic_algorithms)</sup>

## 解读：积木块与隐含并行性

该定理通常被解读为：平均适应度保持在种群均值以上的短、低阶图式随着时间的推移获得指数增长的采样数量，因为它们的计数每代以û(s, t)/f̄(t)的因子增长，而破坏因子保持不变。<sup>[7](https://mat.uab.cat/~alseda/MasterOpt/An_Introduction_to_Genetic_Algorithms-Melanie_Mitchell.pdf)</sup> 与高于平均水平的串持续关联的图式迅速扩散，随后交叉尝试这些高于平均水平的图式的新组合，这些图式成为进一步求解尝试的积木块。<sup>[8](https://www.scholarpedia.org/article/Genetic_algorithms)</sup> 相关的积木块假设由大卫·戈德堡（David Goldberg）于1989年提出，它假定遗传算法正是通过将优良图式的实例重组为同样优良或更好的高阶图式来工作的。<sup>[7](https://mat.uab.cat/~alseda/MasterOpt/An_Introduction_to_Genetic_Algorithms-Melanie_Mitchell.pdf)</sup>

第二种解读是隐含并行性：尽管算法每代只评估N(t)个串，但每个串同时是许多图式的实例，因此种群同时隐式地估计了大量图式的平均适应度。在单个长度为40的串上，约有2·e^40个图式，大约16,000个，因此几十个这样的串组成的种群处理了数千个图式；对于图式能够捕捉搜索空间规律性的问题，这比孤立地处理每个串有实质性的加速。<sup>[8](https://www.scholarpedia.org/article/Genetic_algorithms)</sup>

## 批评与局限

有几条批评路线限制了该定理所能主张的内容。

**它只计算破坏。** 该界只处理交叉和变异的破坏性效应，对新的图式实例的创建只字未提，而交叉的建设性力量本应体现在那里。<sup>[7](https://mat.uab.cat/~alseda/MasterOpt/An_Introduction_to_Genetic_Algorithms-Melanie_Mitchell.pdf)</sup>

**它不衡量性能。** 李·阿尔滕伯格（Lee Altenberg）在发表于《遗传算法基础》（1995）的工作中回顾了反对论点，并得出结论：图式定理对遗传算法的表现如何没有推论；对该定理的解读隐含地假设了父代和子代适应度之间的相关性，这一假设在基于普莱斯协方差与选择定理的结果中被明确化。<sup>[4](https://dynamics.org/Altenberg/PAPERS/STPT/)</sup> 在实证方面，当时在[巴斯大学](https://www.edgepedia.org/zh/university-of-bath)的统计学家克里斯托弗·詹尼森（Christopher Jennison）和努阿拉·希恩（Nuala Sheehan）在《计算与图形统计杂志》（1995）上研究了基本遗传算法作为数值优化器的表现；它未能最大化一个含50个二进制变量的简单函数，这使他们得出结论：图式定理的推论比通常声称的要弱得多。<sup>[12](https://researchportal.bath.ac.uk/en/publications/theoretical-and-empirical-properties-of-the-genetic-algorithm-as-/)</sup>

**只有少数现代算法符合它的假设。** 该定理与适应度比例选择绑定，而大多数后来的遗传算法工作放弃了这种方法，转而采用排名选择、锦标赛选择和稳态选择，因此仅凭这一点就可以质疑其“基本”地位。<sup>[13](https://www.sciencedirect.com/science/article/pii/S030326479900057X)</sup> 福格尔（Fogel）和戈泽尔（Ghozeil）（1997b）进一步证明，当图式适应度是随机变量时——这在实际应用中经常如此——该定理不适用。<sup>[13](https://www.sciencedirect.com/science/article/pii/S030326479900057X)</sup> 该界也只对单代成立；将其扩展到多代需要假设图式的平均适应度保持在种群均值以上，而该定理本身并不提供这一假设。<sup>[14](https://www2.fiit.stuba.sk/~kvasnicka/Free%20books/Weisse_Global%20Optimization%20Algorithms%20-%20Theory%20and%20Application.pdf)</sup>

**短图式偏好并非普遍成立。** C. R. 斯蒂芬斯（C. R. Stephens）和H. 韦尔布鲁克（H. Waelbroeck）利用遗传算法的演化方程，推导出了基于有效适应度概念的图式定理，根据该定理，有效适应度高于平均水平的图式呈指数增长，但他们证明，一般而言并不存在对短、低阶图式的偏好；当图式重建比破坏更有利时，大图式往往更受青睐。<sup>[15](https://arxiv.org/abs/nlin/0006048)</sup>

## 精确形式与扩展形式

后来的工作修复了该定理的近似并对其进行了推广。奥尔登·H. 赖特（Alden H. Wright）是一位从事遗传算法数学理论研究的计算机科学家，他给出了经过一代后种群中处于某图式的精确期望比例的公式，展示了如何使交叉和变异部分变得精确，霍兰定理作为推论随之成立；该推导利用了图式与种群的沃尔什基表示之间的密切关系。<sup>[1](https://arxiv.org/abs/1105.3538)</sup> 布里奇斯（Bridges）和戈德堡将该定理对二进制图式的形式扩展为等式，同时包含了串增益项和破坏项。<sup>[16](https://www.sciencedirect.com/topics/computer-science/schema-theorem)</sup> 图式理论也被引入遗传编程，里卡多·波利（Riccardo Poli）和W. B. 兰登（W. B. Langdon）综述了遗传算法图式理论向树表示的扩展。<sup>[17](https://gpbib.pmacs.upenn.edu/gpbib.cs.ucl.ac.uk/gp-html/poli_1998_rtesGP.html)</sup>

## References

1. [Alden H. Wright. The Exact Schema Theorem. arXiv:1105.3538 (written 1999, posted 2011).](https://arxiv.org/abs/1105.3538)
2. [Schema Theorem (Holland 1975), in Genetic Algorithms: Theory and Applications, course notes, Johannes Kepler University Linz.](https://www.flll.jku.at/div/teaching/Ga/GA-Notes.pdf)
3. [J. He and colleagues. Genetic algorithms: a survey. Computer.](https://www.ida.liu.se/~zebpe83/heuristic/papers/GA_survey.pdf)
4. [Lee Altenberg. The Schema Theorem and Price's Theorem. Foundations of Genetic Algorithms 3, pp. 23–49, Morgan Kaufmann, 1995.](https://dynamics.org/Altenberg/PAPERS/STPT/)
5. [Genetic Algorithms lecture notes, University of Nottingham.](https://people.cs.nott.ac.uk/pszrq/files/GAsErben.pdf)
6. [Holland's Schema Theorem, Wolfram MathWorld.](https://mathworld.wolfram.com/HollandsSchemaTheorem.html)
7. [Melanie Mitchell. An Introduction to Genetic Algorithms, MIT Press, 1996, Chapter 1.](https://mat.uab.cat/~alseda/MasterOpt/An_Introduction_to_Genetic_Algorithms-Melanie_Mitchell.pdf)
8. [John Holland. Genetic algorithms. Scholarpedia, 7(12):1482.](https://www.scholarpedia.org/article/Genetic_algorithms)
9. [Genetic Algorithms lecture slides, J. M. Vidal, University of South Carolina.](https://jmvidal.cse.sc.edu/talks/geneticalgorithms/allslides.html)
10. [Ujjwal Maulik. Genetic Algorithms lecture notes, ICTS DCS 2019.](https://www.icts.res.in/sites/default/files/DCS2019-2019-05-20-Ujjwal-Maulik_0.pdf)
11. [Genetic Algorithms tutorial, University of Bologna.](https://www.cs.unibo.it/babaoglu/courses/cas/resources/tutorials/Genetic_Algorithms.pdf)
12. [Christopher Jennison and Nuala Sheehan (1995). Theoretical and Empirical Properties of the Genetic Algorithm as a Numerical Optimizer. Journal of Computational and Graphical Statistics 4(4), 296–318.](https://researchportal.bath.ac.uk/en/publications/theoretical-and-empirical-properties-of-the-genetic-algorithm-as-/)
13. [Fitness distributions in evolutionary computation: motivation and examples in the continuous domain. Biosystems.](https://www.sciencedirect.com/science/article/pii/S030326479900057X)
14. [Global Optimization Algorithms: Theory and Application (course text, Slovak University of Technology).](https://www2.fiit.stuba.sk/~kvasnicka/Free%20books/Weisse_Global%20Optimization%20Algorithms%20-%20Theory%20and%20Application.pdf)
15. [C. R. Stephens and H. Waelbroeck. Schemata Evolution and Building Blocks. Evolutionary Computation 7(2), 109 (1999); arXiv:nlin/0006048.](https://arxiv.org/abs/nlin/0006048)
16. [Schema Theorem: an overview, ScienceDirect Topics.](https://www.sciencedirect.com/topics/computer-science/schema-theorem)
17. [Riccardo Poli and W. B. Langdon (1998). A Review of Theoretical and Experimental Results on Schemata in Genetic Programming. EuroGP'98, LNCS 1391, pp. 1–15.](https://gpbib.pmacs.upenn.edu/gpbib.cs.ucl.ac.uk/gp-html/poli_1998_rtesGP.html)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 机器学习与神经计算 › 机器学习方法 › 进化与群体计算 › 遗传算法

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/hollands-schema-theorem

English original: https://www.edgepedia.org/hollands-schema-theorem
