In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, particularly
computational algebra
In mathematics and computer science, computer algebra, also called symbolic computation or algebraic computation, is a scientific area that refers to the study and development of algorithms and software for manipulating mathematical expressions ...
, Berlekamp's algorithm is a well-known method for
factoring polynomials over finite fields (also known as ''Galois fields''). The algorithm consists mainly of
matrix
Matrix most commonly refers to:
* ''The Matrix'' (franchise), an American media franchise
** ''The Matrix'', a 1999 science-fiction action film
** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchis ...
reduction and polynomial
GCD computations. It was invented by
Elwyn Berlekamp in 1967. It was the dominant algorithm for solving the problem until the
Cantor–Zassenhaus algorithm In computational algebra, the Cantor–Zassenhaus algorithm is a method for factoring polynomials over finite fields (also called Galois fields).
The algorithm consists mainly of exponentiation and polynomial GCD computations. It was invented by ...
of 1981. It is currently implemented in many well-known
computer algebra systems.
Overview
Berlekamp's algorithm takes as input a
square-free polynomial (i.e. one with no repeated factors) of degree
with coefficients in a finite field
and gives as output a polynomial
with coefficients in the same field such that
divides
. The algorithm may then be applied recursively to these and subsequent divisors, until we find the decomposition of
into powers of
irreducible polynomials (recalling that the
ring
Ring may refer to:
* Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry
* To make a sound with a bell, and the sound made by a bell
:(hence) to initiate a telephone connection
Arts, entertainment and media Film and ...
of polynomials over a finite field is a
unique factorization domain).
All possible factors of
are contained within the
factor ring
:
The algorithm focuses on polynomials
which satisfy the congruence:
:
These polynomials form a
subalgebra of R (which can be considered as an
-dimensional vector space over
), called the ''Berlekamp subalgebra''. The Berlekamp subalgebra is of interest because the polynomials
it contains satisfy
:
In general, not every GCD in the above product will be a non-trivial factor of
, but some are, providing the factors we seek.
Berlekamp's algorithm finds polynomials
suitable for use with the above result by computing a basis for the Berlekamp subalgebra. This is achieved via the observation that Berlekamp subalgebra is in fact the
kernel of a certain
matrix over
, which is derived from the so-called Berlekamp matrix of the polynomial, denoted
. If