高级算法 (Fall 2017)/Finite Field Basics: Difference between revisions
imported>Etone |
imported>Etone |
||
Line 57: | Line 57: | ||
Because <math>\mathbb{F}[x]</math> is a ring, we cannot do division the way we do it in a field like <math>\mathbb{R}</math>, but we can do division the way we do it in a ring like <math>\mathbb{Z}</math>, leaving a '''remainder'''. The equivalent of the '''integer division''' for <math>\mathbb{Z}</math> is as follows. | Because <math>\mathbb{F}[x]</math> is a ring, we cannot do division the way we do it in a field like <math>\mathbb{R}</math>, but we can do division the way we do it in a ring like <math>\mathbb{Z}</math>, leaving a '''remainder'''. The equivalent of the '''integer division''' for <math>\mathbb{Z}</math> is as follows. | ||
{{Theorem| | {{Theorem|Proposition (division for polynomials)| | ||
:Given a polynomial <math>f</math> and a nonzero polynomial <math>g</math> in <math>\mathbb{F}[x]</math>, there are unique polynomials <math>q</math> and <math>r</math> such that <math>f =q\cdot g+r</math> and <math>\mathrm{deg}(r)<\mathrm{deg}(g)</math>. | :Given a polynomial <math>f</math> and a nonzero polynomial <math>g</math> in <math>\mathbb{F}[x]</math>, there are unique polynomials <math>q</math> and <math>r</math> such that <math>f =q\cdot g+r</math> and <math>\mathrm{deg}(r)<\mathrm{deg}(g)</math>. | ||
}} | }} | ||
Line 64: | Line 64: | ||
As we turn <math>\mathbb{Z}</math> (a ring) into a finite field <math>\mathbb{Z}_p</math> by taking quotients <math>\bmod p</math>, we can turn a polynomial ring <math>\mathbb{F}[x]</math> into a finite field by taking <math>\mathbb{F}[x]</math> modulo a "prime-like" polynomial, using the division of polynomials above. | As we turn <math>\mathbb{Z}</math> (a ring) into a finite field <math>\mathbb{Z}_p</math> by taking quotients <math>\bmod p</math>, we can turn a polynomial ring <math>\mathbb{F}[x]</math> into a finite field by taking <math>\mathbb{F}[x]</math> modulo a "prime-like" polynomial, using the division of polynomials above. | ||
{{Theorem| | {{Theorem|Definition (irreducible polynomial)| | ||
:A non-constant polynomial <math>f</math> is an '''irreducible polynomial''', or a '''prime polynomial''', if <math>f</math> ''cannot'' be factored as <math>f=g\cdot h</math> for any non-constant polynomials <math>g</math> and <math>h</math>. | :A non-constant polynomial <math>f</math> is an '''irreducible polynomial''', or a '''prime polynomial''', if <math>f</math> ''cannot'' be factored as <math>f=g\cdot h</math> for any non-constant polynomials <math>g</math> and <math>h</math>. | ||
}} | }} |
Revision as of 05:58, 19 September 2017
Field
Let
Structures | Axioms | Operations | ||||||
---|---|---|---|---|---|---|---|---|
field | commutative ring |
ring | abelian group |
group | monoid | semigroup | 1. Addition is associative: |
|
2. Existence of additive identity 0: | ||||||||
3. Everyone has an additive inverse: | ||||||||
4. Addition is commutative: | ||||||||
5. Multiplication distributes over addition: |
||||||||
6. Multiplication is associative: |
||||||||
7. Existence of multiplicative identity 1: | ||||||||
8. Multiplication is commutative: | ||||||||
9. Every non-zero element has a multiplicative inverse: |
The semigroup, monoid, group and abelian group are given by
Examples:
- Infinite fields:
, , are fields. The integer set is a commutative ring but is not a field. - Finite fields: Finite fields are called Galois fields. The number of elements of a finite field is called its order. A finite field of order
, is usually denoted as or .- Prime field
: For any integer , under modulo- addition and multiplication forms a commutative ring. It is called quotient ring, and is sometimes denoted as . In particular, for prime , is a field. This can be verified by Fermat's little theorem. - Boolean arithmetics
: The finite field of order 2 contains only two elements 0 and 1, with bit-wise XOR as addition and bit-wise AND as multiplication. - Other examples: There are other examples of finite fields, for instance
where . This field is isomorphic to . In fact, the following theorem holds for finite fields of given order.
- Prime field
Theorem - A finite field of order
exists if and only if for some prime number and positive integer . Moreover, all fields of a given order are isomorphic.
- A finite field of order
Polynomial over a field
Given a field
Because
Proposition (division for polynomials) - Given a polynomial
and a nonzero polynomial in , there are unique polynomials and such that and .
- Given a polynomial
The proof of this is by induction on
As we turn
Definition (irreducible polynomial) - A non-constant polynomial
is an irreducible polynomial, or a prime polynomial, if cannot be factored as for any non-constant polynomials and .
- A non-constant polynomial