Berlekamp–Massey algorithm

Berlekamp–Massey algorithm

The Berlekamp–Massey algorithm is an algorithm for finding the shortest linear feedback shift register (LFSR) for a given output sequence. Equivalently, it is an algorithm for finding the minimal polynomial of a linearly recurrent sequence.

The algorithm was invented by Elwyn Berlekamp in 1968. Its connection to linear codes was observed by James Massey the following year. It became the key to practical application of the now ubiquitous Reed–Solomon code.

The algorithm

#Let s_0, s_1, s_2 ... s_n be the bits of the stream.
#Initialise three arrays b, c and t each of length n to be zeroes, except b_0 leftarrow 1, c_0 leftarrow 1; assign N leftarrow 0, L leftarrow 0, m leftarrow -1.
#While N is less than n:
#*Let d be s_N + c_1s_{N-1} + c_2s_{N-2} + ... + c_Ls_{N-L}.
#*If d is zero, then c is already a polynomial which annihilates the portion of the stream from N-L to N; increase N by 1 and continue.
#*If d is 1, then:
#** Let t be a copy of c.
#** Set c_{N-m} leftarrow c_{N-m} oplus b_0, c_{N-m+1} leftarrow c_{N-m+1} oplus b_1, ... up to c_{n-1} leftarrow c_{n-1} oplus b_{n-N+m-1} (where oplus is the Exclusive or operator).
#** If L le frac{N}{2}, set L leftarrow N+1-L, set m leftarrow N, and let b leftarrow t; otherwise leave L, m and b alone.
#**Increment N and continue.

At the end of the algorithm, L is the length of the minimal LFSR for the stream, and we have c_Ls_a + c_{L-1}s_{a+1} + c_{L-2}s_{a+2} ... = 0 for all a.

External links

* [http://planetmath.org/encyclopedia/BerlekampMasseyAlgorithm.html Berlekamp–Massey algorithm] at PlanetMath.
*
* [http://modp.com/release/mma_lfsr/ Implementation in Mathematica]
* [http://www.informationsuebertragung.ch/indexAlgorithmen.html Applet Berlekamp–Massey algorithm]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Elwyn Berlekamp — Infobox Scientist name = Elwyn R Berlekamp |185px image width = 125px birth date = Birth date and age|1940|9|6 death date = residence = USA alma mater = MIT field = Information theory, Coding theory, Combinatorial game theory known for =… …   Wikipedia

  • Block Wiedemann algorithm — The Block Wiedemann algorithm for computing kernel vectors of a matrix over a finite field is a generalisation of an algorithm due to Don Coppersmith. Coppersmith s algorithm Let M be an n imes n square matrix over some finite field F, let x… …   Wikipedia

  • Elwyn Berlekamp — Elwyn Ralph Berlekamp Naissance 6 septembre 1940 Dover (Ohio) (en …   Wikipédia en Français

  • James Massey — James Lee Massey (born in 1934 in Wauseon, Ohio) is an information theorist andcryptographer, Professor Emeritus of Digital Technology at ETH Zurich. His notable workincludes the application of the Berlekamp Massey algorithm to linear codes, the… …   Wikipedia

  • Reed-Sloane algorithm — The Reed Sloane algorithm is an extension of the Berlekamp Massey algorithm for use on sequences that take their values from the integers mod n …   Wikipedia

  • James Lee Massey — (* 11. Februar 1934 in Wauseon, Ohio) ist ein Informationstheoretiker und Kryptologe. Er war Professor an der ETH Zürich. Seine bedeutendste Arbeiten waren die Entwicklung des Berlekamp Massey Algorithmus, der Entwurf des… …   Deutsch Wikipedia

  • Reed–Solomon error correction — Reed Solomon error correction is an error correcting code that works by oversampling a polynomial constructed from the data. The polynomial is evaluated at several points, and these values are sent or recorded. Sampling the polynomial more often… …   Wikipedia

  • BCH code — In coding theory the BCH codes form a class of parameterised error correcting codes which have been the subject of much academic attention in the last fifty years. BCH codes were invented in 1959 by Hocquenghem, and independently in 1960 by Bose… …   Wikipedia

  • List of mathematics articles (B) — NOTOC B B spline B* algebra B* search algorithm B,C,K,W system BA model Ba space Babuška Lax Milgram theorem Baby Monster group Baby step giant step Babylonian mathematics Babylonian numerals Bach tensor Bach s algorithm Bachmann–Howard ordinal… …   Wikipedia

  • Иохвидов, Иосиф Семёнович — Иосиф Семёнович Иохвидов Дата рождения …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”