Skip to main content
KetQat

Appearance

Definition · intermediate

Cyclic code

A linear code closed under cyclic shifts of its coordinates. Read as polynomials modulo x^n − 1, cyclic codes are exactly the ideals of that ring, each generated by a divisor of x^n − 1, and are specified by the roots of that divisor.

Established definitionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

A linear code C⊆FqnC \subseteq \F_q^n is cyclic if

(c0,c1,…,cn−1)∈C  ⟹  (cn−1,c0,…,cn−2)∈C.(c_0, c_1, \dots, c_{n-1}) \in C \;\Longrightarrow\; (c_{n-1}, c_0, \dots, c_{n-2}) \in C .

Identify a word with the polynomial c(x)=c0+c1x+⋯+cn−1xn−1c(x) = c_0 + c_1 x + \dots + c_{n-1} x^{n-1} in the ring Rn=Fq[x]/(xn−1)R_n = \F_q[x]/(x^n - 1). The cyclic shift is multiplication by xx, so a linear code is cyclic exactly when it is an ideal of RnR_n: closed under addition and under multiplication by arbitrary polynomials.

  • Generator polynomial. Every cyclic code C≠{0}C \neq \{0\} contains a unique monic polynomial g(x)g(x) of least degree. It divides xn−1x^n - 1, and C={ a(x) g(x):deg⁡a<n−deg⁡g }C = \{\, a(x)\, g(x) : \deg a < n - \deg g \,\}. Hence dim⁡C=n−deg⁡g\dim C = n - \deg g, and cyclic codes of length nn correspond one-to-one to monic divisors of xn−1x^n - 1.
  • Check polynomial. With h(x)=(xn−1)/g(x)h(x) = (x^n - 1)/g(x), a word cc is in CC if and only if c(x) h(x)=0c(x)\, h(x) = 0 in RnR_n.
  • Zeros. Suppose gcd⁡(n,q)=1\gcd(n, q) = 1. Then xn−1x^n - 1 has nn distinct roots, the nn-th roots of unity, in a suitable extension Fqm\F_{q^m}; they are the powers of a primitive nn-th root of unity α\alpha. The code is determined by the set of roots of gg:
C  =  { c(x)∈Rn  :  c(αj)=0 for all j∈T },T={ j:g(αj)=0 }.C \;=\; \bigl\{\, c(x) \in R_n \;:\; c(\alpha^{j}) = 0 \text{ for all } j \in T \,\bigr\} , \qquad T = \{\, j : g(\alpha^{j}) = 0 \,\} .

The defining set TT is closed under multiplication by qq modulo nn, because gg has coefficients in Fq\F_q and so g(βq)=g(β)qg(\beta^q) = g(\beta)^q.

Designing a cyclic code thus amounts to choosing which roots of unity its codewords must vanish at; the BCH bound converts a run of consecutive zeros into a guarantee on the minimum distance, and BCH codes are the codes designed this way. Proofs of the statements above are in chapter 4 of Huffman and Pless.

Builds on
Instance of
Instances
Needed for

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. W. Cary Huffman, Vera Pless (2003). Fundamentals of Error-Correcting Codes. Cambridge University Press. doi:10.1017/CBO9780511807077
  2. Rudolf Lidl, Harald Niederreiter (1996). Finite Fields. Cambridge University Press (Encyclopedia of Mathematics and its Applications 20, 2nd edition). doi:10.1017/CBO9780511525926

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Ideal characterisation, generator polynomial (divides x^n-1, dim = n - deg g), check polynomial, defining set closed under multiplication by q re-derived; checked numerically for all binary cyclic codes of length 15 built from products of minimal polynomials over GF(16). The pointer to Huffman-Pless chapter 4 was not verified (book not openly readable).

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 386601bf6c8e727e. Source file knowledge/records/definition/cyclic-code.md in the content repository (readable there once it is public).