# 香农数（Shannon number）

**香农数**是对国际象棋博弈树复杂度的一个估计下界，即 \( 10^{120} \)，也就是可能出现的对局数，由[克劳德·香农](https://www.edgepedia.org/zh/claude-shannon)（Claude Shannon）在其1950年的论文《为计算机编写下棋程序》（Programming a Computer for Playing Chess）中算出<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup><sup> • </sup><sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup>。香农只是顺带算出这个数，用以说明对国际象棋做穷尽搜索是不可能的；这篇论文也开创了计算机国际象棋这一领域<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 数值 | \( 10^{120} \)，对可能出现的国际象棋对局数的一个保守下界<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup> |
| 假设 | 每个局面约有30种合法着法（一白一黑的一对着法合计约 \( 10^3 \) 种），典型对局约40回合（80个半回合）<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup> |
| 出处 | 香农在1950年《哲学杂志》（*Philosophical Magazine*）论文中顺带算出，该文1949年11月8日收稿，载于第256–275页<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup><sup> • </sup><sup>[3](https://www.tandfonline.com/doi/abs/10.1080/14786445008521796)</sup> |
| 比较 | 多于可观测宇宙中约 \( 10^{80} \) 个原子<sup>[4](https://arxiv.org/html/1901.11161v1)</sup> |
| 修正数值 | 阿利斯（Allis）以35的分支因子和80个半回合的对局长度估算，博弈树复杂度至少为 \( 10^{123} \)<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup> |
| 局面数 | 合法的国际象棋局面约有 \( 4.8 \times 10^{44} \) 个（特龙普与厄斯特伦德，2022），远少于可能对局数<sup>[5](https://tromp.github.io/chess/chess.html)</sup> |
| 实际意义 | 一台每微秒评估一个变例的机器，若以蛮力计算第一步，需要超过 \( 10^{90} \) 年<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup> |

## 定义与由来

克劳德·香农在《哲学杂志》第41卷第256–275页发表《为计算机编写下棋程序》一文，该文于1949年11月8日收稿<sup>[3](https://www.tandfonline.com/doi/abs/10.1080/14786445008521796)</sup>。计算机国际象棋的现代纪元，习惯上即以此文的发表和电子计算机的问世为起点<sup>[6](https://cdn.aaai.org/Workshops/1997/WS-97-04/WS97-04-013.pdf)</sup>。香农还在《会下棋的机器》（A Chess-Playing Machine，《科学美国人》，1950）一文中向普通读者重述了同一论证，指出可以设法让电子计算机下出相当强的棋，并提出它们能否“思考”的问题<sup>[7](https://www.scientificamerican.com/article/a-chess-playing-machine/)</sup>。

以他命名的这个数，是国际象棋博弈树复杂度的一个下界，工具书称之为保守估计<sup>[8](https://www.chessjournal.com/shannon-number/)</sup>。香农只用几行字就推出了它，当时他正在论证程序不可能把每一种后续变化都算尽；它从来不是那篇论文的主要结论<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup>。

## 估计值如何算出

这套算术用了两个平均值。第一，香农指出，在典型的国际象棋局面中，合法着法的数量约为30种，这一数字取自阿德里安·德赫罗特（Adriaan de Groot）对大师对局的统计平均<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup>。因此白方走一步、黑方应一步，就约有 \( 10^3 \) 种可能。第二，一局典型对局从开局走到认输约40回合，即80个半回合（单方着法）<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup><sup> • </sup><sup>[4](https://arxiv.org/html/1901.11161v1)</sup>。把 \( 10^3 \) 自乘40次，从初始局面出发便得到约 \( 10^{120} \) 种变例<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup>。

后来的论述把同一计算重述为 \( b^m \)，其中分支因子 \( b \approx 35 \)，平均对局长度 \( m \approx 80 \)，得 \( 35^{80} \approx 10^{123} \)<sup>[9](https://arxiv.org/html/1609.04648)</sup>。每个半回合的分支因子并非常数：开局阶段常有20到30种着法，中局30到40种，残局5到15种<sup>[10](https://ceks.it/projects/shannon-number/Shannon_Number_Ai_Chess.pdf)</sup>。维克托·阿利斯（Victor Allis）同样估计博弈树复杂度至少为 \( 10^{123} \)，"依据是平均分支因子35与平均对局长度80"<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup>。

## 国际象棋的复杂度度量

香农数度量的是博弈树，而不是互不相同的局面数。香农另外估算了可能的局面数，量级约为 \( 64! / 32!(8!)^2(2!)^6 \)，即大约 \( 10^{43} \)，这使得“查字典”式的设计不可行<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup>。这一计数没有考虑兵升变之后的局面<sup>[11](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2020/slides/slide5.pdf)</sup>；按现代的理解，香农的组合估计为 \( N_{\text{possible}} \approx 5 \times 10^{42} \)，且未就吃子与升变作修正<sup>[9](https://arxiv.org/html/1609.04648)</sup>。

对合法局面数的估计此后大幅收窄。历史上的数字包括：香农的 \( \approx 10^{43} \)（1950）、阿利斯给出的上界 \( 5 \times 10^{52} \) 并估计真值接近 \( 10^{50} \)（1994）、钦查尔卡（Chinchalkar）的上界 \( 1.8 \times 10^{46} \)（1996），以及特龙普（Tromp）给出的包含集 \( 8.7 \times 10^{45} \)（2022）<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup><sup> • </sup><sup>[12](https://allchesspositions.com/how-many-chess-positions-are-there/)</sup>。2015年《图论杂志》（*Journal of Graph Theory*）上的一篇论文指出，合法局面数通常被估计在 \( 10^{40} \) 到 \( 10^{50} \) 之间，当时最好的上界是 \( 10^{46} \)<sup>[13](https://ideas.repec.org/a/spr/jogath/v44y2015i3p761-767.html)</sup>。2021至2022年，[约翰·特龙普](https://www.edgepedia.org/zh/john-tromp)（John Tromp）与彼得·厄斯特伦德（Peter Österlund）从可计数的包含集中抽取了两百万个局面，以95%的置信度估计合法局面为 \( (4.82 \pm 0.03) \times 10^{44} \) 个<sup>[5](https://tromp.github.io/chess/chess.html)</sup><sup> • </sup><sup>[12](https://allchesspositions.com/how-many-chess-positions-are-there/)</sup>。

博弈树不但在宽度上受限，在长度上也有限。按2023年1月1日生效的国际棋联（FIDE）国际象棋规则，一局棋最多17,697个半回合，而且这个界是紧的：在每一局达到最大长度的对局中，全部16个兵都各走六步单格前进并完成升变<sup>[14](https://mathworld.wolfram.com/Chess.html)</sup>。更早的1966年，邦斯多夫（Bonsdorff）、法贝尔（Fabel）与里希马（Riihimaa）给出最长对局为5,899回合；而单一局面下的最多着法数为218<sup>[15](https://www.chessprogramming.org/Chess)</sup>。

## 用数字说话

通常引用的比较对象是物质：香农数常被拿来与可观测宇宙中约 \( 10^{80} \) 个原子相比<sup>[4](https://arxiv.org/html/1901.11161v1)</sup>。原子数的估计在 \( 4 \times 10^{79} \) 到 \( 4 \times 10^{81} \) 之间<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup>，另有说法在 \( 10^{78} \) 到 \( 10^{82} \) 之间<sup>[16](https://www.liverpoolmuseums.org.uk/stories/which-greater-number-of-atoms-universe-or-number-of-chess-moves-big-question)</sup>。无论取哪一个数字，可能的国际象棋对局都比原子多<sup>[12](https://allchesspositions.com/how-many-chess-positions-are-there/)</sup>。

博弈树与局面数之间的差距本身就说明问题。国际象棋约有 \( 4.8 \times 10^{44} \) 个合法局面，却至少有 \( 10^{120} \) 种可能对局，因此同一个局面会在天文数字般的对局中反复出现；置换表（存储此前评估过的局面）在实践中收益极大，原因正在于此<sup>[5](https://tromp.github.io/chess/chess.html)</sup><sup> • </sup><sup>[10](https://ceks.it/projects/shannon-number/Shannon_Number_Ai_Chess.pdf)</sup>。一项关于国际象棋状态空间的研究补充说，单凭规模度量并不足以唯一地标示一个棋类的复杂度，因为状态空间的拓扑结构同样重要<sup>[9](https://arxiv.org/html/1609.04648)</sup>。

## 对计算机国际象棋的意义

香农数正是蛮力搜索行不通的原因。香农算过，一台每微秒处理一个变例的机器，要算出第一步需要超过 \( 10^{90} \) 年<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup>。1958年《IBM研究与发展杂志》（IBM Journal）的一篇回顾文章引用了同样的 \( 10^{120} \) 种后续变化，并指出一个世纪里可用的时间不足 \( 10^{16} \) 微秒<sup>[17](https://iiif.library.cmu.edu/file/Simon_box00064_fld04883_bdl0001_doc0001/Simon_box00064_fld04883_bdl0001_doc0001.pdf)</sup>。早期计算机的存储容量太小、运算速度太慢，完全搜索只能推进到约两回合、即四到五个半回合，平均约1,000到30,000个分支<sup>[18](https://webdocs.cs.ualberta.ca/~jonathan/publications/ai_publications/simon.pdf)</sup>。

**香农的对策。** 香农的结论是：靠穷尽计算下出完美棋并不现实，于是他转而提出，用评估函数 \( f(P) \) 对每种可能着法所到达的局面打分，再以极小化极大（minimax）原则选出最佳着法线路<sup>[1](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)</sup>。他的框架是：把所有后续变化搜索到固定深度，用数值求和来评估，通过极小化极大得出每个备选着法的有效值，然后取其中最优者<sup>[17](https://iiif.library.cmu.edu/file/Simon_box00064_fld04883_bdl0001_doc0001/Simon_box00064_fld04883_bdl0001_doc0001.pdf)</sup>。他区分了*A类策略*与*B类策略*：前者把全部变例考虑到固定深度，按极大极小公式决策；后者剪掉无意义的变例，只在静态局面（quiescent position）上评估<sup>[11](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2020/slides/slide5.pdf)</sup>。[计算机历史博物馆](https://www.edgepedia.org/zh/computer-history-museum)（Computer History Museum）指出，几乎所有双人博弈软件都采用这两种策略之一<sup>[19](https://www.computerhistory.org/chess/early-theorists/)</sup>。

决定性的改进是α-β剪枝。在理想化的分析中，使用α-β剪枝可把计算量降到不用剪枝时的约平方根，此后三十年间，这一方法主导了国际象棋算法<sup>[18](https://webdocs.cs.ualberta.ca/~jonathan/publications/ai_publications/simon.pdf)</sup>。若着法排序得当，带 \( \alpha \) 与 \( \beta \) 界的α-β剪枝能砍掉无关的子树，从而搜索得深得多<sup>[20](https://doi.org/10.3233/icg-2012-35302)</sup>。实际效果是：尽管国际象棋的真实分支因子约为30，平均的有效分支因子只有约2到3<sup>[11](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2020/slides/slide5.pdf)</sup>。深度直接转化为棋力：曾有人估计多搜一个半回合约相当于200个等级分（Elo分）（汤普森，1982），但后来在西洋跳棋上的工作表明，搜索越深，每增加一个半回合所带来的棋力增幅越小<sup>[21](https://doi.org/10.26481/dis.19940923la)</sup>。

## 与其他棋类的比较

国际象棋远不是最大的博弈树。围棋的合法状态有 \( 2.1 \times 10^{170} \) 个，约占全部 \( 3^{361} \) 个棋盘状态的1%，其博弈树复杂度比国际象棋高出约200个数量级<sup>[9](https://arxiv.org/html/1609.04648)</sup>。

规模较小的棋类已被穷尽分析攻克。西洋跳棋（checkers）约有 \( 5 \times 10^{20} \) 个局面，2007年被解出：在完美着法下结果是和棋；而国际象棋的局面数几乎是它的 \( 10^{24} \) 倍，至今仍未解出<sup>[12](https://allchesspositions.com/how-many-chess-positions-are-there/)</sup>。求解西洋跳棋所用的残局库总大小为 \( 3.9 \times 10^{13} \) 个局面<sup>[22](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2016/slides/slide6.pdf)</sup>。播棋（Awari）约有 \( 10^{12} \) 个局面，2002年被解出<sup>[22](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2016/slides/slide6.pdf)</sup>。所有三至五子以及部分六子的国际象棋残局，同样已由穷尽式残局库解出<sup>[22](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2016/slides/slide6.pdf)</sup>。

## 2023年以来的变化

有两项进展与这一估计相关。其一是规则方面：按2023年1月1日生效的国际棋联规则，最长对局为17,697个半回合，这个紧的界给博弈树的深度维度设了上限<sup>[14](https://mathworld.wolfram.com/Chess.html)</sup>。

其二是搜索方法的转变。现代引擎通过选择性搜索、学习得到的评估、散列与时间分配，实现了香农1950年提出的方案，而不是靠蛮力枚举<sup>[10](https://ceks.it/projects/shannon-number/Shannon_Number_Ai_Chess.pdf)</sup>。一份被引用的分析报告称，[Stockfish](https://www.edgepedia.org/zh/stockfish)每秒计算超过 \( 6.5 \times 10^{6} \) 个节点，它结合了α-β剪枝、用佐布里斯特散列（Zobrist hashing）的置换表（存储评估值、深度与边界数据以避免重复计算），以及迭代加深——引擎连续进行一系列深度递增的搜索，直到分配的时间用完<sup>[10](https://ceks.it/projects/shannon-number/Shannon_Number_Ai_Chess.pdf)</sup><sup> • </sup><sup>[23](https://webdocs.cs.ualberta.ca/~tony/ICCA/WS97-04-006.pdf)</sup>。神经网络引导把有效分支因子压得远低于原始分支因子：仅靠24小时自我对弈训练的[阿尔法零](https://www.edgepedia.org/zh/alphazero)（AlphaZero），在最初100局比赛中以28胜0负72和击败Stockfish<sup>[10](https://ceks.it/projects/shannon-number/Shannon_Number_Ai_Chess.pdf)</sup>。在2007年[蒙特卡洛树搜索](https://www.edgepedia.org/zh/monte-carlo-tree-search)（Monte Carlo tree search）出现并在围棋等棋类中取得成功之前，α-β算法一直主导着双人博弈的搜索<sup>[20](https://doi.org/10.3233/icg-2012-35302)</sup>。

## 这一估计的地位

香农把 \( 10^{120} \) 作为一个顺带算出的示例性下界提出，而非严格的结果<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup>。后来的估计给出更大的数字：阿利斯以35的分支因子得到 \( 10^{123} \)<sup>[2](https://gambiter.com/chess/computer/Shannon_number.html)</sup>；数学家哈代（G. H. Hardy）估计为 \( 10^{10^{50}} \)，并称之为“无论如何都是二阶指数”，不过哈代没有给出推理<sup>[4](https://arxiv.org/html/1901.11161v1)</sup>。

这个数字至今仍有用，但它是规模的示例，而非实际的极限，因为α-β搜索与选择性技巧所带来的2到3的有效分支因子，正是决定引擎能看多深的因素之一<sup>[11](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2020/slides/slide5.pdf)</sup>。那项国际象棋状态空间研究提出了更宽泛的观点：通常所用的规模度量——状态空间与着法树——本身并不足以标示一个棋类的复杂度<sup>[9](https://arxiv.org/html/1609.04648)</sup>。

## References

1. [Claude E. Shannon, "Programming a Computer for Playing Chess" (Philosophical Magazine, 1950), full text reprint](https://people.math.harvard.edu/~knill/various/queengambit/shannon_chess.pdf)
2. [Shannon number, game-tree complexity of chess (Gambiter)](https://gambiter.com/chess/computer/Shannon_number.html)
3. [XXII. Programming a computer for playing chess, Philosophical Magazine Vol. 41, No. 314, pp. 256–275](https://www.tandfonline.com/doi/abs/10.1080/14786445008521796)
4. [An estimation method for game complexity (arXiv, 2019)](https://arxiv.org/html/1901.11161v1)
5. [John's Chess Playground — Number of legal chess positions](https://tromp.github.io/chess/chess.html)
6. [The Historical Development of Computer Chess and its Impact on Artificial Intelligence (AAAI Workshop, 1997)](https://cdn.aaai.org/Workshops/1997/WS-97-04/WS97-04-013.pdf)
7. [A Chess-Playing Machine, Scientific American (Shannon, 1950)](https://www.scientificamerican.com/article/a-chess-playing-machine/)
8. [Shannon Number: What is the Shannon Number in Chess? (Chess Journal)](https://www.chessjournal.com/shannon-number/)
9. [Sequencing Chess (arXiv)](https://arxiv.org/html/1609.04648)
10. [The Shannon Number and the Nature of "Best Moves"](https://ceks.it/projects/shannon-number/Shannon_Number_Ai_Chess.pdf)
11. [Computer Chess Programming as told by C.E. Shannon in the year 1950 (Academia Sinica lecture slides)](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2020/slides/slide5.pdf)
12. [How many chess positions are there?](https://allchesspositions.com/how-many-chess-positions-are-there/)
13. [On the number of positions in chess without promotion, Journal of Graph Theory (2015)](https://ideas.repec.org/a/spr/jogath/v44y2015i3p761-767.html)
14. [Chess, Wolfram MathWorld](https://mathworld.wolfram.com/Chess.html)
15. [Chess, Chessprogramming wiki](https://www.chessprogramming.org/Chess)
16. [Which is greater? The number of atoms in the universe or the number of chess moves? (National Museums Liverpool)](https://www.liverpoolmuseums.org.uk/stories/which-greater-number-of-atoms-universe-or-number-of-chess-moves-big-question)
17. [IBM Journal, October 1958 (early computer chess retrospective)](https://iiif.library.cmu.edu/file/Simon_box00064_fld04883_bdl0001_doc0001/Simon_box00064_fld04883_bdl0001_doc0001.pdf)
18. [The Game of Chess (Newell, Simon et al.)](https://webdocs.cs.ualberta.ca/~jonathan/publications/ai_publications/simon.pdf)
19. [Early Theorists, Mastering the Game, Computer History Museum](https://www.computerhistory.org/chess/early-theorists/)
20. [Game-Tree Search Using Proof Numbers: The First Twenty Years, ICGA Journal](https://doi.org/10.3233/icg-2012-35302)
21. [Searching for Solutions in Games and Artificial Intelligence (Allis, PhD thesis, 1994)](https://doi.org/10.26481/dis.19940923la)
22. [Computer Chess Programming as told by C.E. Shannon (Tsan-sheng Hsu, Academia Sinica)](https://homepage.iis.sinica.edu.tw/~tshsu/tcg/2016/slides/slide6.pdf)
23. [The Anatomy of Chess Programs (ICCA Workshop, 1997)](https://webdocs.cs.ualberta.ca/~tony/ICCA/WS97-04-006.pdf)

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

Topic: 体育、游戏与休闲 › 棋牌与益智游戏 › 国际象棋 › Chess organizations, computing, and variants › Computer chess and engines

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/shannon-number

English original: https://www.edgepedia.org/shannon-number
