![](http://image.absoluteastronomy.com/images//topicimages/noimage.gif)
Quadratic residue code
Encyclopedia
A quadratic residue code is a type of cyclic code.
There is a quadratic residue code of length![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-1.gif)
over the finite field
whenever ![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-3.gif)
and
are primes,
is odd and
is a quadratic residue modulo
.
Its generator polynomial as a cyclic code is given by![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-8.gif)
where
is the set of quadratic residues of
in the set
and
is a primitive
th root of
unity in some finite extension field of
.
The condition that
is a quadratic residue
of
ensures that the coefficients of ![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-17.gif)
lie in
. The dimension of the code is
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-19.gif)
Replacing
by another primitive
-th
root of unity
either results in the same code
or an equivalent code, according to whether or not![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-23.gif)
is a quadratic residue of
.
An alternative construction avoids roots of unity. Define![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-25.gif)
for a suitable
. When ![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-27.gif)
choose
to ensure that ![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-29.gif)
while if
is odd ![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-31.gif)
where
or
according to whether
is congruent to
or ![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-36.gif)
modulo
. Then
also generates
a quadratic residue code; more precisely the ideal of
generated by ![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-40.gif)
corresponds to the quadratic residue code.
The minimum weight of a quadratic residue code of length![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-41.gif)
is greater than
; this is the square root bound.
Adding an overall parity-check digit to a quadratic residue code
gives an extended quadratic residue code. When
(mod
) an extended quadratic
residue code is self-dual; otherwise it is equivalent but not
equal to its dual. By a theorem of
Gleason and Prange, the automorphism group of an extended quadratic residue
code has a subgroup which is isomorphic to
either
or
.
Examples of quadratic
residue codes include the
Hamming code
over
, the
binary Golay code
over
and the
ternary Golay code
over
.
There is a quadratic residue code of length
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-1.gif)
over the finite field
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-2.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-3.gif)
and
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-4.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-5.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-6.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-7.gif)
Its generator polynomial as a cyclic code is given by
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-8.gif)
where
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-9.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-10.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-11.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-12.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-13.gif)
unity in some finite extension field of
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-14.gif)
The condition that
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-15.gif)
of
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-16.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-17.gif)
lie in
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-18.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-19.gif)
Replacing
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-20.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-21.gif)
root of unity
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-22.gif)
or an equivalent code, according to whether or not
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-23.gif)
is a quadratic residue of
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-24.gif)
An alternative construction avoids roots of unity. Define
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-25.gif)
for a suitable
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-26.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-27.gif)
choose
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-28.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-29.gif)
while if
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-30.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-31.gif)
where
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-32.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-33.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-34.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-35.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-36.gif)
modulo
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-37.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-38.gif)
a quadratic residue code; more precisely the ideal of
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-39.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-40.gif)
corresponds to the quadratic residue code.
The minimum weight of a quadratic residue code of length
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-41.gif)
is greater than
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-42.gif)
Adding an overall parity-check digit to a quadratic residue code
gives an extended quadratic residue code. When
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-43.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-44.gif)
residue code is self-dual; otherwise it is equivalent but not
equal to its dual. By a theorem of
Gleason and Prange, the automorphism group of an extended quadratic residue
code has a subgroup which is isomorphic to
either
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-45.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-46.gif)
Examples of quadratic
residue codes include the
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-47.gif)
Hamming code
In telecommunication, Hamming codes are a family of linear error-correcting codes that generalize the Hamming-code invented by Richard Hamming in 1950. Hamming codes can detect up to two and correct up to one bit errors. By contrast, the simple parity code cannot correct errors, and can detect only...
over
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-48.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-49.gif)
Binary Golay code
In mathematics and electronics engineering, a binary Golay code is a type of error-correcting code used in digital communications. The binary Golay code, along with the ternary Golay code, has a particularly deep and interesting connection to the theory of finite sporadic groups in mathematics....
over
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-50.gif)
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-51.gif)
Ternary Golay code
There are two closely related error-correcting codes known as ternary Golay codes. The code generally known simply as the ternary Golay code is a perfect [11, 6, 5] ternary linear code; the extended ternary Golay code is a [12, 6, 6] linear code obtained by adding a zero-sum check digit to the...
over
![](http://image.absoluteastronomy.com/images/formulas/8/5/3858203-52.gif)