gf(2) Berlekamp Algorithm

If possible, factor polynomial, including at least one irreducible factor.

f = b0000000000000000000000000000000000000000000000000000000000000011
f = 0x0000000000000003
f = x + 1

Calculate vn = x2n (mod f) for n=0 to 1

v0 = x0 (mod f)
v0 = b00000000000000000000000000000001
v0 = 0x00000001
v0 = 1

Represent v0-v0 as matrix Q
Q = 1
Represent 1x1 identity matrix I
I = 1
M = Q-I
M = 0
Find null basis vectors of M

nv0 = b00000000000000000000000000000001
nv0 = 0x00000001
nv0 = 1

Only null basis is trivial 1, so f is irreducible.

See also: