Misplaced Pages

Cyclic code

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Idempotent of a code) Type of block code
This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (March 2014) (Learn how and when to remove this message)

In coding theory, a cyclic code is a block code, where the circular shifts of each codeword gives another word that belongs to the code. They are error-correcting codes that have algebraic properties that are convenient for efficient error detection and correction.

If 00010111 is a valid codeword, applying a right circular shift gives the string 10001011. If the code is cyclic, then 10001011 is again a valid codeword. In general, applying a right circular shift moves the least significant bit (LSB) to the leftmost position, so that it becomes the most significant bit (MSB); the other positions are shifted by 1 to the right.

Definition

Let C {\displaystyle {\mathcal {C}}} be a linear code over a finite field (also called Galois field) G F ( q ) {\displaystyle GF(q)} of block length n {\displaystyle n} . C {\displaystyle {\mathcal {C}}} is called a cyclic code if, for every codeword c = ( c 1 , , c n ) {\displaystyle c=(c_{1},\ldots ,c_{n})} from C {\displaystyle {\mathcal {C}}} , the word ( c n , c 1 , , c n 1 ) {\displaystyle (c_{n},c_{1},\ldots ,c_{n-1})} in G F ( q ) n {\displaystyle GF(q)^{n}} obtained by a cyclic right shift of components is again a codeword. Because one cyclic right shift is equal to n 1 {\displaystyle n-1} cyclic left shifts, a cyclic code may also be defined via cyclic left shifts. Therefore, the linear code C {\displaystyle {\mathcal {C}}} is cyclic precisely when it is invariant under all cyclic shifts.

Cyclic codes have some additional structural constraint on the codes. They are based on Galois fields and because of their structural properties they are very useful for error controls. Their structure is strongly related to Galois fields because of which the encoding and decoding algorithms for cyclic codes are computationally efficient.

Algebraic structure

Cyclic codes can be linked to ideals in certain rings. Let R = A [ x ] / ( x n 1 ) {\displaystyle R=A/(x^{n}-1)} be a polynomial ring over the finite field A = G F ( q ) {\displaystyle A=GF(q)} . Identify the elements of the cyclic code C {\displaystyle C} with polynomials in R {\displaystyle R} such that ( c 0 , , c n 1 ) {\displaystyle (c_{0},\ldots ,c_{n-1})} maps to the polynomial c 0 + c 1 x + + c n 1 x n 1 {\displaystyle c_{0}+c_{1}x+\cdots +c_{n-1}x^{n-1}} : thus multiplication by x {\displaystyle x} corresponds to a cyclic shift. Then C {\displaystyle C} is an ideal in R {\displaystyle R} , and hence principal, since R {\displaystyle R} is a principal ideal ring. The ideal is generated by the unique monic element in C {\displaystyle C} of minimum degree, the generator polynomial g {\displaystyle g} . This must be a divisor of x n 1 {\displaystyle x^{n}-1} . It follows that every cyclic code is a polynomial code. If the generator polynomial g {\displaystyle g} has degree d {\displaystyle d} then the rank of the code C {\displaystyle C} is n d {\displaystyle n-d} .

The idempotent of C {\displaystyle C} is a codeword e {\displaystyle e} such that e 2 = e {\displaystyle e^{2}=e} (that is, e {\displaystyle e} is an idempotent element of C {\displaystyle C} ) and e {\displaystyle e} is an identity for the code, that is e c = c {\displaystyle e\cdot c=c} for every codeword c {\displaystyle c} . If n {\displaystyle n} and q {\displaystyle q} are coprime such a word always exists and is unique; it is a generator of the code.

An irreducible code is a cyclic code in which the code, as an ideal is irreducible, i.e. is minimal in R {\displaystyle R} , so that its check polynomial is an irreducible polynomial.

Examples

For example, if A = F 2 {\displaystyle A=\mathbb {F} _{2}} and n = 3 {\displaystyle n=3} , the set of codewords contained in cyclic code generated by ( 1 , 1 , 0 ) {\displaystyle (1,1,0)} is precisely

( ( 0 , 0 , 0 ) , ( 1 , 1 , 0 ) , ( 0 , 1 , 1 ) , ( 1 , 0 , 1 ) ) {\displaystyle ((0,0,0),(1,1,0),(0,1,1),(1,0,1))} .

It corresponds to the ideal in F 2 [ x ] / ( x 3 1 ) {\displaystyle \mathbb {F} _{2}/(x^{3}-1)} generated by ( 1 + x ) {\displaystyle (1+x)} .

The polynomial ( 1 + x ) {\displaystyle (1+x)} is irreducible in the polynomial ring, and hence the code is an irreducible code.

The idempotent of this code is the polynomial x + x 2 {\displaystyle x+x^{2}} , corresponding to the codeword ( 0 , 1 , 1 ) {\displaystyle (0,1,1)} .

Trivial examples

Trivial examples of cyclic codes are A n {\displaystyle A^{n}} itself and the code containing only the zero codeword. These correspond to generators 1 {\displaystyle 1} and x n 1 {\displaystyle x^{n}-1} respectively: these two polynomials must always be factors of x n 1 {\displaystyle x^{n}-1} .

Over G F ( 2 ) {\displaystyle GF(2)} the parity bit code, consisting of all words of even weight, corresponds to generator x + 1 {\displaystyle x+1} . Again over G F ( 2 ) {\displaystyle GF(2)} this must always be a factor of x n 1 {\displaystyle x^{n}-1} .

Quasi-cyclic codes and shortened codes

Before delving into the details of cyclic codes first we will discuss quasi-cyclic and shortened codes which are closely related to the cyclic codes and they all can be converted into each other.

Definition

Quasi-cyclic codes:

An ( n , k ) {\displaystyle (n,k)} quasi-cyclic code is a linear block code such that, for some b {\displaystyle b} which is coprime to n {\displaystyle n} , the polynomial x b c ( x ) ( mod x n 1 ) {\displaystyle x^{b}c(x){\pmod {x^{n}-1}}} is a codeword polynomial whenever c ( x ) {\displaystyle c(x)} is a codeword polynomial.

Here, codeword polynomial is an element of a linear code whose code words are polynomials that are divisible by a polynomial of shorter length called the generator polynomial. Every codeword polynomial can be expressed in the form c ( x ) = a ( x ) g ( x ) {\displaystyle c(x)=a(x)g(x)} , where g ( x ) {\displaystyle g(x)} is the generator polynomial. Any codeword ( c 0 , . . , c n 1 ) {\displaystyle (c_{0},..,c_{n-1})} of a cyclic code C {\displaystyle C} can be associated with a codeword polynomial, namely, i = 0 n 1 c i x i {\displaystyle \sum _{i=0}^{n-1}c_{i}*x^{i}} . A quasi-cyclic code with b {\displaystyle b} equal to 1 {\displaystyle 1} is a cyclic code.

Definition

Shortened codes:

An ( n , k ) {\displaystyle (n,k)} linear code is called a proper shortened cyclic code if it can be obtained by deleting b {\displaystyle b} positions from an ( n + b , k + b ) {\displaystyle (n+b,k+b)} cyclic code.

In shortened codes information symbols are deleted to obtain a desired blocklength smaller than the design blocklength. The missing information symbols are usually imagined to be at the beginning of the codeword and are considered to be 0. Therefore, n {\displaystyle n} k {\displaystyle k} is fixed, and then k {\displaystyle k} is decreased which eventually decreases n {\displaystyle n} . It is not necessary to delete the starting symbols. Depending on the application sometimes consecutive positions are considered as 0 and are deleted.

All the symbols which are dropped need not be transmitted and at the receiving end can be reinserted. To convert ( n , k ) {\displaystyle (n,k)} cyclic code to ( n b , k b ) {\displaystyle (n-b,k-b)} shortened code, set b {\displaystyle b} symbols to zero and drop them from each codeword. Any cyclic code can be converted to quasi-cyclic codes by dropping every b {\displaystyle b} th symbol where b {\displaystyle b} is a factor of n {\displaystyle n} . If the dropped symbols are not check symbols then this cyclic code is also a shortened code.

For correcting errors

Cyclic codes can be used to correct errors, like Hamming codes as cyclic codes can be used for correcting single error. Likewise, they are also used to correct double errors and burst errors. All types of error corrections are covered briefly in the further subsections.

The (7,4) Hamming code has a generator polynomial g ( x ) = x 3 + x + 1 {\displaystyle g(x)=x^{3}+x+1} . This polynomial has a zero in Galois extension field G F ( 8 ) {\displaystyle GF(8)} at the primitive element α {\displaystyle \alpha } , and all codewords satisfy C ( α ) = 0 {\displaystyle {\mathcal {C}}(\alpha )=0} . Cyclic codes can also be used to correct double errors over the field G F ( 2 ) {\displaystyle GF(2)} . Blocklength will be n {\displaystyle n} equal to 2 m 1 {\displaystyle 2^{m}-1} and primitive elements α {\displaystyle \alpha } and α 3 {\displaystyle \alpha ^{3}} as zeros in the G F ( 2 m ) {\displaystyle GF(2^{m})} because we are considering the case of two errors here, so each will represent one error.

The received word is a polynomial of degree n 1 {\displaystyle n-1} given as v ( x ) = a ( x ) g ( x ) + e ( x ) {\displaystyle v(x)=a(x)g(x)+e(x)}

where e ( x ) {\displaystyle e(x)} can have at most two nonzero coefficients corresponding to 2 errors.

We define the syndrome polynomial, S ( x ) {\displaystyle S(x)} as the remainder of polynomial v ( x ) {\displaystyle v(x)} when divided by the generator polynomial g ( x ) {\displaystyle g(x)} i.e.

S ( x ) v ( x ) ( a ( x ) g ( x ) + e ( x ) ) e ( x ) mod g ( x ) {\displaystyle S(x)\equiv v(x)\equiv (a(x)g(x)+e(x))\equiv e(x)\mod g(x)} as ( a ( x ) g ( x ) ) 0 mod g ( x ) {\displaystyle (a(x)g(x))\equiv 0\mod g(x)} .

For correcting two errors

Let the field elements X 1 {\displaystyle X_{1}} and X 2 {\displaystyle X_{2}} be the two error location numbers. If only one error occurs then X 2 {\displaystyle X_{2}} is equal to zero and if none occurs both are zero.

Let S 1 = v ( α ) {\displaystyle S_{1}={v}(\alpha )} and S 3 = v ( α 3 ) {\displaystyle S_{3}={v}(\alpha ^{3})} .

These field elements are called "syndromes". Now because g ( x ) {\displaystyle g(x)} is zero at primitive elements α {\displaystyle \alpha } and α 3 {\displaystyle \alpha ^{3}} , so we can write S 1 = e ( α ) {\displaystyle S_{1}=e(\alpha )} and S 3 = e ( α 3 ) {\displaystyle S_{3}=e(\alpha ^{3})} . If say two errors occur, then

S 1 = α i + α i {\displaystyle S_{1}=\alpha ^{i}+\alpha ^{i'}} and S 3 = α 3 i + α 3 i {\displaystyle S_{3}=\alpha ^{3i}+\alpha ^{3i'}} .

And these two can be considered as two pair of equations in G F ( 2 m ) {\displaystyle GF(2^{m})} with two unknowns and hence we can write

S 1 = X 1 + X 2 {\displaystyle S_{1}=X_{1}+X_{2}} and S 3 = ( X 1 ) 3 + ( X 2 ) 3 {\displaystyle S_{3}=(X_{1})^{3}+(X_{2})^{3}} .

Hence if the two pair of nonlinear equations can be solved cyclic codes can used to correct two errors.

Hamming code

The Hamming(7,4) code may be written as a cyclic code over GF(2) with generator 1 + x + x 3 {\displaystyle 1+x+x^{3}} . In fact, any binary Hamming code of the form Ham(r, 2) is equivalent to a cyclic code, and any Hamming code of the form Ham(r,q) with r and q-1 relatively prime is also equivalent to a cyclic code. Given a Hamming code of the form Ham(r,2) with r 3 {\displaystyle r\geq 3} , the set of even codewords forms a cyclic [ 2 r 1 , 2 r r 2 , 4 ] {\displaystyle } -code.

Hamming code for correcting single errors

A code whose minimum distance is at least 3, have a check matrix all of whose columns are distinct and non zero. If a check matrix for a binary code has m {\displaystyle m} rows, then each column is an m {\displaystyle m} -bit binary number. There are 2 m 1 {\displaystyle 2^{m}-1} possible columns. Therefore, if a check matrix of a binary code with d m i n {\displaystyle d_{min}} at least 3 has m {\displaystyle m} rows, then it can only have 2 m 1 {\displaystyle 2^{m}-1} columns, not more than that. This defines a ( 2 m 1 , 2 m 1 m ) {\displaystyle (2^{m}-1,2^{m}-1-m)} code, called Hamming code.

It is easy to define Hamming codes for large alphabets of size q {\displaystyle q} . We need to define one H {\displaystyle H} matrix with linearly independent columns. For any word of size q {\displaystyle q} there will be columns who are multiples of each other. So, to get linear independence all non zero m {\displaystyle m} -tuples with one as a top most non zero element will be chosen as columns. Then two columns will never be linearly dependent because three columns could be linearly dependent with the minimum distance of the code as 3.

So, there are ( q m 1 ) / ( q 1 ) {\displaystyle (q^{m}-1)/(q-1)} nonzero columns with one as top most non zero element. Therefore, a Hamming code is a [ ( q m 1 ) / ( q 1 ) , ( q m 1 ) / ( q 1 ) m ] {\displaystyle } code.

Now, for cyclic codes, Let α {\displaystyle \alpha } be primitive element in G F ( q m ) {\displaystyle GF(q^{m})} , and let β = α q 1 {\displaystyle \beta =\alpha ^{q-1}} . Then β ( q m 1 ) / ( q 1 ) = 1 {\displaystyle \beta ^{(q^{m}-1)/(q-1)}=1} and thus β {\displaystyle \beta } is a zero of the polynomial x ( q m 1 ) / ( q 1 ) 1 {\displaystyle x^{(q^{m}-1)/(q-1)}-1} and is a generator polynomial for the cyclic code of block length n = ( q m 1 ) / ( q 1 ) {\displaystyle n=(q^{m}-1)/(q-1)} .

But for q = 2 {\displaystyle q=2} , α = β {\displaystyle \alpha =\beta } . And the received word is a polynomial of degree n 1 {\displaystyle n-1} given as

v ( x ) = a ( x ) g ( x ) + e ( x ) {\displaystyle v(x)=a(x)g(x)+e(x)}

where, e ( x ) = 0 {\displaystyle e(x)=0} or x i {\displaystyle x^{i}} where i {\displaystyle i} represents the error locations.

But we can also use α i {\displaystyle \alpha ^{i}} as an element of G F ( 2 m ) {\displaystyle GF(2^{m})} to index error location. Because g ( α ) = 0 {\displaystyle g(\alpha )=0} , we have v ( α ) = α i {\displaystyle v(\alpha )=\alpha ^{i}} and all powers of α {\displaystyle \alpha } from 0 {\displaystyle 0} to 2 m 2 {\displaystyle 2^{m}-2} are distinct. Therefore, we can easily determine error location i {\displaystyle i} from α i {\displaystyle \alpha ^{i}} unless v ( α ) = 0 {\displaystyle v(\alpha )=0} which represents no error. So, a Hamming code is a single error correcting code over G F ( 2 ) {\displaystyle GF(2)} with n = 2 m 1 {\displaystyle n=2^{m}-1} and k = n m {\displaystyle k=n-m} .

For correcting burst errors

From Hamming distance concept, a code with minimum distance 2 t + 1 {\displaystyle 2t+1} can correct any t {\displaystyle t} errors. But in many channels error pattern is not very arbitrary, it occurs within very short segment of the message. Such kind of errors are called burst errors. So, for correcting such errors we will get a more efficient code of higher rate because of the less constraints. Cyclic codes are used for correcting burst error. In fact, cyclic codes can also correct cyclic burst errors along with burst errors. Cyclic burst errors are defined as

A cyclic burst of length t {\displaystyle t} is a vector whose nonzero components are among t {\displaystyle t} (cyclically) consecutive components, the first and the last of which are nonzero.

In polynomial form cyclic burst of length t {\displaystyle t} can be described as e ( x ) = x i b ( x ) mod ( x n 1 ) {\displaystyle e(x)=x^{i}b(x)\mod (x^{n}-1)} with b ( x ) {\displaystyle b(x)} as a polynomial of degree t 1 {\displaystyle t-1} with nonzero coefficient b 0 {\displaystyle b_{0}} . Here b ( x ) {\displaystyle b(x)} defines the pattern and x i {\displaystyle x^{i}} defines the starting point of error. Length of the pattern is given by deg b ( x ) + 1 {\displaystyle b(x)+1} . The syndrome polynomial is unique for each pattern and is given by

s ( x ) = e ( x ) mod g ( x ) {\displaystyle s(x)=e(x)\mod g(x)}

A linear block code that corrects all burst errors of length t {\displaystyle t} or less must have at least 2 t {\displaystyle 2t} check symbols. Proof: Because any linear code that can correct burst pattern of length t {\displaystyle t} or less cannot have a burst of length 2 t {\displaystyle 2t} or less as a codeword because if it did then a burst of length t {\displaystyle t} could change the codeword to burst pattern of length t {\displaystyle t} , which also could be obtained by making a burst error of length t {\displaystyle t} in all zero codeword. Now, any two vectors that are non zero in the first 2 t {\displaystyle 2t} components must be from different co-sets of an array to avoid their difference being a codeword of bursts of length 2 t {\displaystyle 2t} . Therefore, number of such co-sets are equal to number of such vectors which are q 2 t {\displaystyle q^{2t}} . Hence at least q 2 t {\displaystyle q^{2t}} co-sets and hence at least 2 t {\displaystyle 2t} check symbol.

This property is also known as Rieger bound and it is similar to the Singleton bound for random error correcting.

Fire codes as cyclic bounds

See also: Burst error-correcting code § Fire codes

In 1959, Philip Fire presented a construction of cyclic codes generated by a product of a binomial and a primitive polynomial. The binomial has the form x c + 1 {\displaystyle x^{c}+1} for some positive odd integer c {\displaystyle c} . Fire code is a cyclic burst error correcting code over G F ( q ) {\displaystyle GF(q)} with the generator polynomial

g ( x ) = ( x 2 t 1 1 ) p ( x ) {\displaystyle g(x)=(x^{2t-1}-1)p(x)}

where p ( x ) {\displaystyle p(x)} is a prime polynomial with degree m {\displaystyle m} not smaller than t {\displaystyle t} and p ( x ) {\displaystyle p(x)} does not divide x 2 t 1 1 {\displaystyle x^{2t-1}-1} . Block length of the fire code is the smallest integer n {\displaystyle n} such that g ( x ) {\displaystyle g(x)} divides x n 1 {\displaystyle x^{n}-1} .

A fire code can correct all burst errors of length t or less if no two bursts b ( x ) {\displaystyle b(x)} and x j b ( x ) {\displaystyle x^{j}b'(x)} appear in the same co-set. This can be proved by contradiction. Suppose there are two distinct nonzero bursts b ( x ) {\displaystyle b(x)} and x j b ( x ) {\displaystyle x^{j}b'(x)} of length t {\displaystyle t} or less and are in the same co-set of the code. So, their difference is a codeword. As the difference is a multiple of g ( x ) {\displaystyle g(x)} it is also a multiple of x 2 t 1 1 {\displaystyle x^{2t-1}-1} . Therefore,

b ( x ) = x j b ( x ) mod ( x 2 t 1 1 ) {\displaystyle b(x)=x^{j}b'(x)\mod (x^{2t-1}-1)} .

This shows that j {\displaystyle j} is a multiple of 2 t 1 {\displaystyle 2t-1} , So

b ( x ) = x l ( 2 t 1 ) b ( x ) {\displaystyle b(x)=x^{l(2t-1)}b'(x)}

for some l {\displaystyle l} . Now, as l ( 2 t 1 ) {\displaystyle l(2t-1)} is less than t {\displaystyle t} and l {\displaystyle l} is less than q m 1 {\displaystyle q^{m}-1} so ( x l ( 2 t 1 ) 1 ) b ( x ) {\displaystyle (x^{l(2t-1)}-1)b(x)} is a codeword. Therefore,

( x l ( 2 t 1 ) 1 ) b ( x ) = a ( x ) ( x 2 t 1 1 ) p ( x ) {\displaystyle (x^{l(2t-1)}-1)b(x)=a(x)(x^{2t-1}-1)p(x)} .

Since b ( x ) {\displaystyle b(x)} degree is less than degree of p ( x ) {\displaystyle p(x)} , p ( x ) {\displaystyle p(x)} cannot divide b ( x ) {\displaystyle b(x)} . If l {\displaystyle l} is not zero, then p ( x ) {\displaystyle p(x)} also cannot divide x l ( 2 t 1 ) 1 {\displaystyle x^{l(2t-1)}-1} as l {\displaystyle l} is less than q m 1 {\displaystyle q^{m}-1} and by definition of m {\displaystyle m} , p ( x ) {\displaystyle p(x)} divides x l ( 2 t 1 ) 1 {\displaystyle x^{l(2t-1)}-1} for no l {\displaystyle l} smaller than q m 1 {\displaystyle q^{m}-1} . Therefore l {\displaystyle l} and j {\displaystyle j} equals to zero. That means both that both the bursts are same, contrary to assumption.

Fire codes are the best single burst correcting codes with high rate and they are constructed analytically. They are of very high rate and when m {\displaystyle m} and t {\displaystyle t} are equal, redundancy is least and is equal to 3 t 1 {\displaystyle 3t-1} . By using multiple fire codes longer burst errors can also be corrected.

For error detection cyclic codes are widely used and are called t 1 {\displaystyle t-1} cyclic redundancy codes.

On Fourier transform

Applications of Fourier transform are widespread in signal processing. But their applications are not limited to the complex fields only; Fourier transforms also exist in the Galois field G F ( q ) {\displaystyle GF(q)} . Cyclic codes using Fourier transform can be described in a setting closer to the signal processing.

Fourier transform over finite fields

Fourier transform over finite fields

The discrete Fourier transform of vector v = v 0 , v 1 , . . . . , v n 1 {\displaystyle v=v_{0},v_{1},....,v_{n-1}} is given by a vector V = V 0 , V 1 , . . . . . , V n 1 {\displaystyle V=V_{0},V_{1},.....,V_{n-1}} where,

V k {\displaystyle V_{k}} = Σ i = 0 n 1 e j 2 π n 1 i k v i {\displaystyle \Sigma _{i=0}^{n-1}e^{-j2\pi n^{-1}ik}v_{i}} where,

k = 0 , . . . . . , n 1 {\displaystyle k=0,.....,n-1}

where exp( j 2 π / n {\displaystyle -j2\pi /n} ) is an n {\displaystyle n} th root of unity. Similarly in the finite field n {\displaystyle n} th root of unity is element ω {\displaystyle \omega } of order n {\displaystyle n} . Therefore

If v = ( v 0 , v 1 , . . . . , v n 1 ) {\displaystyle v=(v_{0},v_{1},....,v_{n-1})} is a vector over G F ( q ) {\displaystyle GF(q)} , and ω {\displaystyle \omega } be an element of G F ( q ) {\displaystyle GF(q)} of order n {\displaystyle n} , then Fourier transform of the vector v {\displaystyle v} is the vector V = ( V 0 , V 1 , . . . . . , V n 1 ) {\displaystyle V=(V_{0},V_{1},.....,V_{n-1})} and components are given by

V j {\displaystyle V_{j}} = Σ i = 0 n 1 ω i j v i {\displaystyle \Sigma _{i=0}^{n-1}\omega ^{ij}v_{i}} where,

k = 0 , . . . . . , n 1 {\displaystyle k=0,.....,n-1}

Here i {\displaystyle i} is time index, j {\displaystyle j} is frequency and V {\displaystyle V} is the spectrum. One important difference between Fourier transform in complex field and Galois field is that complex field ω {\displaystyle \omega } exists for every value of n {\displaystyle n} while in Galois field ω {\displaystyle \omega } exists only if n {\displaystyle n} divides q 1 {\displaystyle q-1} . In case of extension fields, there will be a Fourier transform in the extension field G F ( q m ) {\displaystyle GF(q^{m})} if n {\displaystyle n} divides q m 1 {\displaystyle q^{m}-1} for some m {\displaystyle m} . In Galois field time domain vector v {\displaystyle v} is over the field G F ( q ) {\displaystyle GF(q)} but the spectrum V {\displaystyle V} may be over the extension field G F ( q m ) {\displaystyle GF(q^{m})} .

Spectral description

Any codeword of cyclic code of blocklength n {\displaystyle n} can be represented by a polynomial c ( x ) {\displaystyle c(x)} of degree at most n 1 {\displaystyle n-1} . Its encoder can be written as c ( x ) = a ( x ) g ( x ) {\displaystyle c(x)=a(x)g(x)} . Therefore, in frequency domain encoder can be written as C j = A j G j {\displaystyle C_{j}=A_{j}G_{j}} . Here codeword spectrum C j {\displaystyle C_{j}} has a value in G F ( q m ) {\displaystyle GF(q^{m})} but all the components in the time domain are from G F ( q ) {\displaystyle GF(q)} . As the data spectrum A j {\displaystyle A_{j}} is arbitrary, the role of G j {\displaystyle G_{j}} is to specify those j {\displaystyle j} where C j {\displaystyle C_{j}} will be zero.

Thus, cyclic codes can also be defined as

Given a set of spectral indices, A = ( j 1 , . . . . , j n k ) {\displaystyle A=(j_{1},....,j_{n-k})} , whose elements are called check frequencies, the cyclic code C {\displaystyle C} is the set of words over G F ( q ) {\displaystyle GF(q)} whose spectrum is zero in the components indexed by j 1 , . . . , j n k {\displaystyle j_{1},...,j_{n-k}} . Any such spectrum C {\displaystyle C} will have components of the form A j G j {\displaystyle A_{j}G_{j}} .

So, cyclic codes are vectors in the field G F ( q ) {\displaystyle GF(q)} and the spectrum given by its inverse fourier transform is over the field G F ( q m ) {\displaystyle GF(q^{m})} and are constrained to be zero at certain components. But every spectrum in the field G F ( q m ) {\displaystyle GF(q^{m})} and zero at certain components may not have inverse transforms with components in the field G F ( q ) {\displaystyle GF(q)} . Such spectrum can not be used as cyclic codes.

Following are the few bounds on the spectrum of cyclic codes.

BCH bound

If n {\displaystyle n} be a factor of ( q m 1 ) {\displaystyle (q^{m}-1)} for some m {\displaystyle m} . The only vector in G F ( q ) n {\displaystyle GF(q)^{n}} of weight d 1 {\displaystyle d-1} or less that has d 1 {\displaystyle d-1} consecutive components of its spectrum equal to zero is all-zero vector.

Hartmann-Tzeng bound

If n {\displaystyle n} be a factor of ( q m 1 ) {\displaystyle (q^{m}-1)} for some m {\displaystyle m} , and b {\displaystyle b} an integer that is coprime with n {\displaystyle n} . The only vector v {\displaystyle v} in G F ( q ) n {\displaystyle GF(q)^{n}} of weight d 1 {\displaystyle d-1} or less whose spectral components V j {\displaystyle V_{j}} equal zero for j = 1 + 2 b ( mod n ) {\displaystyle j=\ell _{1}+\ell _{2}b(\mod n)} , where 1 = 0 , . . . . , d s 1 {\displaystyle \ell _{1}=0,....,d-s-1} and 2 = 0 , . . . . , s 1 {\displaystyle \ell _{2}=0,....,s-1} , is the all zero vector.

Roos bound

If n {\displaystyle n} be a factor of q m 1 {\displaystyle q^{m}-1} for some m {\displaystyle m} and G C D ( n , b ) = 1 {\displaystyle GCD(n,b)=1} . The only vector in G F ( q ) n {\displaystyle GF(q)^{n}} of weight d 1 {\displaystyle d-1} or less whose spectral components V j {\displaystyle V_{j}} equal to zero for j = l 1 + l 2 b ( mod n ) {\displaystyle j=l_{1}+l_{2}b(\mod n)} , where l 1 = 0 , . . . , d s 2 {\displaystyle l_{1}=0,...,d-s-2} and l 2 {\displaystyle l_{2}} takes at least s + 1 {\displaystyle s+1} values in the range 0 , . . . . , d 2 {\displaystyle 0,....,d-2} , is the all-zero vector.

Quadratic residue codes

When the prime l {\displaystyle l} is a quadratic residue modulo the prime p {\displaystyle p} there is a quadratic residue code which is a cyclic code of length p {\displaystyle p} , dimension ( p + 1 ) / 2 {\displaystyle (p+1)/2} and minimum weight at least p {\displaystyle {\sqrt {p}}} over G F ( l ) {\displaystyle GF(l)} .

Generalizations

A constacyclic code is a linear code with the property that for some constant λ if (c1,c2,...,cn) is a codeword then so is (λcn,c1,...,cn-1). A negacyclic code is a constacyclic code with λ=-1. A quasi-cyclic code has the property that for some s, any cyclic shift of a codeword by s places is again a codeword. A double circulant code is a quasi-cyclic code of even length with s=2. Quasi-twisted codes and multi-twisted codes are further generalizations of constacyclic codes.

See also

Notes

  1. Van Lint 1998, p. 76
  2. Van Lint 1998, p. 80
  3. Hill 1988, pp. 159–160
  4. Blahut 2003, Theorem 5.5.1
  5. Hill 1988, pp. 162–163
  6. P. Fire, E, P. (1959). A class of multiple-error-correcting binary codes for non-independent errors. Sylvania Reconnaissance Systems Laboratory, Mountain View, CA, Rept. RSL-E-2, 1959.
  7. Wei Zhou, Shu Lin, Khaled Abdel-Ghaffar. Burst or random error correction based on Fire and BCH codes. ITA 2014: 1-5 2013.
  8. Van Lint 1998, p. 75
  9. ^ MacWilliams & Sloane 1977, p. 506
  10. Aydin, Nuh; Siap, Irfan; K. Ray-Chaudhuri, Dijen (2001). "The Structure of 1-Generator Quasi-Twisted Codes and New Linear Codes". Designs, Codes and Cryptography. 24 (3): 313–326. doi:10.1023/A:1011283523000. S2CID 17376783.
  11. Aydin, Nuh; Halilović, Ajdin (2017). "A generalization of quasi-twisted codes: multi-twisted codes". Finite Fields and Their Applications. 45: 96–106. arXiv:1701.01044. doi:10.1016/j.ffa.2016.12.002. S2CID 7694655.

References

Further reading

External links

This article incorporates material from cyclic code on PlanetMath, which is licensed under the Creative Commons Attribution/Share-Alike License.

Categories: