✅ Hamming Code Parity Bits
Compute the Hamming parity bits r from data bits m using 2^r >= m + r + 1 for single-bit error correction.
📐 計算公式與說明
滿足 2ʳ ≥ m + r + 1 的最小 r
碼長 = m + r,效率 = m/(m+r)
碼長 = m + r,效率 = m/(m+r)
漢明碼可檢測並糾正單位元錯誤。
Compute the Hamming parity bits r from data bits m using 2^r >= m + r + 1 for single-bit error correction.
漢明碼可檢測並糾正單位元錯誤。
| Item | Formula / Rule | Source / Standard |
|---|---|---|
| Parity bit count | Requires 2k ≥ m + k + 1 with m data bits and k parity bits | Hamming, Error Detecting and Error Correcting Codes, 1950 |
| Correction capability | With distance d = 3 the code corrects t = ⌊(d − 1)/2⌋ = 1 bit and detects 2 | Hamming 1950 §3 Single-error-correcting code |
| Codeword length | n = m + k, with parity bits placed at power-of-two positions 1, 2, 4, 8, … | ISO/IEC 2382 Information technology vocabulary |