# 编码理论

**编码理论**是数学与工程的一个分支，研究如何以冗余方式表示数据，使得噪声通信信道或故障存储引入的错误能够被检测并纠正。它分为信道编码与信源编码：前者保护传输的信息免受噪声影响，后者则对信息进行压缩；本文讨论的是信道编码，即纠错码的研究。<sup>[1](https://www.sciencedirect.com/topics/mathematics/coding-theory)</sup>

| 关键事实 | 详情 |
|---|---|
| 奠基性成果 | 香农1948年的噪声信道编码定理：存在码率任意接近信道容量、错误概率任意接近零的分组码<sup>[2](https://ieeexplore.ieee.org/document/720549/)</sup> |
| 最早的显式编码 | 汉明1950年的论文给出了单错误检测、单错误纠正以及单错误纠正加双错误检测的显式方案<sup>[3](https://garfield.library.upenn.edu/classics1982/A1982NY35700001.pdf)</sup> |
| 代数时代 | 在香农、汉明和戈莱之后约十年，出现了BCH码（Bose-Chaudhuri-Hocquenghem码）和里德-所罗门码<sup>[4](https://www.ias.edu/math/events/computer-sciencediscrete-mathematics-seminar-i-91)</sup> |
| 现代标准 | 5G新空口在控制信道使用极化码，在数据信道使用LDPC码<sup>[5](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.2016-4-202502-I%21%21PDF-E.pdf)</sup> |
| 日常应用 | 二维码通过添加里德-所罗门码字来实现纠错；在纠错等级Q下，全部码字的25%可以被纠正<sup>[6](https://www.qrcode.com/en/about/error_correction.html)</sup> |
| 密码学应用 | NIST于2025年3月选定了HQC——一种建立在纠错码之上的方案——作为ML-KEM的后量子备份，最终标准预计于2027年出台<sup>[7](https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption)</sup> |

## 香农的奠基

这一学科肇始于20世纪40年代末。克劳德·E·香农（Claude E. Shannon）1948年的论文《通信的数学理论》分两期刊登于《贝尔系统技术期刊》第27卷，第379-423页（7月）和第623-656页（10月）。<sup>[8](https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1948.tb00917.x)</sup>香农确立了噪声信道上通信效率的基本极限，并证明了编码定理：存在码率任意接近信道容量、错误概率任意接近零的分组码。<sup>[2](https://ieeexplore.ieee.org/document/720549/)</sup>该定理表明，在低于容量的任意码率下实现可靠通信是可能的，但它通过概率论证来证明存在性，对如何构造实用编码只字未提。<sup>[9](https://arxiv.org/abs/cs/0611112)</sup>

## 早期的显式编码

理查德·W·汉明（Richard W. Hamming）1950年的论文《错误检测与错误纠正码》同样发表于《贝尔系统技术期刊》（第29卷，第147-160页），给出了最早的显式构造，为单错误检测、单错误纠正以及单错误纠正加双错误检测提供了解决方案。<sup>[10](https://onlinelibrary.wiley.com/doi/abs/10.1002/j.1538-7305.1950.tb00463.x)</sup>马塞尔·J·E·戈莱（Marcel J. E. Golay）1949年的短文则是这一时期另一份奠基性文献。<sup>[4](https://www.ias.edu/math/events/computer-sciencediscrete-mathematics-seminar-i-91)</sup>十年之后，出现了BCH族与里德-所罗门码这些强大的代数构造，而译码问题催生了多种算法，其中一些如今被用于更广泛的问题，例如多项式因式分解。<sup>[4](https://www.ias.edu/math/events/computer-sciencediscrete-mathematics-seminar-i-91)</sup>

## 线性码与译码

大多数实用编码是线性的：一个码是\( \mathbb{F}_q^n \)中维数为\( k \)的集合\( C \subseteq \mathbb{F}_q^n \)，由\( k \times n \)的生成矩阵\( G \)描述，编码就是一次矩阵-向量乘法\( c = m \cdot G \)。<sup>[11](https://errorcorrectingcodes.wordpress.com/2010/01/12/lecture-material-1-introduction-linear-codes/)</sup>同样的结构允许进行伴随式译码：接收方计算一个仅依赖于错误图样的短伴随式向量，从而无需搜索所有码字即可识别错误。<sup>[12](https://ocw.mit.edu/courses/6-02-introduction-to-eecs-ii-digital-communication-systems-fall-2012/resources/lecture-5-error-correction-syndrome-decoding/)</sup>

一个码的纠错能力由其最小汉明距离决定，即不同码字之间的最小间隔。若码字之间的间隔至少为\( 2t+1 \)，则该码为\( t \)-纠错码。<sup>[13](https://math.mit.edu/~shor/18.310/Hamming-code-notes.pdf)</sup>各种界将参数\( n \)（长度）、\( k \)（维数）和\( d \)（距离）联系起来：辛格尔顿界和球填充界给出了码存在的必要条件，而吉尔伯特-瓦尔沙莫夫界则是一个存在性结果，保证只要参数满足某一不等式，\( \mathrm{GF}(q) \)上就存在线性\( [n, k, d] \)码。<sup>[14](https://www.cambridge.org/core/books/introduction-to-coding-theory/bounds-on-the-parameters-of-codes/39E9DAA5040D4D4DFCC6F84685C59AB4)</sup>代数几何码构造于20世纪最后二十年，可以在多项式时间内编码和译码，并超越了吉尔伯特-瓦尔沙莫夫界。<sup>[2](https://ieeexplore.ieee.org/document/720549/)</sup>

一般而言，译码在计算上是困难的。对于长度为\( N \)、维数为\( K = O(N) \)的里德-所罗门码，存在一个绝对常数\( c > 0 \)，使得纠正超过\( N - K - c \cdot \frac{\log N}{\log \log N} \)个错误是NP难的。<sup>[15](https://arxiv.org/abs/1611.03069)</sup>列表译码要求译码器输出一小组候选结果而非唯一答案，从而能够在远超传统\( d/2 \)障碍的范围内从错误中恢复数据；20世纪90年代末发现的针对某些代数码的多项式时间列表译码算法，重新激起了人们对可纠正错误与冗余之间权衡的兴趣。<sup>[16](https://www.cs.cmu.edu/~venkatg/RD-coding.html)</sup>

## 现代标准中逼近容量的编码

在香农之后的约五十年里，实用编码的运行性能远未达到理论极限。现代则被三类逼近容量的编码家族所主导：Turbo码（包括卷积码）、低密度奇偶校验（LDPC）码和极化码，其中里德-穆勒码与最后一类密切相关。<sup>[17](https://ieeexplore.ieee.org/abstract/document/10502324)</sup>这些迭代式、概率式的译码器使译码比编码复杂得多，它们依赖于在编码比特的概率表示上进行串行或并行消息传递。<sup>[18](https://onlinelibrary.wiley.com/doi/10.1002/dac.5855)</sup>

在5G新空口中，极化码保护控制信道，LDPC码保护数据信道，LDPC基图携带码率为1/3或1/5的母码，并通过速率匹配适配可用容量。<sup>[5](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.2016-4-202502-I%21%21PDF-E.pdf)</sup>极化码是可证明达到容量的一类编码，将其译码器与LDPC和Turbo译码器进行比较的研究，同时考察纠错性能与硬件效率。<sup>[19](https://arxiv.org/abs/1702.04707)</sup>面向6G，综述文章在纠错与硬件实现方面评估了这些方案，并考虑了喷泉（无率）码和稀疏回归码等替代方案。<sup>[17](https://ieeexplore.ieee.org/abstract/document/10502324)</sup>混合构造不断涌现：2024年一项关于系统式Turbo-LDPC组合的研究报告称，在相关慢衰落瑞利信道上，相较于独立的5G-NR LDPC码，在块错误率为\( 10^{-4} \)时约获得1 dB增益，而译码复杂度约为六倍。<sup>[20](https://doi.org/10.1109/VTC2024-Spring62846.2024.10683047)</sup>

## 应用

**深空通信。** 纠错码的第一个重要应用出现在NASA的深空卫星通信中。<sup>[21](https://www.sciencedirect.com/topics/mathematics/discrete-mathematics)</sup>行星际航天器通常使用带维特比译码的卷积编码，以及一般施加于卷积码之前的里德-所罗门编码；深空网络将这些编码方案与大孔径天线和低温冷却的低噪声放大器相结合，从极其微弱的信号中几乎无差错地提取数据。<sup>[22](https://science.nasa.gov/learn/basics-of-space-flight/chapter10-1/)</sup>

**消费媒体与条形码。** 里德-所罗门编码正是CD播放器中用来确保音乐无差错的同一方案，而二维码则通过向原始数据添加里德-所罗门码字来实现纠错。<sup>[22](https://science.nasa.gov/learn/basics-of-space-flight/chapter10-1/)</sup><sup> • </sup><sup>[6](https://www.qrcode.com/en/about/error_correction.html)</sup>

**后量子密码学。** 2025年3月，NIST选定了HQC（汉明准循环码）作为后量子加密的备份密钥封装机制，它建立在纠错码之上，而非ML-KEM所依赖的结构化格；标准草案计划在公告后约一年内推出，最终标准于2027年出台。<sup>[7](https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption)</sup>基于码的方案自2016年该进程公开征集提案以来一直在接受评估；第四轮候选包括HQC、BIKE和Classic McEliece，它们的安全假设均与ML-KEM不同。<sup>[23](https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf)</sup>

**量子计算。** 经典编码理论延伸到量子纠错，其中译码将来自纠错逻辑量子比特的冗余测量实时转化为纠正信号；近期的工程工作瞄准的正是当前量子硬件与容错计算之间的这一译码瓶颈。<sup>[24](https://www.tomshardware.com/tech-industry/artificial-intelligence/nvidia-releases-ising-open-ai-models)</sup>

## References

1. [Coding Theory, ScienceDirect Topics overview](https://www.sciencedirect.com/topics/mathematics/coding-theory)
2. [The art of signaling: fifty years of coding theory, IEEE](https://ieeexplore.ieee.org/document/720549/)
3. [Hamming K W. Error detecting and error correcting codes. Citation-classics commentary, Garfield Library](https://garfield.library.upenn.edu/classics1982/A1982NY35700001.pdf)
4. [History of the Theory of Error-Correcting Codes, IAS seminar by Elwyn Berlekamp](https://www.ias.edu/math/events/computer-sciencediscrete-mathematics-seminar-i-91)
5. [Recommendation ITU-R BT.2016-4 (02/2025), International Telecommunication Union](https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.2016-4-202502-I%21%21PDF-E.pdf)
6. [Error correction feature, QRcode.com, DENSO WAVE](https://www.qrcode.com/en/about/error_correction.html)
7. [NIST Selects HQC as Fifth Algorithm for Post-Quantum Encryption, NIST (March 11, 2025)](https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption)
8. [Shannon, C.E. (1948). A Mathematical Theory of Communication. Bell System Technical Journal 27: 379-423, 623-656](https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.1538-7305.1948.tb00917.x)
9. [Channel Coding: The Road to Channel Capacity, arXiv](https://arxiv.org/abs/cs/0611112)
10. [Hamming, R.W. (1950). Error Detecting and Error Correcting Codes. Bell System Technical Journal 29: 147-160](https://onlinelibrary.wiley.com/doi/abs/10.1002/j.1538-7305.1950.tb00463.x)
11. [Lecture material 1: Introduction, linear codes, CMU Introduction to Coding Theory](https://errorcorrectingcodes.wordpress.com/2010/01/12/lecture-material-1-introduction-linear-codes/)
12. [Lecture 5: Error Correction, Syndrome Decoding, MIT OpenCourseWare 6.02](https://ocw.mit.edu/courses/6-02-introduction-to-eecs-ii-digital-communication-systems-fall-2012/resources/lecture-5-error-correction-syndrome-decoding/)
13. [Hamming Code Notes, MIT 18.310](https://math.mit.edu/~shor/18.310/Hamming-code-notes.pdf)
14. [Bounds on the Parameters of Codes, Introduction to Coding Theory, Cambridge University Press](https://www.cambridge.org/core/books/introduction-to-coding-theory/bounds-on-the-parameters-of-codes/39E9DAA5040D4D4DFCC6F84685C59AB4)
15. [NP-Hardness of Reed-Solomon Decoding, and the Prouhet-Tarry-Escott Problem, arXiv](https://arxiv.org/abs/1611.03069)
16. [Algorithmic coding theory, Venkat Guruswami, Carnegie Mellon University](https://www.cs.cmu.edu/~venkatg/RD-coding.html)
17. [Channel Coding Toward 6G: Technical Overview and Outlook, IEEE Open Journal of the Communications Society](https://ieeexplore.ieee.org/abstract/document/10502324)
18. [Advanced channel coding schemes for B5G/6G networks, International Journal of Communication Systems (2024)](https://onlinelibrary.wiley.com/doi/10.1002/dac.5855)
19. [Comparison of Polar Decoders with Existing Low-Density Parity-Check and Turbo Decoders, arXiv](https://arxiv.org/abs/1702.04707)
20. [Systematic Turbo-Polar, Turbo-LDPC-Polar and Turbo-LDPC Codes Based on Belief Propagation Decoding, IEEE VTC2024-Spring](https://doi.org/10.1109/VTC2024-Spring62846.2024.10683047)
21. [Discrete Mathematics, ScienceDirect Topics overview](https://www.sciencedirect.com/topics/mathematics/discrete-mathematics)
22. [Chapter 10: Telecom, Basics of Space Flight, NASA Science](https://science.nasa.gov/learn/basics-of-space-flight/chapter10-1/)
23. [Status Report on the Fourth Round of the NIST Post-Quantum Cryptography Standardization Process, NIST IR 8545](https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf)
24. [Nvidia releases open AI models for quantum computing tasks, Tom's Hardware](https://www.tomshardware.com/tech-industry/artificial-intelligence/nvidia-releases-ising-open-ai-models)

---
*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 › Algebraic coding theory

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/coding-theory

English original: https://www.edgepedia.org/coding-theory
