ArticleslgStudy

science

Quadratic residue code

Quadratic residue code is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Quadratic residue code rather than just read about it. In short: A quadratic residue code is a type of cyclic code. Examples Examples of quadratic residue codes include the ( 7 , 4 ) {\displaystyle (7,4)} Hamming code over G F ( 2 ) {\displaystyle GF(2)} , the ( 23 , 12 ) {\displaystyle (23,12)} binary Golay code over G F ( 2 ) {\displaystyle GF(2)} and the ( 11 , 6 ) {\displaystyle (11,6)} ternary Golay code over G F ( 3 ) {\displaystyle GF(3)} .

Key takeaways

  • Quadratic residue code belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Quadratic residue code to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Quadratic residue code from memory before moving on to harder problems.

Reference excerpt

A quadratic residue code is a type of cyclic code.

Examples Examples of quadratic residue codes include the ( 7 , 4 ) {\displaystyle (7,4)} Hamming code over G F ( 2 ) {\displaystyle GF(2)} , the ( 23 , 12 ) {\displaystyle (23,12)} binary Golay code over G F ( 2 ) {\displaystyle GF(2)} and the ( 11 , 6 ) {\displaystyle (11,6)} ternary Golay code over G F ( 3 ) {\displaystyle GF(3)} .

Constructions There is a quadratic residue code of length p {\displaystyle p}

over the finite field G F ( l ) {\displaystyle GF(l)} whenever p {\displaystyle p}

and l {\displaystyle l} are primes, p {\displaystyle p} is odd, and

l {\displaystyle l} is a quadratic residue modulo p {\displaystyle p} . Its generator polynomial as a cyclic code is given by

f ( x ) = ∏ j ∈ Q ( x − ζ j ) , {\displaystyle f(x)=\prod _{j\in Q}(x-\zeta ^{j}),}

where Q {\displaystyle Q} is the set of quadratic residues of

p {\displaystyle p} in the set { 1 , 2 , … , p − 1 } {\displaystyle \{1,2,\ldots ,p-1\}} and

ζ {\displaystyle \zeta } is a primitive p {\displaystyle p} th root of unity in some finite extension field of G F ( l ) {\displaystyle GF(l)} . The condition that l {\displaystyle l} is a quadratic residue of p {\displaystyle p} ensures that the coefficients of f {\displaystyle f}

lie in G F ( l ) {\displaystyle GF(l)} . The dimension of the code is

( p + 1 ) / 2 {\displaystyle (p+1)/2} . Replacing ζ {\displaystyle \zeta } by another primitive p {\displaystyle p} -th root of unity ζ r {\displaystyle \zeta ^{r}} either results in the same code or an equivalent code, according to whether or not r {\displaystyle r}

is a quadratic residue of p {\displaystyle p} . An alternative construction avoids roots of unity. Define

g ( x ) = c + ∑ j ∈ Q x j {\displaystyle g(x)=c+\sum _{j\in Q}x^{j}}

for a suitable c ∈ G F ( l ) {\displaystyle c\in GF(l)} . When l = 2 {\displaystyle l=2}

choose c {\displaystyle c} to ensure that g ( 1 ) = 1 {\displaystyle g(1)=1} . If l {\displaystyle l} is odd, choose c = ( 1 + p ∗ ) / 2 {\displaystyle c=(1+{\sqrt {p^{*}}})/2} , where p ∗ = p {\displaystyle p^{*}=p} or − p {\displaystyle -p} according to whether

p {\displaystyle p} is congruent to 1 {\displaystyle 1} or 3 {\displaystyle 3}

modulo 4 {\displaystyle 4} . Then g ( x ) {\displaystyle g(x)} also generates a quadratic residue code; more precisely the ideal of

F l [ X ] / ⟨ X p − 1 ⟩ {\displaystyle F_{l}[X]/\langle X^{p}-1\rangle } generated by g ( x ) {\displaystyle g(x)}

corresponds to the quadratic residue code.

Weight The minimum weight of a quadratic residue code of length p {\displaystyle p}

is greater than p {\displaystyle {\sqrt {p}}} ; this is the square root bound.

Extended code Adding an overall parity-check digit to a quadratic residue code gives an extended quadratic residue code. When

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Quadratic residue code

Start with the simplest possible case. Write down what Quadratic residue code claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Quadratic residue code before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Quadratic residue code ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Quadratic residue code

In research
Quadratic residue code appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Quadratic residue code in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Quadratic residue code is common in secondary-school and first-year university syllabi. It links to neighbouring topics Coding theory, Quadratic residue, so understanding it makes those chapters shorter.
In everyday life
Look for Quadratic residue code outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Quadratic residue code” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Quadratic residue code in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Quadratic residue code means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Quadratic residue code out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Quadratic residue code in simple terms?

A quadratic residue code is a type of cyclic code. Examples Examples of quadratic residue codes include the ( 7 , 4 ) {\displaystyle (7,4)} Hamming code over G F ( 2 ) {\displaystyle GF(2)} , the ( 23 , 12 ) {\displaystyle (23,12)} binary Golay code over G F ( 2 ) {\displaystyle GF(2)} and the ( 11…

Why does Quadratic residue code matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Quadratic residue code?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Quadratic residue code.

Tags

  • Coding theory
  • Quadratic residue

Keep exploring