68
Finite fields: An introduction. Part II. Vlad Gheorghiu Department of Physics Carnegie Mellon University Pittsburgh, PA 15213, U.S.A. August 7, 2008 Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 1 / 18

Finite fields: An introduction. Part II

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Finite fields: An introduction. Part II

Finite fields: An introduction. Part II.

Vlad Gheorghiu

Department of PhysicsCarnegie Mellon University

Pittsburgh, PA 15213, U.S.A.

August 7, 2008

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 1 / 18

Page 2: Finite fields: An introduction. Part II

Outline

1 Brief review of Part I (Jul 2, 2008)

2 Construction of finite fieldsPolynomials over finite fieldsExplicit construction of the finite field Fq, with q = pn.Examples

3 Classical coding theoryDecoding methodsThe Coset-Leader AlgorithmExamples

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 2 / 18

Page 3: Finite fields: An introduction. Part II

Brief review of Part I (Jul 2, 2008)

Brief review of Part I

1 Finite fields

Definitions

ExamplesThe structure of finite fields

2 Classical codes over finite fields

Linear codes: basic propertiesEncoding methodsHamming distance as a metric

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 3 / 18

Page 4: Finite fields: An introduction. Part II

Brief review of Part I (Jul 2, 2008)

Brief review of Part I

1 Finite fields

DefinitionsExamples

The structure of finite fields

2 Classical codes over finite fields

Linear codes: basic propertiesEncoding methodsHamming distance as a metric

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 3 / 18

Page 5: Finite fields: An introduction. Part II

Brief review of Part I (Jul 2, 2008)

Brief review of Part I

1 Finite fields

DefinitionsExamplesThe structure of finite fields

2 Classical codes over finite fields

Linear codes: basic propertiesEncoding methodsHamming distance as a metric

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 3 / 18

Page 6: Finite fields: An introduction. Part II

Brief review of Part I (Jul 2, 2008)

Brief review of Part I

1 Finite fields

DefinitionsExamplesThe structure of finite fields

2 Classical codes over finite fields

Linear codes: basic properties

Encoding methodsHamming distance as a metric

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 3 / 18

Page 7: Finite fields: An introduction. Part II

Brief review of Part I (Jul 2, 2008)

Brief review of Part I

1 Finite fields

DefinitionsExamplesThe structure of finite fields

2 Classical codes over finite fields

Linear codes: basic propertiesEncoding methods

Hamming distance as a metric

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 3 / 18

Page 8: Finite fields: An introduction. Part II

Brief review of Part I (Jul 2, 2008)

Brief review of Part I

1 Finite fields

DefinitionsExamplesThe structure of finite fields

2 Classical codes over finite fields

Linear codes: basic propertiesEncoding methodsHamming distance as a metric

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 3 / 18

Page 9: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Polynomials over finite fields

Let F be a finite field. A polynomial over F is an expression of theform

f (x) =n∑

i=1

aixi = a0 + a1x + · · ·+ anx

n

where n = deg(f ) is a nonnegative integer called the degree of f (x),ai ∈ F for all 0 6 i 6 n and x is a symbol not belonging to F, calledan indeterminate over F.

We can define the sum and product of two polynomials using theusual rules of addition and multiplication over F.Example: let f (x) = x2 + 2x + 1 and g(x) = 2x + 1 be twopolynomials over F3. Then

f (x) + g(x) = x2 + x + 2 and f (x)g(x) = 2x3 + 2x2 + x + 1.

The polynomials over a finite field F form an integral domain and aredenoted by F[x ].

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 4 / 18

Page 10: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Polynomials over finite fields

Let F be a finite field. A polynomial over F is an expression of theform

f (x) =n∑

i=1

aixi = a0 + a1x + · · ·+ anx

n

where n = deg(f ) is a nonnegative integer called the degree of f (x),ai ∈ F for all 0 6 i 6 n and x is a symbol not belonging to F, calledan indeterminate over F.We can define the sum and product of two polynomials using theusual rules of addition and multiplication over F.

Example: let f (x) = x2 + 2x + 1 and g(x) = 2x + 1 be twopolynomials over F3. Then

f (x) + g(x) = x2 + x + 2 and f (x)g(x) = 2x3 + 2x2 + x + 1.

The polynomials over a finite field F form an integral domain and aredenoted by F[x ].

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 4 / 18

Page 11: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Polynomials over finite fields

Let F be a finite field. A polynomial over F is an expression of theform

f (x) =n∑

i=1

aixi = a0 + a1x + · · ·+ anx

n

where n = deg(f ) is a nonnegative integer called the degree of f (x),ai ∈ F for all 0 6 i 6 n and x is a symbol not belonging to F, calledan indeterminate over F.We can define the sum and product of two polynomials using theusual rules of addition and multiplication over F.Example: let f (x) = x2 + 2x + 1 and g(x) = 2x + 1 be twopolynomials over F3. Then

f (x) + g(x) = x2 + x + 2 and f (x)g(x) = 2x3 + 2x2 + x + 1.

The polynomials over a finite field F form an integral domain and aredenoted by F[x ].

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 4 / 18

Page 12: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Polynomials over finite fields

Let F be a finite field. A polynomial over F is an expression of theform

f (x) =n∑

i=1

aixi = a0 + a1x + · · ·+ anx

n

where n = deg(f ) is a nonnegative integer called the degree of f (x),ai ∈ F for all 0 6 i 6 n and x is a symbol not belonging to F, calledan indeterminate over F.We can define the sum and product of two polynomials using theusual rules of addition and multiplication over F.Example: let f (x) = x2 + 2x + 1 and g(x) = 2x + 1 be twopolynomials over F3. Then

f (x) + g(x) = x2 + x + 2 and f (x)g(x) = 2x3 + 2x2 + x + 1.

The polynomials over a finite field F form an integral domain and aredenoted by F[x ].

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 4 / 18

Page 13: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 1: Division Algorithm

Let g 6= 0 be a polynomial in F[x ]. Then for any f ∈ F[x ] there existpolynomials q, r ∈ F[x ] such that

f = qg + r , where deg(r) < deg(g).

Example: Consider f (x) = 2x5 + x4 + 4x + 3 ∈ F5[x ],g(x) = 3x2 + 1 ∈ F5[x ]. Then q(x) = 4x3 + 2x2 + 2x + 1 andr(x) = 2x + 2, with deg(r) <deg(g).

A polynomial with the leading term an = 1 is called a monicpolynomial. A polynomial of degree zero is called a constantpolynomial.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 5 / 18

Page 14: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 1: Division Algorithm

Let g 6= 0 be a polynomial in F[x ]. Then for any f ∈ F[x ] there existpolynomials q, r ∈ F[x ] such that

f = qg + r , where deg(r) < deg(g).

Example: Consider f (x) = 2x5 + x4 + 4x + 3 ∈ F5[x ],g(x) = 3x2 + 1 ∈ F5[x ]. Then q(x) = 4x3 + 2x2 + 2x + 1 andr(x) = 2x + 2, with deg(r) <deg(g).

A polynomial with the leading term an = 1 is called a monicpolynomial. A polynomial of degree zero is called a constantpolynomial.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 5 / 18

Page 15: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 1: Division Algorithm

Let g 6= 0 be a polynomial in F[x ]. Then for any f ∈ F[x ] there existpolynomials q, r ∈ F[x ] such that

f = qg + r , where deg(r) < deg(g).

Example: Consider f (x) = 2x5 + x4 + 4x + 3 ∈ F5[x ],g(x) = 3x2 + 1 ∈ F5[x ]. Then q(x) = 4x3 + 2x2 + 2x + 1 andr(x) = 2x + 2, with deg(r) <deg(g).

A polynomial with the leading term an = 1 is called a monicpolynomial. A polynomial of degree zero is called a constantpolynomial.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 5 / 18

Page 16: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 2: Greatest Common Divisor

Let f1, f2, . . . , fn be polynomials in F[x ] not all of which are 0. Then thereexists a uniquely determined monic polynomial d ∈ F[x ] with the followingproperties: (i) d divides each fj , 1 6 j 6 n; (ii) any polynomial c ∈ F[x ]dividing each fj , 1 6 j 6 n, divides d . Moreover, d can be expressed in theform

d = b1f1 + b2f2 + · · ·+ bnfn, with b1, b2, . . . , bn ∈ F[x ].

A polynomial p ∈ F[x ] is said to be irreducible over F (or prime inF[x ]) if p has positive degree and p = bc with b, c ∈ F[x ] impliesthat either b or c is a constant polynomial.

Example: x2 − 2 ∈ Q[x ] is irreducible over the field Q of rationalnumbers, but x2 − 2 = (x +

√2)(x −

√2) is reducible over the field R

of real numbers.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 6 / 18

Page 17: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 2: Greatest Common Divisor

Let f1, f2, . . . , fn be polynomials in F[x ] not all of which are 0. Then thereexists a uniquely determined monic polynomial d ∈ F[x ] with the followingproperties: (i) d divides each fj , 1 6 j 6 n; (ii) any polynomial c ∈ F[x ]dividing each fj , 1 6 j 6 n, divides d . Moreover, d can be expressed in theform

d = b1f1 + b2f2 + · · ·+ bnfn, with b1, b2, . . . , bn ∈ F[x ].

A polynomial p ∈ F[x ] is said to be irreducible over F (or prime inF[x ]) if p has positive degree and p = bc with b, c ∈ F[x ] impliesthat either b or c is a constant polynomial.

Example: x2 − 2 ∈ Q[x ] is irreducible over the field Q of rationalnumbers, but x2 − 2 = (x +

√2)(x −

√2) is reducible over the field R

of real numbers.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 6 / 18

Page 18: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 2: Greatest Common Divisor

Let f1, f2, . . . , fn be polynomials in F[x ] not all of which are 0. Then thereexists a uniquely determined monic polynomial d ∈ F[x ] with the followingproperties: (i) d divides each fj , 1 6 j 6 n; (ii) any polynomial c ∈ F[x ]dividing each fj , 1 6 j 6 n, divides d . Moreover, d can be expressed in theform

d = b1f1 + b2f2 + · · ·+ bnfn, with b1, b2, . . . , bn ∈ F[x ].

A polynomial p ∈ F[x ] is said to be irreducible over F (or prime inF[x ]) if p has positive degree and p = bc with b, c ∈ F[x ] impliesthat either b or c is a constant polynomial.

Example: x2 − 2 ∈ Q[x ] is irreducible over the field Q of rationalnumbers, but x2 − 2 = (x +

√2)(x −

√2) is reducible over the field R

of real numbers.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 6 / 18

Page 19: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 3: Unique Factorization in F[x ]

Any polynomial f ∈ F[x ] of positive degree can be written in the form

f = ape11 p22

2 · · · pekk ,

where a ∈ F, p1, p2, . . . , pk are distinct monic irreducible polynomials inF[x ], and e1, e2, . . . , ek are positive integers. Moreover, this factorization isunique apart from the order in which the factors occur.

The above equation is called the canonical factorization of thepolynomial f in F[x ].

Central question about polynomials in F[x ]: decide if it is reducible ornot. Not a trivial problem.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 7 / 18

Page 20: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 3: Unique Factorization in F[x ]

Any polynomial f ∈ F[x ] of positive degree can be written in the form

f = ape11 p22

2 · · · pekk ,

where a ∈ F, p1, p2, . . . , pk are distinct monic irreducible polynomials inF[x ], and e1, e2, . . . , ek are positive integers. Moreover, this factorization isunique apart from the order in which the factors occur.

The above equation is called the canonical factorization of thepolynomial f in F[x ].

Central question about polynomials in F[x ]: decide if it is reducible ornot. Not a trivial problem.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 7 / 18

Page 21: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

Theorem 3: Unique Factorization in F[x ]

Any polynomial f ∈ F[x ] of positive degree can be written in the form

f = ape11 p22

2 · · · pekk ,

where a ∈ F, p1, p2, . . . , pk are distinct monic irreducible polynomials inF[x ], and e1, e2, . . . , ek are positive integers. Moreover, this factorization isunique apart from the order in which the factors occur.

The above equation is called the canonical factorization of thepolynomial f in F[x ].

Central question about polynomials in F[x ]: decide if it is reducible ornot. Not a trivial problem.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 7 / 18

Page 22: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

An element b ∈ F is called a root (or a zero) of the polynomialf ∈ F[x ] if f (b) = 0.

Theorem 4

An element b ∈ F is a root of the polynomial f ∈ F[x ] if and only if x − bdivides f (x).

If f is an irreducible polynomial in F[x ] of degree > 2, then Theorem 4shows that f has no root in F. The converse holds for polynomials ofdegree 2 or 3, but not necessarily for polynomials of higher degree.

Theorem 5

The polynomial f ∈ F[x ] of degree 2 or 3 is irreducible in F[x ] if and onlyif f has no root in F.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 8 / 18

Page 23: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

An element b ∈ F is called a root (or a zero) of the polynomialf ∈ F[x ] if f (b) = 0.

Theorem 4

An element b ∈ F is a root of the polynomial f ∈ F[x ] if and only if x − bdivides f (x).

If f is an irreducible polynomial in F[x ] of degree > 2, then Theorem 4shows that f has no root in F. The converse holds for polynomials ofdegree 2 or 3, but not necessarily for polynomials of higher degree.

Theorem 5

The polynomial f ∈ F[x ] of degree 2 or 3 is irreducible in F[x ] if and onlyif f has no root in F.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 8 / 18

Page 24: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

An element b ∈ F is called a root (or a zero) of the polynomialf ∈ F[x ] if f (b) = 0.

Theorem 4

An element b ∈ F is a root of the polynomial f ∈ F[x ] if and only if x − bdivides f (x).

If f is an irreducible polynomial in F[x ] of degree > 2, then Theorem 4shows that f has no root in F. The converse holds for polynomials ofdegree 2 or 3, but not necessarily for polynomials of higher degree.

Theorem 5

The polynomial f ∈ F[x ] of degree 2 or 3 is irreducible in F[x ] if and onlyif f has no root in F.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 8 / 18

Page 25: Finite fields: An introduction. Part II

Construction of finite fields Polynomials over finite fields

An element b ∈ F is called a root (or a zero) of the polynomialf ∈ F[x ] if f (b) = 0.

Theorem 4

An element b ∈ F is a root of the polynomial f ∈ F[x ] if and only if x − bdivides f (x).

If f is an irreducible polynomial in F[x ] of degree > 2, then Theorem 4shows that f has no root in F. The converse holds for polynomials ofdegree 2 or 3, but not necessarily for polynomials of higher degree.

Theorem 5

The polynomial f ∈ F[x ] of degree 2 or 3 is irreducible in F[x ] if and onlyif f has no root in F.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 8 / 18

Page 26: Finite fields: An introduction. Part II

Construction of finite fields Explicit construction of the finite field Fq , with q = pn .

Explicit construction of the finite field Fq

Theorem 6

For f ∈ F[x ], the residue class ring F[x ]/f is a field if and only if f isirreducible over F.

In other words, to construct the finite field Fq, with q = pn,

1 Select a monic irreducible polynomial f (x) of degree n in Fp[x ] (italways exists).

2 The distinct residue classes comprising Fq[x ]/f are describedexplicitly as r + (f ), where r runs through all polynomials in Fp withdeg(r) <deg(f ). Two residue classes g + (f ) and h + (f ) are identicalprecisely if g ≡ h mod f , that is, g − h is divisible by f . There arepn polynomials in Fp[x ], of degree smaller than n.

3 Identify each element of Fq by an equivalence class. Construct thefield table by computing sums and product of polynomials modulo f .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 9 / 18

Page 27: Finite fields: An introduction. Part II

Construction of finite fields Explicit construction of the finite field Fq , with q = pn .

Explicit construction of the finite field Fq

Theorem 6

For f ∈ F[x ], the residue class ring F[x ]/f is a field if and only if f isirreducible over F.

In other words, to construct the finite field Fq, with q = pn,

1 Select a monic irreducible polynomial f (x) of degree n in Fp[x ] (italways exists).

2 The distinct residue classes comprising Fq[x ]/f are describedexplicitly as r + (f ), where r runs through all polynomials in Fp withdeg(r) <deg(f ). Two residue classes g + (f ) and h + (f ) are identicalprecisely if g ≡ h mod f , that is, g − h is divisible by f . There arepn polynomials in Fp[x ], of degree smaller than n.

3 Identify each element of Fq by an equivalence class. Construct thefield table by computing sums and product of polynomials modulo f .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 9 / 18

Page 28: Finite fields: An introduction. Part II

Construction of finite fields Explicit construction of the finite field Fq , with q = pn .

Explicit construction of the finite field Fq

Theorem 6

For f ∈ F[x ], the residue class ring F[x ]/f is a field if and only if f isirreducible over F.

In other words, to construct the finite field Fq, with q = pn,

1 Select a monic irreducible polynomial f (x) of degree n in Fp[x ] (italways exists).

2 The distinct residue classes comprising Fq[x ]/f are describedexplicitly as r + (f ), where r runs through all polynomials in Fp withdeg(r) <deg(f ). Two residue classes g + (f ) and h + (f ) are identicalprecisely if g ≡ h mod f , that is, g − h is divisible by f . There arepn polynomials in Fp[x ], of degree smaller than n.

3 Identify each element of Fq by an equivalence class. Construct thefield table by computing sums and product of polynomials modulo f .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 9 / 18

Page 29: Finite fields: An introduction. Part II

Construction of finite fields Explicit construction of the finite field Fq , with q = pn .

Explicit construction of the finite field Fq

Theorem 6

For f ∈ F[x ], the residue class ring F[x ]/f is a field if and only if f isirreducible over F.

In other words, to construct the finite field Fq, with q = pn,

1 Select a monic irreducible polynomial f (x) of degree n in Fp[x ] (italways exists).

2 The distinct residue classes comprising Fq[x ]/f are describedexplicitly as r + (f ), where r runs through all polynomials in Fp withdeg(r) <deg(f ). Two residue classes g + (f ) and h + (f ) are identicalprecisely if g ≡ h mod f , that is, g − h is divisible by f . There arepn polynomials in Fp[x ], of degree smaller than n.

3 Identify each element of Fq by an equivalence class. Construct thefield table by computing sums and product of polynomials modulo f .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 9 / 18

Page 30: Finite fields: An introduction. Part II

Construction of finite fields Explicit construction of the finite field Fq , with q = pn .

Explicit construction of the finite field Fq

Theorem 6

For f ∈ F[x ], the residue class ring F[x ]/f is a field if and only if f isirreducible over F.

In other words, to construct the finite field Fq, with q = pn,

1 Select a monic irreducible polynomial f (x) of degree n in Fp[x ] (italways exists).

2 The distinct residue classes comprising Fq[x ]/f are describedexplicitly as r + (f ), where r runs through all polynomials in Fp withdeg(r) <deg(f ). Two residue classes g + (f ) and h + (f ) are identicalprecisely if g ≡ h mod f , that is, g − h is divisible by f . There arepn polynomials in Fp[x ], of degree smaller than n.

3 Identify each element of Fq by an equivalence class. Construct thefield table by computing sums and product of polynomials modulo f .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 9 / 18

Page 31: Finite fields: An introduction. Part II

Construction of finite fields Examples

Examples

The finite field F4 (also called GF (4)).

Choose f (x) = x2 + x + 1 ∈ F2[x ].

The residue classes of F2[x ]/f are {[0], [1], [x ], [x + 1]}.The additionand multiplication tables are:

+ [0] [1] [x ] [x + 1]

[0] [0] [1] [x ] [x + 1][1] [1] [0] [x + 1] [x ][x ] [x ] [x + 1] [0] [1]

[x + 1] [x + 1] [x ] [1] [0]and∗ [0] [1] [x ] [x + 1]

[0] [0] [0] [0] [0][1] [0] [1] [x ] [x + 1][x ] [0] [x ] [x + 1] [1]

[x + 1] [0] [x + 1] [1] [x ]

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 10 / 18

Page 32: Finite fields: An introduction. Part II

Construction of finite fields Examples

Examples

The finite field F4 (also called GF (4)).

Choose f (x) = x2 + x + 1 ∈ F2[x ].

The residue classes of F2[x ]/f are {[0], [1], [x ], [x + 1]}.The additionand multiplication tables are:

+ [0] [1] [x ] [x + 1]

[0] [0] [1] [x ] [x + 1][1] [1] [0] [x + 1] [x ][x ] [x ] [x + 1] [0] [1]

[x + 1] [x + 1] [x ] [1] [0]and∗ [0] [1] [x ] [x + 1]

[0] [0] [0] [0] [0][1] [0] [1] [x ] [x + 1][x ] [0] [x ] [x + 1] [1]

[x + 1] [0] [x + 1] [1] [x ]

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 10 / 18

Page 33: Finite fields: An introduction. Part II

Construction of finite fields Examples

Examples

The finite field F4 (also called GF (4)).

Choose f (x) = x2 + x + 1 ∈ F2[x ].

The residue classes of F2[x ]/f are {[0], [1], [x ], [x + 1]}.

The additionand multiplication tables are:

+ [0] [1] [x ] [x + 1]

[0] [0] [1] [x ] [x + 1][1] [1] [0] [x + 1] [x ][x ] [x ] [x + 1] [0] [1]

[x + 1] [x + 1] [x ] [1] [0]and∗ [0] [1] [x ] [x + 1]

[0] [0] [0] [0] [0][1] [0] [1] [x ] [x + 1][x ] [0] [x ] [x + 1] [1]

[x + 1] [0] [x + 1] [1] [x ]

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 10 / 18

Page 34: Finite fields: An introduction. Part II

Construction of finite fields Examples

Examples

The finite field F4 (also called GF (4)).

Choose f (x) = x2 + x + 1 ∈ F2[x ].

The residue classes of F2[x ]/f are {[0], [1], [x ], [x + 1]}.The additionand multiplication tables are:

+ [0] [1] [x ] [x + 1]

[0] [0] [1] [x ] [x + 1][1] [1] [0] [x + 1] [x ][x ] [x ] [x + 1] [0] [1]

[x + 1] [x + 1] [x ] [1] [0]and∗ [0] [1] [x ] [x + 1]

[0] [0] [0] [0] [0][1] [0] [1] [x ] [x + 1][x ] [0] [x ] [x + 1] [1]

[x + 1] [0] [x + 1] [1] [x ]

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 10 / 18

Page 35: Finite fields: An introduction. Part II

Construction of finite fields Examples

Examples

The finite field F4 (also called GF (4)).

Choose f (x) = x2 + x + 1 ∈ F2[x ].

The residue classes of F2[x ]/f are {[0], [1], [x ], [x + 1]}.The additionand multiplication tables are:

+ [0] [1] [x ] [x + 1]

[0] [0] [1] [x ] [x + 1][1] [1] [0] [x + 1] [x ][x ] [x ] [x + 1] [0] [1]

[x + 1] [x + 1] [x ] [1] [0]and

∗ [0] [1] [x ] [x + 1]

[0] [0] [0] [0] [0][1] [0] [1] [x ] [x + 1][x ] [0] [x ] [x + 1] [1]

[x + 1] [0] [x + 1] [1] [x ]

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 10 / 18

Page 36: Finite fields: An introduction. Part II

Construction of finite fields Examples

Examples

The finite field F4 (also called GF (4)).

Choose f (x) = x2 + x + 1 ∈ F2[x ].

The residue classes of F2[x ]/f are {[0], [1], [x ], [x + 1]}.The additionand multiplication tables are:

+ [0] [1] [x ] [x + 1]

[0] [0] [1] [x ] [x + 1][1] [1] [0] [x + 1] [x ][x ] [x ] [x + 1] [0] [1]

[x + 1] [x + 1] [x ] [1] [0]and∗ [0] [1] [x ] [x + 1]

[0] [0] [0] [0] [0][1] [0] [1] [x ] [x + 1][x ] [0] [x ] [x + 1] [1]

[x + 1] [0] [x + 1] [1] [x ]

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 10 / 18

Page 37: Finite fields: An introduction. Part II

Construction of finite fields Examples

The finite field F9.

Choose f (x) = x2 + 1 ∈ F3[x ].

The residue classes of F3[x ]/f are{[0], [1], [2], [x ], [x + 1], [x + 2], [2x ], [2x + 1], [2x + 2]}.Construct the addition and multiplication table. Too much LATEXcodeto be put in a single slide...

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 11 / 18

Page 38: Finite fields: An introduction. Part II

Construction of finite fields Examples

The finite field F9.

Choose f (x) = x2 + 1 ∈ F3[x ].

The residue classes of F3[x ]/f are{[0], [1], [2], [x ], [x + 1], [x + 2], [2x ], [2x + 1], [2x + 2]}.Construct the addition and multiplication table. Too much LATEXcodeto be put in a single slide...

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 11 / 18

Page 39: Finite fields: An introduction. Part II

Construction of finite fields Examples

The finite field F9.

Choose f (x) = x2 + 1 ∈ F3[x ].

The residue classes of F3[x ]/f are{[0], [1], [2], [x ], [x + 1], [x + 2], [2x ], [2x + 1], [2x + 2]}.

Construct the addition and multiplication table. Too much LATEXcodeto be put in a single slide...

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 11 / 18

Page 40: Finite fields: An introduction. Part II

Construction of finite fields Examples

The finite field F9.

Choose f (x) = x2 + 1 ∈ F3[x ].

The residue classes of F3[x ]/f are{[0], [1], [2], [x ], [x + 1], [x + 2], [2x ], [2x + 1], [2x + 2]}.Construct the addition and multiplication table. Too much LATEXcodeto be put in a single slide...

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 11 / 18

Page 41: Finite fields: An introduction. Part II

Classical coding theory Decoding methods

Decoding methods

Theorem 7

A code C with minimum distance dC can correct up to t errors ifdC > 2t + 1.

Proof.

A ball Bt(x) of radius t and center x ∈ Fnq consists of all vectors y ∈ Fn

q

such that d(x, y) 6 t. The nearest neighbor decoding rule ensures thateach received word with t or fewer errors must be in a ball of radius t andcenter the transmitted code word. To correct t errors, the balls with codewords x as centers must not overlap. If u ∈ Bt(x) and u ∈ Bt(y),x, y ∈ C , x 6= y, then

d(x, y) 6 d(x, u) + d(u, y) 6 2t,

a contradiction to dC > 2t + 1.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 12 / 18

Page 42: Finite fields: An introduction. Part II

Classical coding theory Decoding methods

Decoding methods

Theorem 7

A code C with minimum distance dC can correct up to t errors ifdC > 2t + 1.

Proof.

A ball Bt(x) of radius t and center x ∈ Fnq consists of all vectors y ∈ Fn

q

such that d(x, y) 6 t. The nearest neighbor decoding rule ensures thateach received word with t or fewer errors must be in a ball of radius t andcenter the transmitted code word. To correct t errors, the balls with codewords x as centers must not overlap. If u ∈ Bt(x) and u ∈ Bt(y),x, y ∈ C , x 6= y, then

d(x, y) 6 d(x, u) + d(u, y) 6 2t,

a contradiction to dC > 2t + 1.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 12 / 18

Page 43: Finite fields: An introduction. Part II

Classical coding theory Decoding methods

Decoding methods

Theorem 7

A code C with minimum distance dC can correct up to t errors ifdC > 2t + 1.

Proof.

A ball Bt(x) of radius t and center x ∈ Fnq consists of all vectors y ∈ Fn

q

such that d(x, y) 6 t. The nearest neighbor decoding rule ensures thateach received word with t or fewer errors must be in a ball of radius t andcenter the transmitted code word. To correct t errors, the balls with codewords x as centers must not overlap. If u ∈ Bt(x) and u ∈ Bt(y),x, y ∈ C , x 6= y, then

d(x, y) 6 d(x, u) + d(u, y) 6 2t,

a contradiction to dC > 2t + 1.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 12 / 18

Page 44: Finite fields: An introduction. Part II

Classical coding theory Decoding methods

The following lemma is useful for determining the minimum distance of acode

Lemma 8

A linear code C with parity-check matrix H has minimum distanceDC > s + 1 if and only if any s columns of H are linearly independent.

Proof.

Assume there are s linearly dependent columns of H, then HcT = 0 andwt(c) 6 s for suitable c ∈ C , c 6= 0, hence dC 6 s. Similarly, if any scolumns of H are linearly independent, then there is no c ∈ C , c 6= 0, ofweight 6 s, hence dC > s + 1.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 13 / 18

Page 45: Finite fields: An introduction. Part II

Classical coding theory Decoding methods

The following lemma is useful for determining the minimum distance of acode

Lemma 8

A linear code C with parity-check matrix H has minimum distanceDC > s + 1 if and only if any s columns of H are linearly independent.

Proof.

Assume there are s linearly dependent columns of H, then HcT = 0 andwt(c) 6 s for suitable c ∈ C , c 6= 0, hence dC 6 s. Similarly, if any scolumns of H are linearly independent, then there is no c ∈ C , c 6= 0, ofweight 6 s, hence dC > s + 1.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 13 / 18

Page 46: Finite fields: An introduction. Part II

Classical coding theory Decoding methods

The following lemma is useful for determining the minimum distance of acode

Lemma 8

A linear code C with parity-check matrix H has minimum distanceDC > s + 1 if and only if any s columns of H are linearly independent.

Proof.

Assume there are s linearly dependent columns of H, then HcT = 0 andwt(c) 6 s for suitable c ∈ C , c 6= 0, hence dC 6 s. Similarly, if any scolumns of H are linearly independent, then there is no c ∈ C , c 6= 0, ofweight 6 s, hence dC > s + 1.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 13 / 18

Page 47: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

The Coset-Leader Algorithm

Let C be a (n, k) linear code over Fq.

The vector space Fnq/C consists of all cosets

a + C = {a + c : c ∈ C}

with a ∈ Fnq.

Each coset contains qk vectors and Fnq can be regarded as being

partitioned into cosets of C , namely

Fnq = (a(0) + C ) ∪ (a(1) + C ) ∪ · · · (a(s) + C ),

where a(0) = 0 and s = qn−k − 1.

A received vector y must be in one of the cosets, say a(i) + C . If thecodeword c was transmitted, then the error is given bye = y − c = a(i) + z ∈ a(i) + C for suitable z ∈ C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 14 / 18

Page 48: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

The Coset-Leader Algorithm

Let C be a (n, k) linear code over Fq.

The vector space Fnq/C consists of all cosets

a + C = {a + c : c ∈ C}

with a ∈ Fnq.

Each coset contains qk vectors and Fnq can be regarded as being

partitioned into cosets of C , namely

Fnq = (a(0) + C ) ∪ (a(1) + C ) ∪ · · · (a(s) + C ),

where a(0) = 0 and s = qn−k − 1.

A received vector y must be in one of the cosets, say a(i) + C . If thecodeword c was transmitted, then the error is given bye = y − c = a(i) + z ∈ a(i) + C for suitable z ∈ C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 14 / 18

Page 49: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

The Coset-Leader Algorithm

Let C be a (n, k) linear code over Fq.

The vector space Fnq/C consists of all cosets

a + C = {a + c : c ∈ C}

with a ∈ Fnq.

Each coset contains qk vectors and Fnq can be regarded as being

partitioned into cosets of C , namely

Fnq = (a(0) + C ) ∪ (a(1) + C ) ∪ · · · (a(s) + C ),

where a(0) = 0 and s = qn−k − 1.

A received vector y must be in one of the cosets, say a(i) + C . If thecodeword c was transmitted, then the error is given bye = y − c = a(i) + z ∈ a(i) + C for suitable z ∈ C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 14 / 18

Page 50: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

The Coset-Leader Algorithm

Let C be a (n, k) linear code over Fq.

The vector space Fnq/C consists of all cosets

a + C = {a + c : c ∈ C}

with a ∈ Fnq.

Each coset contains qk vectors and Fnq can be regarded as being

partitioned into cosets of C , namely

Fnq = (a(0) + C ) ∪ (a(1) + C ) ∪ · · · (a(s) + C ),

where a(0) = 0 and s = qn−k − 1.

A received vector y must be in one of the cosets, say a(i) + C . If thecodeword c was transmitted, then the error is given bye = y − c = a(i) + z ∈ a(i) + C for suitable z ∈ C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 14 / 18

Page 51: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

The Coset-Leader Algorithm

Let C be a (n, k) linear code over Fq.

The vector space Fnq/C consists of all cosets

a + C = {a + c : c ∈ C}

with a ∈ Fnq.

Each coset contains qk vectors and Fnq can be regarded as being

partitioned into cosets of C , namely

Fnq = (a(0) + C ) ∪ (a(1) + C ) ∪ · · · (a(s) + C ),

where a(0) = 0 and s = qn−k − 1.

A received vector y must be in one of the cosets, say a(i) + C . If thecodeword c was transmitted, then the error is given bye = y − c = a(i) + z ∈ a(i) + C for suitable z ∈ C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 14 / 18

Page 52: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

All possible error vectors e of a received vector y are the vectors inthe coset of y.

The most likely error vector is the vector e with minimum weight inthe coset of y.

Thus we decode y as x = y − e.

Definition

Let C ⊆ Fnq be a linear (n, k) code and let Fn

q/C be the factor space. Anelement of minimum weight in a coset a + C is called coset leader ofa + C . If several vectors in a + C have minimum weight, we choose one ofthem as coset leader.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 15 / 18

Page 53: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

All possible error vectors e of a received vector y are the vectors inthe coset of y.

The most likely error vector is the vector e with minimum weight inthe coset of y.

Thus we decode y as x = y − e.

Definition

Let C ⊆ Fnq be a linear (n, k) code and let Fn

q/C be the factor space. Anelement of minimum weight in a coset a + C is called coset leader ofa + C . If several vectors in a + C have minimum weight, we choose one ofthem as coset leader.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 15 / 18

Page 54: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

All possible error vectors e of a received vector y are the vectors inthe coset of y.

The most likely error vector is the vector e with minimum weight inthe coset of y.

Thus we decode y as x = y − e.

Definition

Let C ⊆ Fnq be a linear (n, k) code and let Fn

q/C be the factor space. Anelement of minimum weight in a coset a + C is called coset leader ofa + C . If several vectors in a + C have minimum weight, we choose one ofthem as coset leader.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 15 / 18

Page 55: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

All possible error vectors e of a received vector y are the vectors inthe coset of y.

The most likely error vector is the vector e with minimum weight inthe coset of y.

Thus we decode y as x = y − e.

Definition

Let C ⊆ Fnq be a linear (n, k) code and let Fn

q/C be the factor space. Anelement of minimum weight in a coset a + C is called coset leader ofa + C . If several vectors in a + C have minimum weight, we choose one ofthem as coset leader.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 15 / 18

Page 56: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

Definition

Let H be the parity-check matrix of a linear (n, k) code C . Then thevector S(y) = HyT of length n − k is called the syndrome of y.

Theorem 9

For y, z ∈ Fnq we have:

1 S(y) = 0 if and only if y ∈ C

2 S(y) = S(z) if and only if y + C = z + C

Proof.

1) follows immediately from the definition of C in terms of H.

For 2) note that S(y) = S(z) if and only if HyT = HzT if and only ifH(y − z)T = 0 if and only if y − z ∈ C if and only if y + C = z + C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 16 / 18

Page 57: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

Definition

Let H be the parity-check matrix of a linear (n, k) code C . Then thevector S(y) = HyT of length n − k is called the syndrome of y.

Theorem 9

For y, z ∈ Fnq we have:

1 S(y) = 0 if and only if y ∈ C

2 S(y) = S(z) if and only if y + C = z + C

Proof.

1) follows immediately from the definition of C in terms of H.

For 2) note that S(y) = S(z) if and only if HyT = HzT if and only ifH(y − z)T = 0 if and only if y − z ∈ C if and only if y + C = z + C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 16 / 18

Page 58: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

Definition

Let H be the parity-check matrix of a linear (n, k) code C . Then thevector S(y) = HyT of length n − k is called the syndrome of y.

Theorem 9

For y, z ∈ Fnq we have:

1 S(y) = 0 if and only if y ∈ C

2 S(y) = S(z) if and only if y + C = z + C

Proof.

1) follows immediately from the definition of C in terms of H.

For 2) note that S(y) = S(z) if and only if HyT = HzT if and only ifH(y − z)T = 0 if and only if y − z ∈ C if and only if y + C = z + C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 16 / 18

Page 59: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

Definition

Let H be the parity-check matrix of a linear (n, k) code C . Then thevector S(y) = HyT of length n − k is called the syndrome of y.

Theorem 9

For y, z ∈ Fnq we have:

1 S(y) = 0 if and only if y ∈ C

2 S(y) = S(z) if and only if y + C = z + C

Proof.

1) follows immediately from the definition of C in terms of H.

For 2) note that S(y) = S(z) if and only if HyT = HzT if and only ifH(y − z)T = 0 if and only if y − z ∈ C if and only if y + C = z + C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 16 / 18

Page 60: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

Definition

Let H be the parity-check matrix of a linear (n, k) code C . Then thevector S(y) = HyT of length n − k is called the syndrome of y.

Theorem 9

For y, z ∈ Fnq we have:

1 S(y) = 0 if and only if y ∈ C

2 S(y) = S(z) if and only if y + C = z + C

Proof.

1) follows immediately from the definition of C in terms of H.

For 2) note that S(y) = S(z) if and only if HyT = HzT if and only ifH(y − z)T = 0 if and only if y − z ∈ C if and only if y + C = z + C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 16 / 18

Page 61: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

Definition

Let H be the parity-check matrix of a linear (n, k) code C . Then thevector S(y) = HyT of length n − k is called the syndrome of y.

Theorem 9

For y, z ∈ Fnq we have:

1 S(y) = 0 if and only if y ∈ C

2 S(y) = S(z) if and only if y + C = z + C

Proof.

1) follows immediately from the definition of C in terms of H.

For 2) note that S(y) = S(z) if and only if HyT = HzT if and only ifH(y − z)T = 0 if and only if y − z ∈ C if and only if y + C = z + C .

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 16 / 18

Page 62: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

If e = y − c, c ∈ C , y ∈ Fnq, then

S(y) = S(c + e) = S(c) + S(e) = S(e)

and y and e are in the same coset. The coset leader of that coset alsohas the same syndrome. We have the following decoding algorithm.

The Coset-Leader Algorithm

1 Let C ⊆ Fnq be a linear (n, k) code and let y be the received vector.

2 To correct errors in y, calculate S(y) and find the coset leader, say e, withsyndrome equal to S(y.

3 Then decode y as x = y − e. Here x is the code word with minimumdistance to y.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 17 / 18

Page 63: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

If e = y − c, c ∈ C , y ∈ Fnq, then

S(y) = S(c + e) = S(c) + S(e) = S(e)

and y and e are in the same coset. The coset leader of that coset alsohas the same syndrome. We have the following decoding algorithm.

The Coset-Leader Algorithm

1 Let C ⊆ Fnq be a linear (n, k) code and let y be the received vector.

2 To correct errors in y, calculate S(y) and find the coset leader, say e, withsyndrome equal to S(y.

3 Then decode y as x = y − e. Here x is the code word with minimumdistance to y.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 17 / 18

Page 64: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

If e = y − c, c ∈ C , y ∈ Fnq, then

S(y) = S(c + e) = S(c) + S(e) = S(e)

and y and e are in the same coset. The coset leader of that coset alsohas the same syndrome. We have the following decoding algorithm.

The Coset-Leader Algorithm

1 Let C ⊆ Fnq be a linear (n, k) code and let y be the received vector.

2 To correct errors in y, calculate S(y) and find the coset leader, say e, withsyndrome equal to S(y.

3 Then decode y as x = y − e. Here x is the code word with minimumdistance to y.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 17 / 18

Page 65: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

If e = y − c, c ∈ C , y ∈ Fnq, then

S(y) = S(c + e) = S(c) + S(e) = S(e)

and y and e are in the same coset. The coset leader of that coset alsohas the same syndrome. We have the following decoding algorithm.

The Coset-Leader Algorithm

1 Let C ⊆ Fnq be a linear (n, k) code and let y be the received vector.

2 To correct errors in y, calculate S(y) and find the coset leader, say e, withsyndrome equal to S(y.

3 Then decode y as x = y − e. Here x is the code word with minimumdistance to y.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 17 / 18

Page 66: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

If e = y − c, c ∈ C , y ∈ Fnq, then

S(y) = S(c + e) = S(c) + S(e) = S(e)

and y and e are in the same coset. The coset leader of that coset alsohas the same syndrome. We have the following decoding algorithm.

The Coset-Leader Algorithm

1 Let C ⊆ Fnq be a linear (n, k) code and let y be the received vector.

2 To correct errors in y, calculate S(y) and find the coset leader, say e, withsyndrome equal to S(y.

3 Then decode y as x = y − e. Here x is the code word with minimumdistance to y.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 17 / 18

Page 67: Finite fields: An introduction. Part II

Classical coding theory The Coset-Leader Algorithm

If e = y − c, c ∈ C , y ∈ Fnq, then

S(y) = S(c + e) = S(c) + S(e) = S(e)

and y and e are in the same coset. The coset leader of that coset alsohas the same syndrome. We have the following decoding algorithm.

The Coset-Leader Algorithm

1 Let C ⊆ Fnq be a linear (n, k) code and let y be the received vector.

2 To correct errors in y, calculate S(y) and find the coset leader, say e, withsyndrome equal to S(y.

3 Then decode y as x = y − e. Here x is the code word with minimumdistance to y.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 17 / 18

Page 68: Finite fields: An introduction. Part II

Classical coding theory Examples

Coset-Leader example

Discuss it on the board.

Vlad Gheorghiu (CMU) Finite fields: An introduction. Part II. August 7, 2008 18 / 18