WIPIVERSE All articles

Cyclic code

A cyclic code is a type of linear block code used in error correction and detection for digital communication and data storage systems. It is defined by the algebraic property that any cyclic shift of a valid codeword results in another valid codeword.

Algebraic Structure Cyclic codes are ideals in the quotient ring $F_q[x]/(x^n - 1)$, where $F_q$ is a finite field (typically $F_2$ for binary codes) and $n$ is the code length. This polynomial representation allows encoding and decoding operations to be implemented efficiently using shift registers.

Key Parameters

  • Length ($n$): The number of symbols in a codeword.
  • Dimension ($k$): The number of information symbols; the code contains $q^k$ codewords.
  • Generator Polynomial ($g(x)$): A monic polynomial of degree $n-k$ that divides $x^n - 1$. Every codeword polynomial $c(x)$ is a multiple of $g(x)$.
  • Parity-Check Polynomial ($h(x)$): Defined by $g(x)h(x) = x^n - 1$. A polynomial $c(x)$ is a codeword if and only if $c(x)h(x) \equiv 0 \pmod{x^n - 1}$.

Encoding Encoding is typically performed by polynomial multiplication. For a message polynomial $m(x)$ of degree less than $k$, the codeword is generated as $c(x) = m(x)g(x)$ (non-systematic) or via division to produce systematic form: $c(x) = x^{n-k}m(x) - \text{rem}(x^{n-k}m(x)/g(x))$.

Decoding Decoding algorithms exploit the cyclic structure. Common methods include:

  • Syndrome Decoding: Computing syndromes $S_j = r(\alpha^j)$ where $r(x)$ is the received polynomial and $\alpha$ is a root of $g(x)$.
  • Massey-Berlekamp Algorithm: An iterative algorithm for solving the key equation to find the error locator polynomial, widely used for BCH and Reed–Solomon codes.
  • Peterson–Gorenstein–Zierler Decoder: An earlier matrix-based approach for determining error locations.

Major Subclasses

  • BCH Codes (Bose–Chaudhuri–Hocquenghem): A broad class of cyclic codes constructed to have a specified minimum distance, capable of correcting multiple random errors.
  • Reed–Solomon Codes: Non-binary BCH codes where symbols are elements of $F_q$; maximum distance separable (MDS) codes widely used in storage (CDs, DVDs, QR codes) and transmission (DSL, DVB).
  • Hamming Codes: Single-error-correcting cyclic codes (when $n = 2^m - 1$).
  • Golay Codes: The binary $[23, 12, 7]$ and ternary $[11, 6, 5]$ perfect codes.
  • Cyclic Redundancy Checks (CRC): Used primarily for error detection in network frames and storage sectors; defined by a generator polynomial optimized for burst error detection.

Properties

  • Linearity: The sum of two codewords is a codeword.
  • Cyclic Shift Invariance: If $(c_0, c_1, \dots, c_{n-1})$ is a codeword, then $(c_{n-1}, c_0, \dots, c_{n-2})$ is also a codeword.
  • Minimum Distance ($d_{\min}$): The minimum Hamming weight of any non-zero codeword. Determines error-correcting capability $t = \lfloor (d_{\min}-1)/2 \rfloor$.
  • Burst Error Correction: Certain cyclic codes (e.g., Fire codes) are specifically designed to correct burst errors of a defined length.

Applications Cyclic codes are fundamental to modern digital systems. Reed–Solomon codes are standard in optical media (CD, DVD, Blu-ray), QR codes, and satellite communication. BCH codes are used in flash memory (NAND, SSD controllers) and satellite standards (DVB-S2). CRC polynomials are ubiquitous in Ethernet (IEEE 802.3), Wi-Fi (IEEE 802.11), USB, and storage protocols (SATA, PCIe).

Browse

More topics to explore

    Browse all articles