BerlekampMassey
Berlekamp–Massey is an algorithm for determining the shortest linear feedback shift register (LFSR) that generates a given finite sequence over a finite field. It is named after Elwyn Berlekamp and James Massey and plays a central role in coding theory and sequence analysis. The output is the minimal connection polynomial and the corresponding linear complexity, the smallest L such that the sequence satisfies a linear recurrence of order L.
In processing a sequence s0, s1, ..., s_{N-1} over a field F, the algorithm maintains a current connection
Complexity and variants: the algorithm runs in O(n^2) field operations and uses O(L) memory, with L the
---